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 |
|---|---|---|---|---|---|---|---|---|---|
## ----setup, include=FALSE------------------------------------------------
knitr::opts_chunk$set(eval = FALSE)
## ---- eval = TRUE, echo = FALSE------------------------------------------
pkg_name = "usethis"
# pkg_name = "devtools"
## ------------------------------------------------------------------------
devtools:... | /r_package_workflow/index.R | no_license | yunguan-wang/neuroc | R | false | false | 337 | r | ## ----setup, include=FALSE------------------------------------------------
knitr::opts_chunk$set(eval = FALSE)
## ---- eval = TRUE, echo = FALSE------------------------------------------
pkg_name = "usethis"
# pkg_name = "devtools"
## ------------------------------------------------------------------------
devtools:... |
setwd("~/R Studio personal projects/Curso Johns Hopkins/Getting and Cleaning Data/Final Project")
if(!file.exists("./data")){dir.create("./data")}
fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileUrl,destfile="./data/ProjectDataset.zip",method="c... | /run_analysis.R | no_license | juandacu/GettingAndCleaningData | R | false | false | 2,773 | r | setwd("~/R Studio personal projects/Curso Johns Hopkins/Getting and Cleaning Data/Final Project")
if(!file.exists("./data")){dir.create("./data")}
fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileUrl,destfile="./data/ProjectDataset.zip",method="c... |
## clarkevans.R
## Clark-Evans statistic and test
## $Revision: 1.18 $ $Date: 2022/01/04 05:30:06 $
clarkevans <- function(X, correction=c("none", "Donnelly", "cdf"),
clipregion=NULL)
{
verifyclass(X, "ppp")
W <- X$window
# validate correction argument
gavecorrection <- !missing(correct... | /R/clarkevans.R | no_license | spatstat/spatstat.core | R | false | false | 6,867 | r | ## clarkevans.R
## Clark-Evans statistic and test
## $Revision: 1.18 $ $Date: 2022/01/04 05:30:06 $
clarkevans <- function(X, correction=c("none", "Donnelly", "cdf"),
clipregion=NULL)
{
verifyclass(X, "ppp")
W <- X$window
# validate correction argument
gavecorrection <- !missing(correct... |
#############################################################
# #
# This script analyzes Twitter data for variation of the #
# linguistic variable (lol). Script should be run from the #
# LaTeX write-up using knitr #
# ... | /analysis.R | no_license | joshisanonymous/lol_ortho_variation | R | false | false | 12,106 | r | #############################################################
# #
# This script analyzes Twitter data for variation of the #
# linguistic variable (lol). Script should be run from the #
# LaTeX write-up using knitr #
# ... |
#Read data into dataframe
d <- read.csv("~/coursera/EDA/household_power_consumption.txt", sep=";", quote="", stringsAsFactors=FALSE)
#Create duplicate dataframe for formatting data
d2<-d
#Replace ? with NA
d2[d2=="?"]<-NA
#Combine date and time into a new column DT
d2$DT<-paste(d$Date,d$Time)
#Convert all columns to... | /plot3.r | no_license | abhk/ExData_Plotting1 | R | false | false | 1,511 | r | #Read data into dataframe
d <- read.csv("~/coursera/EDA/household_power_consumption.txt", sep=";", quote="", stringsAsFactors=FALSE)
#Create duplicate dataframe for formatting data
d2<-d
#Replace ? with NA
d2[d2=="?"]<-NA
#Combine date and time into a new column DT
d2$DT<-paste(d$Date,d$Time)
#Convert all columns to... |
## Functions for creating and using inverted matrices which caching ability
## Creates cacheable matrix for inputting to
## cacheSolve() function which sets and gets
## the cached values
makeCacheMatrix <- function(original.matrix = matrix()) {
# Let's check if we have correct input
if (!is.matrix(original.m... | /cachematrix.R | no_license | shanewooten/ProgrammingAssignment2 | R | false | false | 1,563 | r | ## Functions for creating and using inverted matrices which caching ability
## Creates cacheable matrix for inputting to
## cacheSolve() function which sets and gets
## the cached values
makeCacheMatrix <- function(original.matrix = matrix()) {
# Let's check if we have correct input
if (!is.matrix(original.m... |
# Assembles data for all five drugs by calling individual scripts consecutively
# Run load_core_citation. This script flattens Eric Livingston's data to generate
# a list of pmid1s of cited references derived from reviews of relevant literature
source("~//NETELabs_CaseStudies/Review_Master/load_core_citation_data.R")... | /assembly/master_script.R | no_license | ahasobriquets/NETELabs_CaseStudies | R | false | false | 1,120 | r | # Assembles data for all five drugs by calling individual scripts consecutively
# Run load_core_citation. This script flattens Eric Livingston's data to generate
# a list of pmid1s of cited references derived from reviews of relevant literature
source("~//NETELabs_CaseStudies/Review_Master/load_core_citation_data.R")... |
/generalists-specialists/beals_species_pool_v0.6.r | no_license | zdealveindy/JUICE-R | R | false | false | 15,914 | r | ||
#(1)-1
#1となる確率が0.3、試行回数3回の二項分布を10000回シミュレートし、そのヒストグラム、標本平均、標本分散を表示
n<-10000
Y=rbinom(n,3,.3)
hist(Y,probability=T,main="Y=X1+X2+X3",breaks=0:4,right=F)
mean(Y)
var(Y)
#(1)-2
#1となる確率が0.3、試行回数100回の二項分布を10000回シミュレートし、そのヒストグラム、標本平均、標本分散を表示
W=rbinom(n,100,.3)
hist(W,probability=T,main="W=X1+X2+c+X100",breaks=10:50)
mean(W... | /3.二項分布と標準化.R | no_license | Tsubasa1205/gumball | R | false | false | 1,320 | r | #(1)-1
#1となる確率が0.3、試行回数3回の二項分布を10000回シミュレートし、そのヒストグラム、標本平均、標本分散を表示
n<-10000
Y=rbinom(n,3,.3)
hist(Y,probability=T,main="Y=X1+X2+X3",breaks=0:4,right=F)
mean(Y)
var(Y)
#(1)-2
#1となる確率が0.3、試行回数100回の二項分布を10000回シミュレートし、そのヒストグラム、標本平均、標本分散を表示
W=rbinom(n,100,.3)
hist(W,probability=T,main="W=X1+X2+c+X100",breaks=10:50)
mean(W... |
\name{sim.data}
\alias{sim.data}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Generates data for illustrative purposes}
\description{
Returns a random sample from some distributions,
to illustrate some visulization tools.
Returns also the density (as a piecewise constant function)
for some exa... | /man/sim.data.Rd | no_license | cran/denpro | R | false | false | 3,605 | rd | \name{sim.data}
\alias{sim.data}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{Generates data for illustrative purposes}
\description{
Returns a random sample from some distributions,
to illustrate some visulization tools.
Returns also the density (as a piecewise constant function)
for some exa... |
## 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
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- functi... | /cachematrix.R | no_license | nudandeepaa/ProgrammingAssignment2 | R | false | false | 1,055 | r | ## 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
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- functi... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{getMutual}
\alias{getMutual}
\title{Returns a list of user IDs of the mutual friends of two users.}
\usage{
getMutual(source_id = "", target_uid = "", target_uids = "", order = "",
count = "", offset = "")
}
\arguments{
\item{source_id}{ID of the user whose f... | /man/getMutual.Rd | no_license | GSuvorov/vkR | R | false | false | 1,001 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{getMutual}
\alias{getMutual}
\title{Returns a list of user IDs of the mutual friends of two users.}
\usage{
getMutual(source_id = "", target_uid = "", target_uids = "", order = "",
count = "", offset = "")
}
\arguments{
\item{source_id}{ID of the user whose f... |
\name{corr.test}
\alias{corr.test}
\alias{corr.p}
\title{Find the correlations, sample sizes, and probability values between elements of a matrix or data.frame. }
\description{Although the cor function finds the correlations for a matrix, it does not report probability values. cor.test does, but for only one pair o... | /man/corr.test.Rd | no_license | adamv227/psych | R | false | false | 6,297 | rd | \name{corr.test}
\alias{corr.test}
\alias{corr.p}
\title{Find the correlations, sample sizes, and probability values between elements of a matrix or data.frame. }
\description{Although the cor function finds the correlations for a matrix, it does not report probability values. cor.test does, but for only one pair o... |
\name{pvamodel-class}
\Rdversion{1.1}
\docType{class}
\alias{pvamodel-class}
\title{Class \code{"pvamodel"}}
\description{
S4 class for predefined PVA models.
}
\section{Objects from the Class}{
Objects can be created by calls of the form \code{new("pvamodel", ...)}.
}
\section{Slots}{
\describe{
\item{\code{gro... | /man/pvamodel-class.Rd | no_license | psolymos/PVAClone | R | false | false | 2,341 | rd | \name{pvamodel-class}
\Rdversion{1.1}
\docType{class}
\alias{pvamodel-class}
\title{Class \code{"pvamodel"}}
\description{
S4 class for predefined PVA models.
}
\section{Objects from the Class}{
Objects can be created by calls of the form \code{new("pvamodel", ...)}.
}
\section{Slots}{
\describe{
\item{\code{gro... |
# Generates all the molecular
# data for the simulated results
library(ape)
library(TreeSim)
library(phangorn)
library(NELSI)
date.branches <- function(s.tree) {
tree <- s.tree[[1]]
subs <- s.tree[[2]][, 6]
times <- s.tree[[2]][, 7]
print(cbind(subs, times))
dates <- unlist(Map(toString, times))[1:n.tips]
tr... | /simulated/simulate_data.R | no_license | jjh13/ape.rtt | R | false | false | 1,589 | r | # Generates all the molecular
# data for the simulated results
library(ape)
library(TreeSim)
library(phangorn)
library(NELSI)
date.branches <- function(s.tree) {
tree <- s.tree[[1]]
subs <- s.tree[[2]][, 6]
times <- s.tree[[2]][, 7]
print(cbind(subs, times))
dates <- unlist(Map(toString, times))[1:n.tips]
tr... |
####Info####
"This file describes the work process for the validation of LDJump (Chapter 5.1.3. \"Validation of the update\"), which includes
1. Loading the data
2. Transforming
3. Visualizing in R
"
####Running LDJump####
#Loading the packages:
library(parallel)
library(seqinr)
library(vcfR)
library(ape)
library(LDJu... | /Validation-Of-Update/git_validation_of_update.R | no_license | fardokhtsadat/LDJump-thesis | R | false | false | 4,209 | r | ####Info####
"This file describes the work process for the validation of LDJump (Chapter 5.1.3. \"Validation of the update\"), which includes
1. Loading the data
2. Transforming
3. Visualizing in R
"
####Running LDJump####
#Loading the packages:
library(parallel)
library(seqinr)
library(vcfR)
library(ape)
library(LDJu... |
/simR_2N_Eventos.r | no_license | aalmeida89/AD_SimPLE | R | false | false | 10,334 | r | ||
# Adobe Experience Manager OSGI config (AEM) API
#
# Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API
#
# OpenAPI spec version: 1.0.0-pre.0
# Contact: opensource@shinesolutions.com
# Generated by: https://openapi-generator.tech
#' ComAdobeAemUpgradePrechecksHcImp... | /clients/r/generated/R/ComAdobeAemUpgradePrechecksHcImplDeprecateIndexesHCProperties.r | permissive | shinesolutions/swagger-aem-osgi | R | false | false | 4,531 | r | # Adobe Experience Manager OSGI config (AEM) API
#
# Swagger AEM OSGI is an OpenAPI specification for Adobe Experience Manager (AEM) OSGI Configurations API
#
# OpenAPI spec version: 1.0.0-pre.0
# Contact: opensource@shinesolutions.com
# Generated by: https://openapi-generator.tech
#' ComAdobeAemUpgradePrechecksHcImp... |
plot_pca <-
function(dataset_thinning,
pc1,
pc2,
color_var,
shape_var = NULL,
title_string = NULL) {
col1 <- rlang::sym(str_c("PC", as.character(pc1)))
col2 <- rlang::sym(str_c("PC", as.character(pc2)))
shape_var <- rlang::enquo(shape_var)
... | /source_functions/plot_pca.R | no_license | harlydurbin/bovine_demo | R | false | false | 4,752 | r | plot_pca <-
function(dataset_thinning,
pc1,
pc2,
color_var,
shape_var = NULL,
title_string = NULL) {
col1 <- rlang::sym(str_c("PC", as.character(pc1)))
col2 <- rlang::sym(str_c("PC", as.character(pc2)))
shape_var <- rlang::enquo(shape_var)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Rho_bounds.R
\name{get_r_uz_bounds}
\alias{get_r_uz_bounds}
\title{Evaluates r_uz bounds given user restrictions on r_TstarU and kappa}
\usage{
get_r_uz_bounds(r_TstarU_lower, r_TstarU_upper, k_lower, k_upper, obs)
}
\arguments{
\item{r_Tstar... | /ivdoctr/man/get_r_uz_bounds.Rd | no_license | akhikolla/TestedPackages-NoIssues | R | false | true | 905 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Rho_bounds.R
\name{get_r_uz_bounds}
\alias{get_r_uz_bounds}
\title{Evaluates r_uz bounds given user restrictions on r_TstarU and kappa}
\usage{
get_r_uz_bounds(r_TstarU_lower, r_TstarU_upper, k_lower, k_upper, obs)
}
\arguments{
\item{r_Tstar... |
# Association rules
require(arules)
require(arulesViz)
require(ggplot2)
# Import the Groceciers dataset
data('Groceries')
dim(Groceries)
# Review the data levels that we're dealing with to understand what to look for.
head(itemInfo(Groceries))
# How many different item tyes are there and how frequent are they?
i... | /Week 3/Alonso_Week3.R | no_license | sudz4/IST718 | R | false | false | 1,346 | r | # Association rules
require(arules)
require(arulesViz)
require(ggplot2)
# Import the Groceciers dataset
data('Groceries')
dim(Groceries)
# Review the data levels that we're dealing with to understand what to look for.
head(itemInfo(Groceries))
# How many different item tyes are there and how frequent are they?
i... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fviz_hmfa.R
\name{fviz_hmfa}
\alias{fviz_hmfa}
\alias{fviz_hmfa_ind}
\alias{fviz_hmfa_var}
\alias{fviz_hmfa_quali_biplot}
\title{Visualize Hierarchical Multiple Factor Analysis}
\usage{
fviz_hmfa_ind(X, axes = c(1, 2), geom = c("point", "text... | /man/fviz_hmfa.Rd | no_license | mattocci27/factoextra | R | false | true | 6,826 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fviz_hmfa.R
\name{fviz_hmfa}
\alias{fviz_hmfa}
\alias{fviz_hmfa_ind}
\alias{fviz_hmfa_var}
\alias{fviz_hmfa_quali_biplot}
\title{Visualize Hierarchical Multiple Factor Analysis}
\usage{
fviz_hmfa_ind(X, axes = c(1, 2), geom = c("point", "text... |
\name{ycinterextra-package}
\alias{ycinterextra-package}
\alias{ycinterextra}
\docType{package}
\title{Yield curve or zero-coupon prices interpolation and extrapolation}
\description{
Yield curve or zero-coupon prices interpolation and extrapolation using the Nelson-Siegel, Svensson, Smith-Wilson models, and Herm... | /man/ycinterextra-package.Rd | no_license | cran/ycinterextra | R | false | false | 1,618 | rd | \name{ycinterextra-package}
\alias{ycinterextra-package}
\alias{ycinterextra}
\docType{package}
\title{Yield curve or zero-coupon prices interpolation and extrapolation}
\description{
Yield curve or zero-coupon prices interpolation and extrapolation using the Nelson-Siegel, Svensson, Smith-Wilson models, and Herm... |
library("deSolve")
library("reshape2")
library("ggplot2"); theme_set(theme_classic())
source("../simFuns.R") ## for transform.list
source("../hivFuns.R")
source("../Param.R")
source("../hivModels.R")
library("gridExtra")
get_rval <- function(g, yini, pp, plot.it=FALSE,
tvec = c(1:500),
... | /R/simulations/figure1.R | no_license | kronga/HIV_LHS | R | false | false | 3,857 | r | library("deSolve")
library("reshape2")
library("ggplot2"); theme_set(theme_classic())
source("../simFuns.R") ## for transform.list
source("../hivFuns.R")
source("../Param.R")
source("../hivModels.R")
library("gridExtra")
get_rval <- function(g, yini, pp, plot.it=FALSE,
tvec = c(1:500),
... |
# This sets the size of plots to a good default.
options(repr.plot.width = 5, repr.plot.height = 4)
# Loading in packages
library(tidyverse)
# Reading in the data
data <- read_csv("candy_crush.csv")
# Printing out the first couple of rows
head(data)
print("Number of players:")
length(unique(data$player_id))
print... | /candy_crush_analysis.r | no_license | IqraJunaid/ccsa | R | false | false | 1,940 | r |
# This sets the size of plots to a good default.
options(repr.plot.width = 5, repr.plot.height = 4)
# Loading in packages
library(tidyverse)
# Reading in the data
data <- read_csv("candy_crush.csv")
# Printing out the first couple of rows
head(data)
print("Number of players:")
length(unique(data$player_id))
print... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rapache.R
\name{remove.old.files}
\alias{remove.old.files}
\title{remove.old.files}
\usage{
remove.old.files(tmpdir, tmpdir.timeout.seconds)
}
\arguments{
\item{tmpdir}{Path to directory whose old files you want to delete}
\item{tmpdir.timeo... | /man/remove.old.files.Rd | no_license | apomatix/AnalysisPageServer | R | false | true | 614 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rapache.R
\name{remove.old.files}
\alias{remove.old.files}
\title{remove.old.files}
\usage{
remove.old.files(tmpdir, tmpdir.timeout.seconds)
}
\arguments{
\item{tmpdir}{Path to directory whose old files you want to delete}
\item{tmpdir.timeo... |
library(EvCombR)
### Name: extPoints
### Title: Extreme Points of a Credal Set
### Aliases: extPoints
### ** Examples
# state space
stateSpace <- c("a", "b", "c")
# construct credal set
c <- credal(c(0.1, 0.1, 0.1), c(0.8, 0.8, 0.8), stateSpace)
# obtain extrem points
eMat <- extPoints(c)
| /data/genthat_extracted_code/EvCombR/examples/extPoints.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 300 | r | library(EvCombR)
### Name: extPoints
### Title: Extreme Points of a Credal Set
### Aliases: extPoints
### ** Examples
# state space
stateSpace <- c("a", "b", "c")
# construct credal set
c <- credal(c(0.1, 0.1, 0.1), c(0.8, 0.8, 0.8), stateSpace)
# obtain extrem points
eMat <- extPoints(c)
|
testSet_load_values = c(
rbind(
testSet$Loads.0,
testSet$Loads.1,
testSet$Loads.2,
testSet$Loads.3,
testSet$Loads.4,
testSet$Loads.5,
testSet$Loads.6,
testSet$Loads.7,
testSet$Loads.8,
testSet$Loads.9,
testSet$Loads.10,
testSet$Loads.11,
testSet$Loads.12,
tes... | /scripts/9-ipto_vs_ooem.R | permissive | Time-Series-Analysis-learn/Greek-Electric-Load-Forecasting-IPTO | R | false | false | 673 | r |
testSet_load_values = c(
rbind(
testSet$Loads.0,
testSet$Loads.1,
testSet$Loads.2,
testSet$Loads.3,
testSet$Loads.4,
testSet$Loads.5,
testSet$Loads.6,
testSet$Loads.7,
testSet$Loads.8,
testSet$Loads.9,
testSet$Loads.10,
testSet$Loads.11,
testSet$Loads.12,
tes... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lfocv.R
\name{loo.bmgarch}
\alias{loo.bmgarch}
\alias{loo}
\title{Leave-Future-Out Cross Validation (LFO-CV)}
\usage{
\method{loo}{bmgarch}(x, ..., type = "lfo", L = NULL, mode = "backward")
}
\arguments{
\item{x}{Fitted bmgarch model. \code{... | /man/loo.bmgarch.Rd | no_license | shuning302/bmgarch | R | false | true | 1,646 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lfocv.R
\name{loo.bmgarch}
\alias{loo.bmgarch}
\alias{loo}
\title{Leave-Future-Out Cross Validation (LFO-CV)}
\usage{
\method{loo}{bmgarch}(x, ..., type = "lfo", L = NULL, mode = "backward")
}
\arguments{
\item{x}{Fitted bmgarch model. \code{... |
## Assignment week 2 Part 2
##Goal : Write a function that reads a directory full of files and reports the number of completely observed cases in each data file.
## The function should return a data frame where the first column is the name of the file and the second column is the number of complete cases
## Author :... | /complete.R | no_license | srivathsesh/R | R | false | false | 2,184 | r | ## Assignment week 2 Part 2
##Goal : Write a function that reads a directory full of files and reports the number of completely observed cases in each data file.
## The function should return a data frame where the first column is the name of the file and the second column is the number of complete cases
## Author :... |
## ----message=FALSE-------------------------------------------------------
# SET UP --------------
# install.packages(c("ff", "ffbase"))
# load packages
library(ff)
library(ffbase)
library(pryr)
# create directory for ff chunks, and assign directory to ff
system("mkdir ffdf")
options(fftempdir = "ffdf")
## -----... | /materials/sourcecode/04_cleaning_transformation.R | no_license | KKobrin95/BigData | R | false | false | 6,151 | r | ## ----message=FALSE-------------------------------------------------------
# SET UP --------------
# install.packages(c("ff", "ffbase"))
# load packages
library(ff)
library(ffbase)
library(pryr)
# create directory for ff chunks, and assign directory to ff
system("mkdir ffdf")
options(fftempdir = "ffdf")
## -----... |
library(RPostgreSQL)
library(dplyr)
#Uvoz:
source("auth.R", encoding="UTF-8")
source("uvoz in urejanje podatkov/tabela.R", encoding="UTF-8")
# Povezemo se z gonilnikom za PostgreSQL
drv <- dbDriver("PostgreSQL")
# Funkcija za brisanje tabel
delete_table <- function(){
# Uporabimo funkcijo tryCatch,
# da prisili... | /baza/baza.r | permissive | jaanos/Formula-1 | R | false | false | 9,676 | r | library(RPostgreSQL)
library(dplyr)
#Uvoz:
source("auth.R", encoding="UTF-8")
source("uvoz in urejanje podatkov/tabela.R", encoding="UTF-8")
# Povezemo se z gonilnikom za PostgreSQL
drv <- dbDriver("PostgreSQL")
# Funkcija za brisanje tabel
delete_table <- function(){
# Uporabimo funkcijo tryCatch,
# da prisili... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Toolbox_run.r
\name{supplyData}
\alias{supplyData}
\title{supplyData}
\usage{
supplyData(
dat,
variableType = "gaussian",
design.matrix,
levels.dat,
scenario.data,
effect.info = list(Multiplicative = 1, Fixed.change = 0, Effect.va... | /man/supplyData.Rd | no_license | bmtglobal/epower | R | false | true | 4,894 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Toolbox_run.r
\name{supplyData}
\alias{supplyData}
\title{supplyData}
\usage{
supplyData(
dat,
variableType = "gaussian",
design.matrix,
levels.dat,
scenario.data,
effect.info = list(Multiplicative = 1, Fixed.change = 0, Effect.va... |
context("CLI")
#this sets up the CLI interface and the shortcuts ${indir} and ${outdir}
source("utils.R")
configureSys()
#this is to fix some obscure behaviour of R CMD check
Sys.setenv("R_TESTS" = "")
#run a command without displaying absolutely anything
runQuiet <- function(cmd){
code <- paste('-c', shQuote(cm... | /tests/testthat/test-_CLI.R | no_license | SamBuckberry/epicseg | R | false | false | 7,982 | r | context("CLI")
#this sets up the CLI interface and the shortcuts ${indir} and ${outdir}
source("utils.R")
configureSys()
#this is to fix some obscure behaviour of R CMD check
Sys.setenv("R_TESTS" = "")
#run a command without displaying absolutely anything
runQuiet <- function(cmd){
code <- paste('-c', shQuote(cm... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/functions-protein.R
\name{count.ProteinDetail}
\alias{count.ProteinDetail}
\title{Returns the number of proteins for a particual public project}
\usage{
count.ProteinDetail(project.accession)
}
\arguments{
\item{project.accession}{The... | /vignettes/man/count.ProteinDetail.Rd | no_license | gccong/ddiR-sirius | R | false | false | 519 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/functions-protein.R
\name{count.ProteinDetail}
\alias{count.ProteinDetail}
\title{Returns the number of proteins for a particual public project}
\usage{
count.ProteinDetail(project.accession)
}
\arguments{
\item{project.accession}{The... |
#' Gets details for bills.
#'
#' Data on bills in Congress goes back to 2009, and comes from a mix of sources:
#' \itemize{
#' \item Scrapers at github.com/unitedstates for most data, including core status and history
#' information.
#' \item Bulk data at GPO's FDSys for version information, and full text.
#' \item... | /R/cg_bills.R | permissive | sorensje/rsunlight | R | false | false | 5,278 | r | #' Gets details for bills.
#'
#' Data on bills in Congress goes back to 2009, and comes from a mix of sources:
#' \itemize{
#' \item Scrapers at github.com/unitedstates for most data, including core status and history
#' information.
#' \item Bulk data at GPO's FDSys for version information, and full text.
#' \item... |
testlist <- list(hi = 0, lo = 8.89318162514244e-323, mu = 0, sig = 0)
result <- do.call(gjam:::tnormRcpp,testlist)
str(result) | /gjam/inst/testfiles/tnormRcpp/libFuzzer_tnormRcpp/tnormRcpp_valgrind_files/1610047600-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 126 | r | testlist <- list(hi = 0, lo = 8.89318162514244e-323, mu = 0, sig = 0)
result <- do.call(gjam:::tnormRcpp,testlist)
str(result) |
##################
## categoryToEntrezBuilder
## Create a mapping from the categories to the Entrez ids
setMethod("categoryToEntrezBuilder",
signature(p="KEGGListHyperGParams"),
function(p) {
keep.all <- switch(testDirection(p),
over=FALSE,
... | /eisa/R/KEGG.R | no_license | gaborcsardi/ISA | R | false | false | 3,939 | r |
##################
## categoryToEntrezBuilder
## Create a mapping from the categories to the Entrez ids
setMethod("categoryToEntrezBuilder",
signature(p="KEGGListHyperGParams"),
function(p) {
keep.all <- switch(testDirection(p),
over=FALSE,
... |
\name{plotOptimResultsPan}
\alias{plotOptimResultsPan}
\title{
Plots the data and simulated values from any CellNOptR formalism
}
\description{
This function plots the data and simulated values according to each experiment in CNOlist. The data is shown as black triangles and the simulation by a blue dashed line. The co... | /man/plotOptimResultsPan.Rd | no_license | saezlab/CellNOptR | R | false | false | 3,623 | rd | \name{plotOptimResultsPan}
\alias{plotOptimResultsPan}
\title{
Plots the data and simulated values from any CellNOptR formalism
}
\description{
This function plots the data and simulated values according to each experiment in CNOlist. The data is shown as black triangles and the simulation by a blue dashed line. The co... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getAreas.R
\name{getAreas}
\alias{getAreas}
\alias{getDistricts}
\title{Select and exclude areas}
\usage{
getAreas(
select = NULL,
exclude = NULL,
withClustersOnly = FALSE,
regexpSelect = TRUE,
regexpExclude = TRUE,
o... | /man/getAreas.Rd | no_license | cran/antaresRead | R | false | true | 1,981 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getAreas.R
\name{getAreas}
\alias{getAreas}
\alias{getDistricts}
\title{Select and exclude areas}
\usage{
getAreas(
select = NULL,
exclude = NULL,
withClustersOnly = FALSE,
regexpSelect = TRUE,
regexpExclude = TRUE,
o... |
library(tidyverse)
detach("package:MASS")
getDataPath <- function (...) {
return(file.path("C:/Users/n10393021/OneDrive - Queensland University of Technology/Documents/PhD/Project/Fieldwork_Bowra", ...))
}
rm(list = ls())
#Windy minutes selection - get the CSV (for each index I repeated the process), read it, sel... | /Chapter1_FineScaleAcousticSurvey/SM_Preparation_SpectralIndices.R | permissive | QutEcoacoustics/spatial-acoustics | R | false | false | 11,883 | r | library(tidyverse)
detach("package:MASS")
getDataPath <- function (...) {
return(file.path("C:/Users/n10393021/OneDrive - Queensland University of Technology/Documents/PhD/Project/Fieldwork_Bowra", ...))
}
rm(list = ls())
#Windy minutes selection - get the CSV (for each index I repeated the process), read it, sel... |
\name{KIRBY}
\alias{KIRBY}
\docType{data}
\title{
KIRBY Study Pancreatic Cancer Dataset
}
\description{
An expresion set object containing pancreatic cancer data
}
\format{
eSet object
}
\details{
more details can be found in the experimentData section of the object
}
\source{
https://www.ncbi.nlm.nih.gov/geo/... | /man/KIRBY.Rd | no_license | fiddlerOnDaRoof/MetaGxPancreas | R | false | false | 496 | rd | \name{KIRBY}
\alias{KIRBY}
\docType{data}
\title{
KIRBY Study Pancreatic Cancer Dataset
}
\description{
An expresion set object containing pancreatic cancer data
}
\format{
eSet object
}
\details{
more details can be found in the experimentData section of the object
}
\source{
https://www.ncbi.nlm.nih.gov/geo/... |
# Load packages
library(shiny)
library(shinydashboard)
library(shinycssloaders)
# Source necessary files
source("global.R")
source("inputModule.R")
source("leaflet_module.R")
source("addressModule.R")
# Define UI for shiny app
ui <- dashboardPage(
dashboardHeader(title = "Guilford COVID-19 Resource Finder"),
d... | /resourceFinderV5/app.R | no_license | jasonajones73/ResourceFinderV4 | R | false | false | 4,600 | r | # Load packages
library(shiny)
library(shinydashboard)
library(shinycssloaders)
# Source necessary files
source("global.R")
source("inputModule.R")
source("leaflet_module.R")
source("addressModule.R")
# Define UI for shiny app
ui <- dashboardPage(
dashboardHeader(title = "Guilford COVID-19 Resource Finder"),
d... |
#Download the file and put the file in the data folder
if(!file.exists("./data")){dir.create("./data")}
fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileUrl,destfile="./data/Dataset.zip")
#nzip the file
unzip(zipfile="./data/Dataset.zip",exdi... | /run_analysis.R | no_license | saayanguchhait/Getting-and-Cleaning-Data-Project | R | false | false | 3,725 | r | #Download the file and put the file in the data folder
if(!file.exists("./data")){dir.create("./data")}
fileUrl <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip"
download.file(fileUrl,destfile="./data/Dataset.zip")
#nzip the file
unzip(zipfile="./data/Dataset.zip",exdi... |
library(MASS)
source("casm_helper.R")
source("ising_helpers.R")
require(Rcpp)
library(reshape2)
library(tidyverse)
library(ggplot2)
library(rstan)
library(stats)
library(parallel)
library(gtools)
library(GGally)
library(purrr)
path = "/home/bbales2/casm/invent2"
ecis = rep(0, length(getECIs(path)))
N = getSupercell(... | /paper_makeplots_boltzmannB.R | no_license | bbbales2/ising | R | false | false | 3,880 | r | library(MASS)
source("casm_helper.R")
source("ising_helpers.R")
require(Rcpp)
library(reshape2)
library(tidyverse)
library(ggplot2)
library(rstan)
library(stats)
library(parallel)
library(gtools)
library(GGally)
library(purrr)
path = "/home/bbales2/casm/invent2"
ecis = rep(0, length(getECIs(path)))
N = getSupercell(... |
cup4<-c(447, 396, 382, 410)
cup2<-c(438, 521, 468, 391, 504, 472)
five_o_clock<-c(513, 543, 506, 489, 407)
library(clinfun)
jonckheere.test() | /11.27.19.V2.R | no_license | RodionovF/R_scripts | R | false | false | 142 | r | cup4<-c(447, 396, 382, 410)
cup2<-c(438, 521, 468, 391, 504, 472)
five_o_clock<-c(513, 543, 506, 489, 407)
library(clinfun)
jonckheere.test() |
#Main Analysis
library(RSQLite)
library(data.table)
#library(gplots)
#library(dtw)
#library(Rtsne) ##Rtsne
library(proxy) #dist
library(fastcluster)
source("/home/ahe/Analysis/201608_HicChipRnaCor/codes/3Main_Processing/HicChipRNACor_functionPack.r")
#source("F:/DATA/R/Kees/1608_HicChipRNACor/3Main_Processing/HicChip... | /3Main_Processing/Main_forDomains.r | no_license | Arthurhe/ChIP-RNA-HiC-correlations | R | false | false | 2,964 | r | #Main Analysis
library(RSQLite)
library(data.table)
#library(gplots)
#library(dtw)
#library(Rtsne) ##Rtsne
library(proxy) #dist
library(fastcluster)
source("/home/ahe/Analysis/201608_HicChipRnaCor/codes/3Main_Processing/HicChipRNACor_functionPack.r")
#source("F:/DATA/R/Kees/1608_HicChipRNACor/3Main_Processing/HicChip... |
# Uses output of integrateSoundsscapeData.R to create plots and models for AK soundscape project
rm(list=ls())
#general
library(dplyr)
library(data.table)
library(ggplot2)
#for model
library(suncalc)
library(mgcv)
library(zoo)
library(MuMIn)
library(visreg)
library(corrplot)
#for map
library("sf")
library("rnaturalear... | /modelPlot_SoundscapeData.R | no_license | mfmckenna/MM_AKSoundscape | R | false | false | 59,648 | r | # Uses output of integrateSoundsscapeData.R to create plots and models for AK soundscape project
rm(list=ls())
#general
library(dplyr)
library(data.table)
library(ggplot2)
#for model
library(suncalc)
library(mgcv)
library(zoo)
library(MuMIn)
library(visreg)
library(corrplot)
#for map
library("sf")
library("rnaturalear... |
context("Confirmatory Factor Analysis")
# 3-factor run
options <- jaspTools::analysisOptions("ConfirmatoryFactorAnalysis")
options$groupvar <- ""
options$invariance <- "configural"
options$mimic <- "lavaan"
options$se <- "standard"
options$estimator <- "default"
options$std <- "none"
options$factors <- list(
list(in... | /tests/testthat/test-confirmatoryfactoranalysis.R | no_license | TimKDJ/jaspFactor | R | false | false | 12,266 | r | context("Confirmatory Factor Analysis")
# 3-factor run
options <- jaspTools::analysisOptions("ConfirmatoryFactorAnalysis")
options$groupvar <- ""
options$invariance <- "configural"
options$mimic <- "lavaan"
options$se <- "standard"
options$estimator <- "default"
options$std <- "none"
options$factors <- list(
list(in... |
shinyUI(
pageWithSidebar(
headerPanel("Calculate Your Body Mass Index"),
sidebarPanel(
helpText('Enter your weight and height using standard (pounds & inches ) or
metric (kilograms & centimeters) measures.'),
radioButtons("measure", "Measure Type",
c("Standard" = ... | /ui.R | no_license | trelo/BMIapp | R | false | false | 1,516 | r | shinyUI(
pageWithSidebar(
headerPanel("Calculate Your Body Mass Index"),
sidebarPanel(
helpText('Enter your weight and height using standard (pounds & inches ) or
metric (kilograms & centimeters) measures.'),
radioButtons("measure", "Measure Type",
c("Standard" = ... |
#!/usr/bin/env Rscript
if (!require("optparse", quietly = TRUE)) {
install.packages("optparse", repos="http://cran.rstudio.com/")
if (!library("optparse")) {
stop("Couldn't load 'optparse'.")
}
}
parser <- OptionParser()
parser <- add_option(parser, c("-v", "--verbose"), action="store_true",
d... | /Templates/R-lang.R | no_license | Hellfar/baseConfig | R | false | false | 2,064 | r | #!/usr/bin/env Rscript
if (!require("optparse", quietly = TRUE)) {
install.packages("optparse", repos="http://cran.rstudio.com/")
if (!library("optparse")) {
stop("Couldn't load 'optparse'.")
}
}
parser <- OptionParser()
parser <- add_option(parser, c("-v", "--verbose"), action="store_true",
d... |
#library(FirebrowseR)
context("Metadata.ClinicalNames")
test_that("CDEs are retrieved correctly", {
format = "csv"
obj = Metadata.ClinicalNames(format = format)
expect_equal(nrow(obj), 64)
expect_equal(ncol(obj), 1)
format = "tsv"
obj = Metadata.ClinicalNames(format = format)
expect_equal(nrow(obj), ... | /tests/testthat/test.Metadata.ClinicalNames.R | no_license | ivan-krukov/FirebrowseR | R | false | false | 357 | r | #library(FirebrowseR)
context("Metadata.ClinicalNames")
test_that("CDEs are retrieved correctly", {
format = "csv"
obj = Metadata.ClinicalNames(format = format)
expect_equal(nrow(obj), 64)
expect_equal(ncol(obj), 1)
format = "tsv"
obj = Metadata.ClinicalNames(format = format)
expect_equal(nrow(obj), ... |
#' @include PredictResult.R
PerformanceResult = R6Class("PerformanceResult",
inherit = PredictResult,
cloneable = FALSE,
public = list(
initialize = function(pred.result, measures, perf.vals) {
assertR6(pred.result, "PredictResult")
assertList(measures, "Measure")
self$data = pred.result$dat... | /R/PerformanceResult.R | no_license | mlr-archive/mlrng | R | false | false | 794 | r | #' @include PredictResult.R
PerformanceResult = R6Class("PerformanceResult",
inherit = PredictResult,
cloneable = FALSE,
public = list(
initialize = function(pred.result, measures, perf.vals) {
assertR6(pred.result, "PredictResult")
assertList(measures, "Measure")
self$data = pred.result$dat... |
install.packages("tm")
install.packages("FSelector")
install.packages("stringi")
install.packages("rJava")
install.packages("rweka")
library(tm)
library(FSelector)
library(stringi)
# Load the data
TPAMI <- read.csv("IEEE_TPAMI_2015_2017.csv", encoding = "UTF-8", stringsAsFactors = FALSE)
JoF <- read.csv... | /NLP_NEW_Codes_Datasets/R05_Dimensionality Reduction.R | no_license | MvssHarshavardhan/NLP-material | R | false | false | 6,196 | r | install.packages("tm")
install.packages("FSelector")
install.packages("stringi")
install.packages("rJava")
install.packages("rweka")
library(tm)
library(FSelector)
library(stringi)
# Load the data
TPAMI <- read.csv("IEEE_TPAMI_2015_2017.csv", encoding = "UTF-8", stringsAsFactors = FALSE)
JoF <- read.csv... |
library(sqldf)
power <- read.csv.sql("household_power_consumption.txt",
sql = "select * from file where Date ='1/2/2007'or Date ='2/2/2007'" ,
header = TRUE, sep = ";")
library(lubridate)
power$datetime <- paste(power$Date, power$Time, sep =',')
power$datetime <- dmy_hms(p... | /plot3.R | no_license | sunanthas9/RPlots_Basic | R | false | false | 941 | r | library(sqldf)
power <- read.csv.sql("household_power_consumption.txt",
sql = "select * from file where Date ='1/2/2007'or Date ='2/2/2007'" ,
header = TRUE, sep = ";")
library(lubridate)
power$datetime <- paste(power$Date, power$Time, sep =',')
power$datetime <- dmy_hms(p... |
# Statistical analyses and summary statistics
# Tim Szewczyk
# Created 2015 April 17
#######
## Load libraries, functions, data
#######
library(ggplot2); theme_set(theme_bw()); library(grid); library(gridExtra)
library(xlsx); library(plyr); library(vegan); library(betapart); library(lme4)
source("R_scripts/FuncsGen.... | /R_scripts/figsPublish.R | no_license | Sz-Tim/isRev | R | false | false | 8,151 | r | # Statistical analyses and summary statistics
# Tim Szewczyk
# Created 2015 April 17
#######
## Load libraries, functions, data
#######
library(ggplot2); theme_set(theme_bw()); library(grid); library(gridExtra)
library(xlsx); library(plyr); library(vegan); library(betapart); library(lme4)
source("R_scripts/FuncsGen.... |
setwd('')
#Reading data
dat <- data.frame(read.csv("data/Polyascus_proteins.csv"))
#select Area
dat1_pol <- dat[,c(3, 18:29)]
rownames(dat1_pol) <- dat1_pol[,1]
dat1_pol <- dat1_pol[,-1]
head(dat1_pol)
#####################Information about the samples##################
library(readxl)
fact_pol <- data... | /Diff_exp_nervous_tissue_Hemigrapsus_Polyascus.R | no_license | anlianguzova/Polyascus_polygeneus_host_nerv_prot_diff_exp | R | false | false | 28,185 | r | setwd('')
#Reading data
dat <- data.frame(read.csv("data/Polyascus_proteins.csv"))
#select Area
dat1_pol <- dat[,c(3, 18:29)]
rownames(dat1_pol) <- dat1_pol[,1]
dat1_pol <- dat1_pol[,-1]
head(dat1_pol)
#####################Information about the samples##################
library(readxl)
fact_pol <- data... |
install.packages("Rserve")
library(Rserve)
Rserve(FALSE, port = 6311, args = '--RS-encoding utf8 --no-save --slave --encoding --internet2')
Rserve(args = "--RS- encoding utf8")
# png - java
setwd('C:\\Users\\Win10\\Desktop\\Backup\\국비반자료\\upload')
library(ggplot2)
mpg <- as.data.frame(mpg)
png(width = 500, height = 50... | /basic_r/code/05분석결과보고서/script03(Reserve).R | no_license | JaeHyun-Ban/GB_R | R | false | false | 1,195 | r | install.packages("Rserve")
library(Rserve)
Rserve(FALSE, port = 6311, args = '--RS-encoding utf8 --no-save --slave --encoding --internet2')
Rserve(args = "--RS- encoding utf8")
# png - java
setwd('C:\\Users\\Win10\\Desktop\\Backup\\국비반자료\\upload')
library(ggplot2)
mpg <- as.data.frame(mpg)
png(width = 500, height = 50... |
rm(list=ls())
library(FLCore)
#library(FLFleet)
#library(FLAssess)
#library(FLSAM)
library(MASS)
#library(msm)
for (opt in c(4:16,21))
{
cat("Management opt",opt,"\n")
# permanent changes?
perm<-F
if (perm)cat("!!! scenario with permanent changes")
# numer of years for the projections
prlength <- 40
# reduce th... | /Sensitivity perm/03.2_run sim batch.r | no_license | brune001/WKMACLTMP2014 | R | false | false | 16,705 | r |
rm(list=ls())
library(FLCore)
#library(FLFleet)
#library(FLAssess)
#library(FLSAM)
library(MASS)
#library(msm)
for (opt in c(4:16,21))
{
cat("Management opt",opt,"\n")
# permanent changes?
perm<-F
if (perm)cat("!!! scenario with permanent changes")
# numer of years for the projections
prlength <- 40
# reduce th... |
## This function creates a list of 4 subfunctions: set, get, setinverse and getinverse
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
## The function set assigns the value of the matrix
set <- function(y) {
x <<- y ## Allows the subfunction to alter the x and i variables ... | /cachematrix.R | no_license | rafaruizs/ProgrammingAssignment2 | R | false | false | 1,952 | r | ## This function creates a list of 4 subfunctions: set, get, setinverse and getinverse
makeCacheMatrix <- function(x = matrix()) {
i <- NULL
## The function set assigns the value of the matrix
set <- function(y) {
x <<- y ## Allows the subfunction to alter the x and i variables ... |
# ===============================================================================
# * FILE: 03_rochester.R
# * PURPOSE: Import and Analyze PUMS data from 2018
# * AUTHORS: Andrea Ringer
# * DATE CREATED: June 9, 2020
# * DATE LAST MODIFIED: July 2, 2020
# ================================================================... | /rochester_affordable.R | no_license | astaveski/rochester | R | false | false | 91,567 | r | # ===============================================================================
# * FILE: 03_rochester.R
# * PURPOSE: Import and Analyze PUMS data from 2018
# * AUTHORS: Andrea Ringer
# * DATE CREATED: June 9, 2020
# * DATE LAST MODIFIED: July 2, 2020
# ================================================================... |
library(data.table)
library(dplyr)
##Read Supporting Metadata
directory <- setwd("D:/R learning/dataclean/UCI HAR Dataset")
## download variable names for features
featureNames <- read.table("D:/R learning/dataclean/UCI HAR Dataset/features.txt" ,,header = FALSE)
activityLabels <- read.table("D:/R learning/da... | /run_analysis.R | no_license | aparnabasumukherjee/Data-cleaning-Assignment1 | R | false | false | 3,037 | r | library(data.table)
library(dplyr)
##Read Supporting Metadata
directory <- setwd("D:/R learning/dataclean/UCI HAR Dataset")
## download variable names for features
featureNames <- read.table("D:/R learning/dataclean/UCI HAR Dataset/features.txt" ,,header = FALSE)
activityLabels <- read.table("D:/R learning/da... |
library(dplyr)
library(data.table)
library(stringi)
if(!exists("addSentenceMarks", mode="function")||
!exists("cleanSentence", mode="function")) source("utils.R")
loadFreqs <- function(){
if(!exists("freqMap")){
#print("Loading Data")
load("onePercentFreq.RData")
freqMap <<- list()
freqMap[["unig... | /predictionModel.R | no_license | villalobos23/CapProyect | R | false | false | 5,338 | r |
library(dplyr)
library(data.table)
library(stringi)
if(!exists("addSentenceMarks", mode="function")||
!exists("cleanSentence", mode="function")) source("utils.R")
loadFreqs <- function(){
if(!exists("freqMap")){
#print("Loading Data")
load("onePercentFreq.RData")
freqMap <<- list()
freqMap[["unig... |
# ===============================
# About: Time series similarities methods
# Dependences: utils.r, rqa.r
# Author: Lucas Pagliosa
# Data of creation: 12/02/16
# Last revision 12/02/15
# ==============================
source("~/Canon/R/utils.r")
sourceFiles("~/Canon/R/RQA.r")
loadPackages("dtw")
dtwr <- function(ts1... | /similaritiesFunctions.r | no_license | pagliosa/chaos | R | false | false | 6,739 | r | # ===============================
# About: Time series similarities methods
# Dependences: utils.r, rqa.r
# Author: Lucas Pagliosa
# Data of creation: 12/02/16
# Last revision 12/02/15
# ==============================
source("~/Canon/R/utils.r")
sourceFiles("~/Canon/R/RQA.r")
loadPackages("dtw")
dtwr <- function(ts1... |
# Copyright 2019 Battelle Memorial Institute; see the LICENSE file.
#' module_emissions_L161.nonghg_en_ssp_R_S_T_Y
#'
#' Produce future non-GHG emissions factors by SSP scenario.
#'
#' @param command API command to execute
#' @param ... other optional parameters, depending on command
#' @return Depends on \code{comman... | /R/zchunk_L161.nonghg_en_ssp_R_S_T_Y.R | permissive | Liyang-Guo/gcamdata | R | false | false | 16,742 | r | # Copyright 2019 Battelle Memorial Institute; see the LICENSE file.
#' module_emissions_L161.nonghg_en_ssp_R_S_T_Y
#'
#' Produce future non-GHG emissions factors by SSP scenario.
#'
#' @param command API command to execute
#' @param ... other optional parameters, depending on command
#' @return Depends on \code{comman... |
writeLinkageLayers <- function(){
r <- '\t\t\t<div id="control_layers_container" class="control_layers_container" >
<div id="control_layers_header" class="control_layers_header" >
<a id="control_layers_click" class="control_layers_click" onClick="javascript:show_hide_control(this);" >▼</a>
<a clas... | /R/writeLinkageLayers.R | no_license | aaronolsen/linkR | R | false | false | 5,829 | r | writeLinkageLayers <- function(){
r <- '\t\t\t<div id="control_layers_container" class="control_layers_container" >
<div id="control_layers_header" class="control_layers_header" >
<a id="control_layers_click" class="control_layers_click" onClick="javascript:show_hide_control(this);" >▼</a>
<a clas... |
#POL and REl Replication Files
# Emily K. Gade
# 20 May 2020
rm(list=ls())
library(foreign)
library(wordcloud)
library(betareg)
library(stargazer)
library(xtable)
library(ggplot2)
library(tidyverse)
library(reshape2)
library(scales)
library(pglm)
setwd("~/Desktop/Emory/pub_projects/Published/EKGJonJohn_Senate... | /PolAndReligionRepFiles.R | no_license | ekgade/PoliticsAndRelgion_RepFiles | R | false | false | 7,837 | r | #POL and REl Replication Files
# Emily K. Gade
# 20 May 2020
rm(list=ls())
library(foreign)
library(wordcloud)
library(betareg)
library(stargazer)
library(xtable)
library(ggplot2)
library(tidyverse)
library(reshape2)
library(scales)
library(pglm)
setwd("~/Desktop/Emory/pub_projects/Published/EKGJonJohn_Senate... |
#!/usr/bin/env R
r = getOption("repos")
r["CRAN"] = "http://cran.us.r-project.org"
options(repos = r)
# Install packages
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
if (!requireNamespace("GenomicFeatures", quietly = TRUE))
BiocManager::install("GenomicFeatures")
if (!re... | /scripts/exp-analysis.R | no_license | alejoaa/biof-term-project | R | false | false | 3,498 | r | #!/usr/bin/env R
r = getOption("repos")
r["CRAN"] = "http://cran.us.r-project.org"
options(repos = r)
# Install packages
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
if (!requireNamespace("GenomicFeatures", quietly = TRUE))
BiocManager::install("GenomicFeatures")
if (!re... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions_eval.R
\name{plotcorr}
\alias{plotcorr}
\title{Plot of correlations (numerical variables)}
\usage{
plotcorr(object, limit = 10)
}
\arguments{
\item{object}{An object of class ccdata}
\item{limit}{Number of variables to display by d... | /man/plotcorr.Rd | no_license | adrienPAVOINE/ClustCheck | R | false | true | 601 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions_eval.R
\name{plotcorr}
\alias{plotcorr}
\title{Plot of correlations (numerical variables)}
\usage{
plotcorr(object, limit = 10)
}
\arguments{
\item{object}{An object of class ccdata}
\item{limit}{Number of variables to display by d... |
\name{ignizio.example.3.1}
\docType{data}
\alias{ignizio.example.3.1}
\title{Ignizio (1976) Example Data Sets}
\description{
The data set that corresponds to Example 3-1
found in Ignizio (1976). These are
examples of goal programming problems solved
using the methods described by author.
Find
\... | /man/ignizio.example.3.1.Rd | no_license | Bhanditz/goalprog | R | false | false | 1,358 | rd | \name{ignizio.example.3.1}
\docType{data}
\alias{ignizio.example.3.1}
\title{Ignizio (1976) Example Data Sets}
\description{
The data set that corresponds to Example 3-1
found in Ignizio (1976). These are
examples of goal programming problems solved
using the methods described by author.
Find
\... |
# ROUND VALUES ------------------------------------------------------------
# R uses 'Round half to even' rule for rounding.
# 'Round half to even' is a tie-breaking rule that is less biased.
# x = c(1.85, 1.54, 1.65, 1.75, 1.85, 1.84, 1)
# (round(x, 1))
# 'Round half away from zero' will be used for results output.
... | /code/generic/functions.R | no_license | zgalochkina/SEER_solid_tumor | R | false | false | 25,429 | r | # ROUND VALUES ------------------------------------------------------------
# R uses 'Round half to even' rule for rounding.
# 'Round half to even' is a tie-breaking rule that is less biased.
# x = c(1.85, 1.54, 1.65, 1.75, 1.85, 1.84, 1)
# (round(x, 1))
# 'Round half away from zero' will be used for results output.
... |
test_that("GetQualificationRequests", {
skip_if_not(CheckAWSKeys())
# GetQualificationRequests, nothing specified
GetQualificationRequests() -> result
expect_type(result, "list")
# GetQualificationRequests qual specified
SearchQualificationTypes(must.be.owner = TRUE, verbose = FALSE) -> quals
quals$Qual... | /tests/testthat/test-GetQualificationRequests.R | no_license | cloudyr/pyMTurkR | R | false | false | 663 | r | test_that("GetQualificationRequests", {
skip_if_not(CheckAWSKeys())
# GetQualificationRequests, nothing specified
GetQualificationRequests() -> result
expect_type(result, "list")
# GetQualificationRequests qual specified
SearchQualificationTypes(must.be.owner = TRUE, verbose = FALSE) -> quals
quals$Qual... |
#
#
#
# load libraries
library(tidyverse); library(sp); library(sf); library(raster); library(data.table); library(mapdata)
library(maptools); library(gridExtra); library(nngeo); library(stringr); library(rgdal); library(scales)
# basemap
crs.1 <- "+proj=aea +lat_1=20 +lat_2=60 +lat_0=40 +lon_0=-96 +x_0=0 +y_0=0 +ell... | /analysis.R | no_license | vmshirey/butterflySampling | R | false | false | 95,153 | r | #
#
#
# load libraries
library(tidyverse); library(sp); library(sf); library(raster); library(data.table); library(mapdata)
library(maptools); library(gridExtra); library(nngeo); library(stringr); library(rgdal); library(scales)
# basemap
crs.1 <- "+proj=aea +lat_1=20 +lat_2=60 +lat_0=40 +lon_0=-96 +x_0=0 +y_0=0 +ell... |
whri = function(habitat, geometry = NULL, indicators, forecast = FALSE, indicators2 = NULL,
...) {
indispdf = indicators
if (inherits(geometry, "SpatialPolygons")) {
w2 = over(indicators, geometry, returnList = TRUE)
indispdf$weight = sapply(w2, length)
} else if (inherits(geometry, "SpatialPoi... | /old/R/whri.R | no_license | javimarlop/eHabitat | R | false | false | 1,012 | r |
whri = function(habitat, geometry = NULL, indicators, forecast = FALSE, indicators2 = NULL,
...) {
indispdf = indicators
if (inherits(geometry, "SpatialPolygons")) {
w2 = over(indicators, geometry, returnList = TRUE)
indispdf$weight = sapply(w2, length)
} else if (inherits(geometry, "SpatialPoi... |
library(memuse)
same = function(x, y) stopifnot(all.equal(x, y))
x = mu(5000, prefix="SI")
y = mu(4001, prefix="SI")
z = 100
class(z) = "object_size"
same(mu.size(x+y), 9.001)
same(mu.size(x+1000), 6)
same(mu.size(1000+x), 6)
same(mu.size(x+z), 5.1)
same(mu.size(z+x), 5.1)
same(mu.size(x-y), 999)
same(mu.size(x-100... | /tests/arithmetic.R | permissive | shinra-dev/memuse | R | false | false | 704 | r | library(memuse)
same = function(x, y) stopifnot(all.equal(x, y))
x = mu(5000, prefix="SI")
y = mu(4001, prefix="SI")
z = 100
class(z) = "object_size"
same(mu.size(x+y), 9.001)
same(mu.size(x+1000), 6)
same(mu.size(1000+x), 6)
same(mu.size(x+z), 5.1)
same(mu.size(z+x), 5.1)
same(mu.size(x-y), 999)
same(mu.size(x-100... |
setwd("/GitHub/dataanalysis_001/a2")
setInternet2(T)
url <- "https://spark-public.s3.amazonaws.com/dataanalysis/samsungData.rda"
dest <- "raw/samsungData.rda"
download.file(url, dest)
dateDownloaded <- date()
load("raw/samsungData.rda")
sam <- samsungData
## Data exploration
table(is.na(sam))
colnames(sam)
lapply(sam... | /a2/assign2.R | no_license | as3923/dataanalysis_001 | R | false | false | 2,951 | r | setwd("/GitHub/dataanalysis_001/a2")
setInternet2(T)
url <- "https://spark-public.s3.amazonaws.com/dataanalysis/samsungData.rda"
dest <- "raw/samsungData.rda"
download.file(url, dest)
dateDownloaded <- date()
load("raw/samsungData.rda")
sam <- samsungData
## Data exploration
table(is.na(sam))
colnames(sam)
lapply(sam... |
# R scripts for extracting and plotting data stored in Mplus graphic
# information in GH5 files. Uses the rhdf5 package for loading the
# the GH5 file.
#
# Version history:
# 2013-09-13 File Version 3 for Mplus Version 7.3
# 2014-04-30 Fix for sample and estimated means.
# 2014-10-07 Fix IRT ICC and IIC functions, tur... | /Scripts/MPlus/mplus.R | no_license | mkelleman/psy564 | R | false | false | 212,323 | r | # R scripts for extracting and plotting data stored in Mplus graphic
# information in GH5 files. Uses the rhdf5 package for loading the
# the GH5 file.
#
# Version history:
# 2013-09-13 File Version 3 for Mplus Version 7.3
# 2014-04-30 Fix for sample and estimated means.
# 2014-10-07 Fix IRT ICC and IIC functions, tur... |
testlist <- list(lims = structure(c(NA, Inf, 4.94065645841247e-324, 4.94065645841247e-324, 1.38523883680017e-309, 4.94065645841247e-324, 7.83611878861782e-317, 4.94065645841247e-324, 5.38986930905673e-312, 1.33634806931829e-309, 2.12198984142677e-314, 2.1525322333871e+71, NA, 13849427.3254902, 1.45350484977583e+135... | /palm/inst/testfiles/pbc_distances/libFuzzer_pbc_distances/pbc_distances_valgrind_files/1612988643-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 488 | r | testlist <- list(lims = structure(c(NA, Inf, 4.94065645841247e-324, 4.94065645841247e-324, 1.38523883680017e-309, 4.94065645841247e-324, 7.83611878861782e-317, 4.94065645841247e-324, 5.38986930905673e-312, 1.33634806931829e-309, 2.12198984142677e-314, 2.1525322333871e+71, NA, 13849427.3254902, 1.45350484977583e+135... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 103269
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 103269
c
c Input Parameter (command line, file):
c input filename QBFLIB/Miller-Marin/trafficlight-controller/tlc03-nonunifor... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Miller-Marin/trafficlight-controller/tlc03-nonuniform-depth-109/tlc03-nonuniform-depth-109.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 703 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 103269
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 103269
c
c Input Parameter (command line, file):
c input filename QBFLIB/Miller-Marin/trafficlight-controller/tlc03-nonunifor... |
#' The Ames Housing dataset
#'
#' @format 1460 X 81 dataframe.
#'
#' \describe{
#' \item{SalePrice}{The property's sale price in dollars. This is the target variable.}
#' \item{MSSubClass}{The building class}
#' \item{MSZoning}{The general zoning classification}
#' \item{LotFrontage}{Linear feet of street conne... | /R/house_data.R | permissive | ClaraLichee/somefunctions | R | false | false | 590 | r | #' The Ames Housing dataset
#'
#' @format 1460 X 81 dataframe.
#'
#' \describe{
#' \item{SalePrice}{The property's sale price in dollars. This is the target variable.}
#' \item{MSSubClass}{The building class}
#' \item{MSZoning}{The general zoning classification}
#' \item{LotFrontage}{Linear feet of street conne... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers.R
\name{is_invalid_na_or_n}
\alias{is_invalid_na_or_n}
\title{Check if numeric or character vector is invalid, NA or N}
\usage{
is_invalid_na_or_n(x)
}
\arguments{
\item{x}{number or character}
}
\value{
TRUE/FALSE
}
\description{
Che... | /man/is_invalid_na_or_n.Rd | no_license | EddieZhang540/INORMUS | R | false | true | 378 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/helpers.R
\name{is_invalid_na_or_n}
\alias{is_invalid_na_or_n}
\title{Check if numeric or character vector is invalid, NA or N}
\usage{
is_invalid_na_or_n(x)
}
\arguments{
\item{x}{number or character}
}
\value{
TRUE/FALSE
}
\description{
Che... |
# Dichotomize the data
# The bootstrap data
is_radical <- function(x) { abs(x) > 10 }
df_vals <- length(dfs_boot)
data_shell <- matrix(NA, nrow = n_parents, ncol = df_vals)
for (i in seq_len(length(dfs_boot))) {
data <- dfs_boot[[i]]
data_jeff <- apply(data, c(1, 2), is_radical)
summary_jeff <- apply(data... | /Code/Old versions/First functioning version/3b_jeffreys_vis.R | no_license | ooelrich/bootstrap-overconfidence | R | false | false | 1,683 | r | # Dichotomize the data
# The bootstrap data
is_radical <- function(x) { abs(x) > 10 }
df_vals <- length(dfs_boot)
data_shell <- matrix(NA, nrow = n_parents, ncol = df_vals)
for (i in seq_len(length(dfs_boot))) {
data <- dfs_boot[[i]]
data_jeff <- apply(data, c(1, 2), is_radical)
summary_jeff <- apply(data... |
library(pdftools)
library(stringr)
library(plotly)
# Get current time for later use
currenttime <- as.POSIXct(Sys.time(), tz=Sys.timezone())
attributes(currenttime)$tzone <- "Asia/Hong_Kong"
currenttimetext <- paste("最後更新於香港時間 ", format(currenttime, "%Y-%m-%d %H:%M"), sep="")
# download latest data file
download.fi... | /2021-02-12/analysis.R | no_license | tszhim-tsui/2020-hk-covid19 | R | false | false | 29,259 | r | library(pdftools)
library(stringr)
library(plotly)
# Get current time for later use
currenttime <- as.POSIXct(Sys.time(), tz=Sys.timezone())
attributes(currenttime)$tzone <- "Asia/Hong_Kong"
currenttimetext <- paste("最後更新於香港時間 ", format(currenttime, "%Y-%m-%d %H:%M"), sep="")
# download latest data file
download.fi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.iotanalytics_operations.R
\name{describe_logging_options}
\alias{describe_logging_options}
\title{Retrieves the current settings of the AWS IoT Analytics logging options}
\usage{
describe_logging_options()
}
\description{
Retrieves the c... | /service/paws.iotanalytics/man/describe_logging_options.Rd | permissive | CR-Mercado/paws | R | false | true | 457 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.iotanalytics_operations.R
\name{describe_logging_options}
\alias{describe_logging_options}
\title{Retrieves the current settings of the AWS IoT Analytics logging options}
\usage{
describe_logging_options()
}
\description{
Retrieves the c... |
#Pick rows to leave out... for a LOO on the rows
#
#'Identify a matrix of row indices for LOO_rows
#'
#'@param DESIGN_rows DESIGN matrix for rows (stimuli nested in categories)
#'@param multiplier parameter to increase the number of iterations
#'@return A matrix of row indices for each iteration of the LOO
#'@export
P... | /R/Pick_rows_to_leave_out.R | no_license | michaelkriegsman/DiDiSTATIS | R | false | false | 1,686 | r | #Pick rows to leave out... for a LOO on the rows
#
#'Identify a matrix of row indices for LOO_rows
#'
#'@param DESIGN_rows DESIGN matrix for rows (stimuli nested in categories)
#'@param multiplier parameter to increase the number of iterations
#'@return A matrix of row indices for each iteration of the LOO
#'@export
P... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wksxp.R
\name{wksxp}
\alias{wksxp}
\alias{parse_wksxp}
\alias{as_wksxp}
\alias{as_wksxp.default}
\alias{as_wksxp.character}
\alias{as_wksxp.wk_wksxp}
\alias{as_wksxp.wk_wkt}
\alias{as_wksxp.wk_wkb}
\title{Mark lists as well-known "S" expressi... | /wk/man/wksxp.Rd | no_license | akhikolla/InformationHouse | R | false | true | 2,868 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/wksxp.R
\name{wksxp}
\alias{wksxp}
\alias{parse_wksxp}
\alias{as_wksxp}
\alias{as_wksxp.default}
\alias{as_wksxp.character}
\alias{as_wksxp.wk_wksxp}
\alias{as_wksxp.wk_wkt}
\alias{as_wksxp.wk_wkb}
\title{Mark lists as well-known "S" expressi... |
library(magick)
library(tidyverse)
img = image_read("data/sample.jpg")
chip_dir = "data/chipped/"
chip_size = 512 # pixels
overlap = 50 # percent
if(chip_size %% 4 != 0) {
stop("Chip size must be a multiple of 4.")
}
### get number of horizontal and vertical chips (does not include the final rightmost and bottom... | /scripts/chip-image.R | permissive | youngdjn/chip-and-unchip-image | R | false | false | 2,218 | r | library(magick)
library(tidyverse)
img = image_read("data/sample.jpg")
chip_dir = "data/chipped/"
chip_size = 512 # pixels
overlap = 50 # percent
if(chip_size %% 4 != 0) {
stop("Chip size must be a multiple of 4.")
}
### get number of horizontal and vertical chips (does not include the final rightmost and bottom... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summary.R
\name{get_auroc_heat}
\alias{get_auroc_heat}
\title{Helper function to produce AUROC heatmap}
\usage{
get_auroc_heat(auroc_tibble)
}
\arguments{
\item{auroc_tibble}{Tibble with calculated AUROC}
}
\value{
returns an AUROC or Precisi... | /man/get_auroc_heat.Rd | permissive | ohsu-comp-bio/decoupleRBench | R | false | true | 401 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/summary.R
\name{get_auroc_heat}
\alias{get_auroc_heat}
\title{Helper function to produce AUROC heatmap}
\usage{
get_auroc_heat(auroc_tibble)
}
\arguments{
\item{auroc_tibble}{Tibble with calculated AUROC}
}
\value{
returns an AUROC or Precisi... |
#' Subset texts
#'
#' Subset texts.
#'
#' @param corpus Text corpus.
#' @param max_length Maximum length of the texts to be sampled. \code{max_length} is an integer greater than 0. By default, \code{max_length} is set to 1.
#' @param min_length Minimum length of the texts to be sampled. \code{min_length} is an integer ... | /R/subset_text.R | permissive | nproellochs/textsampler | R | false | false | 1,003 | r | #' Subset texts
#'
#' Subset texts.
#'
#' @param corpus Text corpus.
#' @param max_length Maximum length of the texts to be sampled. \code{max_length} is an integer greater than 0. By default, \code{max_length} is set to 1.
#' @param min_length Minimum length of the texts to be sampled. \code{min_length} is an integer ... |
#' @title creates a network module at the repeat level to investigate repeat initiating pathways
#' @description this differs from wgcna.R, where wgcna.R create phenotypic module analysis of genes and phenotypic repeat data. wrna will run a single/block wise adjacency/correlation matrices of repeats into modules of t... | /R/wrcna.R | no_license | arcolombo/rToolKit | R | false | false | 14,084 | r | #' @title creates a network module at the repeat level to investigate repeat initiating pathways
#' @description this differs from wgcna.R, where wgcna.R create phenotypic module analysis of genes and phenotypic repeat data. wrna will run a single/block wise adjacency/correlation matrices of repeats into modules of t... |
\name{lambdaMax}
\alias{lambdaMax}
\title{Maximum lambda}
\description{Compute the maximum \code{lambda}}
\usage{
lambdaMax(X)
}
\arguments{
\item{X}{a \emph{n}x\emph{p} data matrix.}
}
\details{Compute the largest value for regularization (maximum \code{lambda}) that gives the null model.
The maximum \code{lambda} ... | /man/lambdaMax.Rd | no_license | cran/XMRF | R | false | false | 506 | rd | \name{lambdaMax}
\alias{lambdaMax}
\title{Maximum lambda}
\description{Compute the maximum \code{lambda}}
\usage{
lambdaMax(X)
}
\arguments{
\item{X}{a \emph{n}x\emph{p} data matrix.}
}
\details{Compute the largest value for regularization (maximum \code{lambda}) that gives the null model.
The maximum \code{lambda} ... |
# Implementation of the Composite Farm class #
#
# Usually used to represent a farming enterprise using a weighted sum of solutions from
# farms with different soiltypes, objective weights and/or distances to sugarbeet factories
#
####################################
################### Constructor #################... | /R/CompositeFarm-class.R | no_license | cran/farmR | R | false | false | 1,674 | r | # Implementation of the Composite Farm class #
#
# Usually used to represent a farming enterprise using a weighted sum of solutions from
# farms with different soiltypes, objective weights and/or distances to sugarbeet factories
#
####################################
################### Constructor #################... |
#' Parse a .ini or a .cfg file
#'
#' @export
#' @param path (character) A single file path to read from on initialize, or
#' to write to on \code{write}
#' @details
#' \strong{Methods}
#' \describe{
#' \item{\code{read()}}{
#' Read a file
#' }
#' \item{\code{write(path)}}{
#' Write a file
#' ... | /R/ini_parse2.R | permissive | sckott/inir | R | false | false | 2,213 | r | #' Parse a .ini or a .cfg file
#'
#' @export
#' @param path (character) A single file path to read from on initialize, or
#' to write to on \code{write}
#' @details
#' \strong{Methods}
#' \describe{
#' \item{\code{read()}}{
#' Read a file
#' }
#' \item{\code{write(path)}}{
#' Write a file
#' ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bootstrap_mb.R
\name{mb.boot}
\alias{mb.boot}
\title{Moving block bootstrap for IRFs of identified SVARs}
\usage{
mb.boot(x, b.length = 15, n.ahead = 20, nboot = 500, nc = 1,
dd = NULL, signrest = NULL, itermax = 300, steptol = 200,
iter2... | /man/mb.boot.Rd | permissive | AlexanderRitz/svars | R | false | true | 3,548 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bootstrap_mb.R
\name{mb.boot}
\alias{mb.boot}
\title{Moving block bootstrap for IRFs of identified SVARs}
\usage{
mb.boot(x, b.length = 15, n.ahead = 20, nboot = 500, nc = 1,
dd = NULL, signrest = NULL, itermax = 300, steptol = 200,
iter2... |
library(RSQLite)
library(DBI)
library(tibble)
# Create a connection object with SQLite
conn <- dbConnect(
RSQLite::SQLite(),
'transactional/shiny_app/data/mtcars.sqlite3'
)
# Create a query to prepare the 'mtcars' table with additional 'uid', 'id',
# & the 4 created/modified columns
create_mtcars_query = "CREATE ... | /transactional/data_prep/db_init.R | no_license | charlesberthillon/shiny_crud | R | false | false | 2,078 | r | library(RSQLite)
library(DBI)
library(tibble)
# Create a connection object with SQLite
conn <- dbConnect(
RSQLite::SQLite(),
'transactional/shiny_app/data/mtcars.sqlite3'
)
# Create a query to prepare the 'mtcars' table with additional 'uid', 'id',
# & the 4 created/modified columns
create_mtcars_query = "CREATE ... |
seed.list <- list(input.seed = 402, output.seed = 805, learning.seed = 201)
## problem setting
source("logistic.R")
n <- 400
M <- 4
K0 <- 3
##generate parameter
# param.seed <- 3
# true.param <- param.mixture.norm.generate(M, K=K0, seed = param.seed)
true.ratio <- rep(1/K0,K0)
true.weight <- matrix(c(0,0,2,2,0,-1,1,... | /LVA_logistic/logistic_mixture_hyperparameter.R | permissive | fumish/LearningModels | R | false | false | 2,463 | r |
seed.list <- list(input.seed = 402, output.seed = 805, learning.seed = 201)
## problem setting
source("logistic.R")
n <- 400
M <- 4
K0 <- 3
##generate parameter
# param.seed <- 3
# true.param <- param.mixture.norm.generate(M, K=K0, seed = param.seed)
true.ratio <- rep(1/K0,K0)
true.weight <- matrix(c(0,0,2,2,0,-1,1,... |
rm(list=ls())
# Set up initial condition
N0 <- 1000000 # total population
In0 <- 10 # initial infectives
S0 <- N0-In0 # initially, everyone else is susceptible
R0 <- 0 # initially, nobody has recovered
IC <- c(S=S0, In=In0, R=R0)
tmax = 2000 # number of years to run
# Parameter values (units: per ye... | /runepidemic.R | no_license | jhcho0915/R-and-R-Studio | R | false | false | 1,154 | r | rm(list=ls())
# Set up initial condition
N0 <- 1000000 # total population
In0 <- 10 # initial infectives
S0 <- N0-In0 # initially, everyone else is susceptible
R0 <- 0 # initially, nobody has recovered
IC <- c(S=S0, In=In0, R=R0)
tmax = 2000 # number of years to run
# Parameter values (units: per ye... |
#NCS 데이터 탐색
phone<-read.csv('c:/Java/phone-01.csv', header=F)
summary(phone)
var(phone)
phone2 <- read.csv('c:/Java/phone-02.csv', header=F, sep=',')
summary(phone2)
#공분산으로 상관계수를 측정
cor(phone2) #공분산
#데이터 사용량 v9는 평균스마트폰 사용시간V7과 상관관계유의미.
#가장 높은 유의성을 갖는 변수가 데이터 사용량에 미치는 영향을 추정하여 단순회귀분석 실시.
p<-lm(phone2$V9~phone2$V7, d... | /R/R/NCS데이터탐색.R | no_license | DreamingDataScientist/Learnning_R_Python | R | false | false | 661 | r | #NCS 데이터 탐색
phone<-read.csv('c:/Java/phone-01.csv', header=F)
summary(phone)
var(phone)
phone2 <- read.csv('c:/Java/phone-02.csv', header=F, sep=',')
summary(phone2)
#공분산으로 상관계수를 측정
cor(phone2) #공분산
#데이터 사용량 v9는 평균스마트폰 사용시간V7과 상관관계유의미.
#가장 높은 유의성을 갖는 변수가 데이터 사용량에 미치는 영향을 추정하여 단순회귀분석 실시.
p<-lm(phone2$V9~phone2$V7, d... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/peek.R
\name{peek}
\alias{peek}
\alias{unpeek}
\title{Data Frame Viewing}
\usage{
peek(x, n = 10, width = 20, ...)
unpeek(x)
}
\arguments{
\item{x}{A \code{\link[base]{data.frame}} object.}
\item{n}{Number of rows to display.}
\item{width}... | /man/peek.Rd | no_license | bedantaguru/textreadr | R | false | true | 1,183 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/peek.R
\name{peek}
\alias{peek}
\alias{unpeek}
\title{Data Frame Viewing}
\usage{
peek(x, n = 10, width = 20, ...)
unpeek(x)
}
\arguments{
\item{x}{A \code{\link[base]{data.frame}} object.}
\item{n}{Number of rows to display.}
\item{width}... |
#' ---
#' title: "Introduction to Simulation-based Inference"
#' author: "Aaron A. King and Edward L. Ionides"
#' output:
#' html_document:
#' toc: yes
#' toc_depth: 4
#' bibliography: ../sbied.bib
#' csl: ../ecology.csl
#' nocite: |
#' @King2008, @Romero-Severson2015, @He2010,
#' @Laneri2010, @King2015
... | /2016/likelihood estimation/code/intro.R | no_license | hendersonad/SISMID | R | false | false | 18,859 | r | #' ---
#' title: "Introduction to Simulation-based Inference"
#' author: "Aaron A. King and Edward L. Ionides"
#' output:
#' html_document:
#' toc: yes
#' toc_depth: 4
#' bibliography: ../sbied.bib
#' csl: ../ecology.csl
#' nocite: |
#' @King2008, @Romero-Severson2015, @He2010,
#' @Laneri2010, @King2015
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.