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 |
|---|---|---|---|---|---|---|---|---|---|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getBSData.R
\name{addHIVPrevBS}
\alias{addHIVPrevBS}
\title{addHIVPrevBS}
\usage{
addHIVPrevBS(inFile, dat, Args, Type = "All")
}
\arguments{
\item{inFile}{The filepath to the dataset with HIV prevalence.}
\item{dat}{A dataset to add HIV pre... | /man/addHIVPrevBS.Rd | no_license | hkim207/ahri-1 | R | false | true | 545 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getBSData.R
\name{addHIVPrevBS}
\alias{addHIVPrevBS}
\title{addHIVPrevBS}
\usage{
addHIVPrevBS(inFile, dat, Args, Type = "All")
}
\arguments{
\item{inFile}{The filepath to the dataset with HIV prevalence.}
\item{dat}{A dataset to add HIV pre... |
##--------------------------------------------------------------------
##----- General
##--------------------------------------------------------------------
# Clear the workspace
rm(list = ls()) # Clear environment
gc() # Clear unused memory
cat("\f") # Clear the console
# Pre... | /R/r.hw1.solution.R | permissive | sherrytp/bc_f19_econ | R | false | false | 6,425 | r | ##--------------------------------------------------------------------
##----- General
##--------------------------------------------------------------------
# Clear the workspace
rm(list = ls()) # Clear environment
gc() # Clear unused memory
cat("\f") # Clear the console
# Pre... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prior.R
\docType{methods}
\name{Transform,prior.ode-method}
\alias{Transform,prior.ode-method}
\title{Transform the prior model}
\usage{
\S4method{Transform}{prior.ode}(
object,
transforms = NULL,
name,
observation = "X",
par,
kee... | /man/Transform-prior.ode-method.Rd | no_license | parksw3/fitode | R | false | true | 785 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prior.R
\docType{methods}
\name{Transform,prior.ode-method}
\alias{Transform,prior.ode-method}
\title{Transform the prior model}
\usage{
\S4method{Transform}{prior.ode}(
object,
transforms = NULL,
name,
observation = "X",
par,
kee... |
#Complete function for running code
PubMedScraping <- function(query, firefoxprofile, username, password, savelocation, filename, newsavelocation) {
inputs <<- c(query, firefoxprofile, savelocation, filename, newsavelocation)
if(is.null(username) == TRUE){
LoadPackages()
PubMedSearch(query)
DownloadPDF_... | /PubMedScraping_GitHub.R | no_license | gabitante/Web-Scraping-Project- | R | false | false | 18,459 | r | #Complete function for running code
PubMedScraping <- function(query, firefoxprofile, username, password, savelocation, filename, newsavelocation) {
inputs <<- c(query, firefoxprofile, savelocation, filename, newsavelocation)
if(is.null(username) == TRUE){
LoadPackages()
PubMedSearch(query)
DownloadPDF_... |
H <- c(99,12,44,88,66)
png(file = "barchart.png")
barplot(H)
#To Save The File
dev.off()
M <- c("Mar","Apr","May","Jun","Jul")
png(file = "barchart_months_revenue.png")
# Plot the bar chart.
barplot(H,names.arg = M,xlab = "Month",ylab = "Revenue",col = "blue", main = "Revenue chart",border = "red")
dev.off()
... | /WorkSpace/R Programming/R Charts & Graphs/R - Bar Charts.R | no_license | chinna510/Projects | R | false | false | 878 | r |
H <- c(99,12,44,88,66)
png(file = "barchart.png")
barplot(H)
#To Save The File
dev.off()
M <- c("Mar","Apr","May","Jun","Jul")
png(file = "barchart_months_revenue.png")
# Plot the bar chart.
barplot(H,names.arg = M,xlab = "Month",ylab = "Revenue",col = "blue", main = "Revenue chart",border = "red")
dev.off()
... |
##########################################
#### GAM MODELS FOR T1 BIFACTOR STUDY ####
##########################################
#Load data
data.JLF <- readRDS("/data/jux/BBL/projects/pncT1AcrossDisorder/subjectData/n1394_T1_subjData.rds")
#Load library
library(mgcv)
library(dplyr)
#Get NMF variable names
jlfAllComp... | /JLFvol/GamAnalyses_T1Bifactors_JLFvol.R | no_license | PennBBL/pncT1Bifactors | R | false | false | 7,678 | r | ##########################################
#### GAM MODELS FOR T1 BIFACTOR STUDY ####
##########################################
#Load data
data.JLF <- readRDS("/data/jux/BBL/projects/pncT1AcrossDisorder/subjectData/n1394_T1_subjData.rds")
#Load library
library(mgcv)
library(dplyr)
#Get NMF variable names
jlfAllComp... |
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{arguments.merge}
\alias{arguments.merge}
\title{Merge two lists of function arguments}
\usage{
arguments.merge(x, y, FUN = NULL, append = ifelse(is.null(FUN), TRUE, "..."
\%in\% names(formals(FUN))))
}
\arguments{
\item{x}{base list}
\item{y}{list to be merg... | /man/arguments.merge.Rd | no_license | SwedishPensionsAgency/format.tables | R | false | false | 637 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{arguments.merge}
\alias{arguments.merge}
\title{Merge two lists of function arguments}
\usage{
arguments.merge(x, y, FUN = NULL, append = ifelse(is.null(FUN), TRUE, "..."
\%in\% names(formals(FUN))))
}
\arguments{
\item{x}{base list}
\item{y}{list to be merg... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 11557
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 11152
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 11152
c
c Input Parameter (command line, ... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Seidl/ASP_Program_Inclusion/T-adeu-10/T-adeu-10.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 2,237 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 11557
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 11152
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 11152
c
c Input Parameter (command line, ... |
# SGD types
# "ARS" "ARS consensus sequence"
# "CDEI" "CDEII"
# "CDEIII" "CDS"
# "ORF" "W_region" ... | /ref_seq/SGD_features_parse.r | permissive | koschwanez/mutantanalysis | R | false | false | 4,201 | r | # SGD types
# "ARS" "ARS consensus sequence"
# "CDEI" "CDEII"
# "CDEIII" "CDS"
# "ORF" "W_region" ... |
## delete all objects; clear plots
rm(list=ls()); dev.off()
## Read data for 1/2/2007 and 2/2/2007 only;
## create new DateTime variable with class "Date"
header <- read.table("data/household_power_consumption.txt",
sep=";", nrows=1, stringsAsFactors=F)
PowerConsum <- read.table(pipe('grep \'^... | /plot1.R | no_license | pputz/ExData_Plotting1 | R | false | false | 726 | r | ## delete all objects; clear plots
rm(list=ls()); dev.off()
## Read data for 1/2/2007 and 2/2/2007 only;
## create new DateTime variable with class "Date"
header <- read.table("data/household_power_consumption.txt",
sep=";", nrows=1, stringsAsFactors=F)
PowerConsum <- read.table(pipe('grep \'^... |
library(glmnet)
mydata = read.table("./TrainingSet/LassoBIC/breast.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.7,family="gaussian",standardize=FALSE)
sink('./Model/EN/Lasso/breast/breast_076.txt',append=TRUE... | /Model/EN/Lasso/breast/breast_076.R | no_license | leon1003/QSMART | R | false | false | 351 | r | library(glmnet)
mydata = read.table("./TrainingSet/LassoBIC/breast.csv",head=T,sep=",")
x = as.matrix(mydata[,4:ncol(mydata)])
y = as.matrix(mydata[,1])
set.seed(123)
glm = cv.glmnet(x,y,nfolds=10,type.measure="mae",alpha=0.7,family="gaussian",standardize=FALSE)
sink('./Model/EN/Lasso/breast/breast_076.txt',append=TRUE... |
fjComm::clear_()
# pallete=RColorBrewer::brewer.pal(n = 11, name = "Spectral") %>% rev()
df=read_tsv("K562_rep1_20.6U_79.2U_304U_MNase.fragment_length.closest_dist_to_center_within_500.YBX1_Control_TTGCTC40NGAA_KR_YGTWCCAYC_m1_c4_short_overlap_K562_ChIP.no_blacklist.txt",col_names = F)
df %<>% mutate(left_edge=X11-X4/... | /!ADD_Nat_revise1/6_ENCODE_corr/MNase_cvg/YBX1.R | no_license | aquaflakes/individual_analyses | R | false | false | 2,029 | r | fjComm::clear_()
# pallete=RColorBrewer::brewer.pal(n = 11, name = "Spectral") %>% rev()
df=read_tsv("K562_rep1_20.6U_79.2U_304U_MNase.fragment_length.closest_dist_to_center_within_500.YBX1_Control_TTGCTC40NGAA_KR_YGTWCCAYC_m1_c4_short_overlap_K562_ChIP.no_blacklist.txt",col_names = F)
df %<>% mutate(left_edge=X11-X4/... |
library(foreach)
library(splines)
library(gam)
require(ggplot2)
SA<-read.table('SA.txt', sep=",", header=T, row.names=1)
#1
SAGam <- gam(chd ~ s(sbp,4) + s(tobacco,4) + s(ldl,4) + s(adiposity, 4) + s(typea, 4) +
s(obesity, 4) + s(alcohol, 4) + s(age, 4) + famhist,data=SA,family=binomial)
... | /Statistical modelling/Generalized additive model.R | no_license | while777/while777 | R | false | false | 1,872 | r |
library(foreach)
library(splines)
library(gam)
require(ggplot2)
SA<-read.table('SA.txt', sep=",", header=T, row.names=1)
#1
SAGam <- gam(chd ~ s(sbp,4) + s(tobacco,4) + s(ldl,4) + s(adiposity, 4) + s(typea, 4) +
s(obesity, 4) + s(alcohol, 4) + s(age, 4) + famhist,data=SA,family=binomial)
... |
pollutantmean <- function(directory, pollutant, id = 1:332) {
## 'directory' is a character vector of length 1 indicating
## the location of the CSV files
## 'pollutant' is a character vector of length 1 indicating
## the name of the pollutant for which we will calculate the
## mean; either "sulfate" or "n... | /pollutantmean.R | no_license | Simran-B/ProgrammingAssignment1 | R | false | false | 872 | r | pollutantmean <- function(directory, pollutant, id = 1:332) {
## 'directory' is a character vector of length 1 indicating
## the location of the CSV files
## 'pollutant' is a character vector of length 1 indicating
## the name of the pollutant for which we will calculate the
## mean; either "sulfate" or "n... |
CalcRange <- function(x, method = "pseudospherical", terrestrial = F,
rare = "buffer", buffer.width = 10000) {
# x = object of class data.frame, spgeOUT, SpatialPOints, method = c('euclidean', 'pseudospherical'), terrestrial = logical,
base::match.arg(arg = method,
choic... | /speciesgeocodeR.Rcheck/00_pkg_src/speciesgeocodeR/R/CalcRange.R | no_license | wennading/speciesgeocodeR | R | false | false | 6,086 | r | CalcRange <- function(x, method = "pseudospherical", terrestrial = F,
rare = "buffer", buffer.width = 10000) {
# x = object of class data.frame, spgeOUT, SpatialPOints, method = c('euclidean', 'pseudospherical'), terrestrial = logical,
base::match.arg(arg = method,
choic... |
# The Impact of Settlements Network Structure on Population Dynamics
# Part 4. Network topology analysis
# Author: Alexander Sheludkov
# Date: 19 October 2018
library(sp)
library(sf)
library(raster)
library(dplyr)
library(ggplot2)
library(gridExtra)
library(igraph)
library(RColorBrewer)
library(tidyr)
library(viridis)... | /4_Network_topology_analysis.R | no_license | alschel/Settlements-Network-Population-Dynamics | R | false | false | 30,351 | r | # The Impact of Settlements Network Structure on Population Dynamics
# Part 4. Network topology analysis
# Author: Alexander Sheludkov
# Date: 19 October 2018
library(sp)
library(sf)
library(raster)
library(dplyr)
library(ggplot2)
library(gridExtra)
library(igraph)
library(RColorBrewer)
library(tidyr)
library(viridis)... |
RegSvm_1<-fread(file="~/Desktop/intro to data/project/dataset/out-201501.csv",select=c(168,194,196,139,141,142,232))
RegSvm_2<-fread(file="~/Desktop/intro to data/project/dataset/out-201402.csv",select=c(168,194,196,139,141,142,232))
RegSvm_3<-fread(file="~/Desktop/intro to data/project/dataset/out-201403.csv",select=... | /IST687/IST687_SVM&NB.R | no_license | MathieuWmy/Portfolio | R | false | false | 5,502 | r |
RegSvm_1<-fread(file="~/Desktop/intro to data/project/dataset/out-201501.csv",select=c(168,194,196,139,141,142,232))
RegSvm_2<-fread(file="~/Desktop/intro to data/project/dataset/out-201402.csv",select=c(168,194,196,139,141,142,232))
RegSvm_3<-fread(file="~/Desktop/intro to data/project/dataset/out-201403.csv",select=... |
test_that("translink_samplesize fails when sensitivity 0", {
expect_error(translink_samplesize(sensitivity = 0, specificity = 0.995, N = 100,
R = 1, tdr = 0.75))
})
test_that("translink_samplesize fails when parameters invalid", {
expect_error(translink_samplesize(sensitivity = 0.99, specificity =... | /tests/testthat/test-translink_samplesize.R | no_license | HopkinsIDD/phylosamp | R | false | false | 480 | r |
test_that("translink_samplesize fails when sensitivity 0", {
expect_error(translink_samplesize(sensitivity = 0, specificity = 0.995, N = 100,
R = 1, tdr = 0.75))
})
test_that("translink_samplesize fails when parameters invalid", {
expect_error(translink_samplesize(sensitivity = 0.99, specificity =... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/payoff.R
\name{decision}
\alias{decision}
\title{Calculate Optimal Decision}
\usage{
decision(x)
}
\arguments{
\item{x}{}
}
\description{
Depends on how we calculate the payoff function.
}
| /man/decision.Rd | no_license | Tetraktys10/treeSimR | R | false | true | 268 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/payoff.R
\name{decision}
\alias{decision}
\title{Calculate Optimal Decision}
\usage{
decision(x)
}
\arguments{
\item{x}{}
}
\description{
Depends on how we calculate the payoff function.
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stateface.R
\name{geom_stateface}
\alias{geom_stateface}
\title{Use StateFace font for labeling of States in charts}
\source{
\url{https://propublica.github.io/stateface/}
}
\usage{
geom_stateface(
mapping = NULL,
data = NULL,
stat = "i... | /man/geom_stateface.Rd | permissive | EmilHvitfeldt/fontscales | R | false | true | 3,912 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stateface.R
\name{geom_stateface}
\alias{geom_stateface}
\title{Use StateFace font for labeling of States in charts}
\source{
\url{https://propublica.github.io/stateface/}
}
\usage{
geom_stateface(
mapping = NULL,
data = NULL,
stat = "i... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllClass.R
\name{handleFlags}
\alias{handleFlags}
\title{Handle flags in oce objects}
\usage{
handleFlags(object, flags, actions, debug)
}
\arguments{
\item{object}{An object of \code{\link{oce}}.}
\item{flags}{An optional \code{\link{list}}... | /pkgs/oce/man/handleFlags.Rd | no_license | vaguiar/EDAV_Project_2017 | R | false | true | 3,495 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllClass.R
\name{handleFlags}
\alias{handleFlags}
\title{Handle flags in oce objects}
\usage{
handleFlags(object, flags, actions, debug)
}
\arguments{
\item{object}{An object of \code{\link{oce}}.}
\item{flags}{An optional \code{\link{list}}... |
\name{RidgeFused}
\alias{RidgeFused}
\title{Ridged Fused Inverse Covariance Matrix Estimation}
\description{Calculates the ridge fusion precision estimator for multiple classes}
\usage{
RidgeFused(S,lambda1,lambda2,nc,tol=10^(-7), maxiter=1e3,warm.start=NULL,scale=FALSE)
}
\arguments{
A list is returned where the elem... | /man/RidgeFused.Rd | no_license | cran/RidgeFusion | R | false | false | 2,175 | rd | \name{RidgeFused}
\alias{RidgeFused}
\title{Ridged Fused Inverse Covariance Matrix Estimation}
\description{Calculates the ridge fusion precision estimator for multiple classes}
\usage{
RidgeFused(S,lambda1,lambda2,nc,tol=10^(-7), maxiter=1e3,warm.start=NULL,scale=FALSE)
}
\arguments{
A list is returned where the elem... |
## TODO:
## 1. get a list of stations
## 2. get a list of reports and matching headers / units
## 3. better documentation / testing
## 4. work with Deb / programmers to get compressed output
##
## see: http://www.wcc.nrcs.usda.gov/web_service/awdb_webservice_announcements.htm
## http://www.wcc.nrcs.usda.gov/web_se... | /R/fetchSCAN.R | no_license | ncss-tech/soilDB | R | false | false | 20,834 | r | ## TODO:
## 1. get a list of stations
## 2. get a list of reports and matching headers / units
## 3. better documentation / testing
## 4. work with Deb / programmers to get compressed output
##
## see: http://www.wcc.nrcs.usda.gov/web_service/awdb_webservice_announcements.htm
## http://www.wcc.nrcs.usda.gov/web_se... |
# R-Programme Assignment 2: Caching the Inverse of a Matrix
# ("cacher fr.", meaning 'to hide') special functions.
# LESSON
# Study the given examples on the treatment of a vector
# Note the introduction of <<- operator
# VALUE OF LESSON
# Matrix inversion, along with some others,
# is said to be a costly computati... | /cachematrix.R | no_license | AnthonyAbolarin/ProgrammingAssignment2 | R | false | false | 2,437 | r | # R-Programme Assignment 2: Caching the Inverse of a Matrix
# ("cacher fr.", meaning 'to hide') special functions.
# LESSON
# Study the given examples on the treatment of a vector
# Note the introduction of <<- operator
# VALUE OF LESSON
# Matrix inversion, along with some others,
# is said to be a costly computati... |
#' @author Ivan Jacob Agaloos Pesigan
#'
#' @title Monte Carlo Method Assuming Multivariate Normal Distribution for Indirect Effect in a Simple Mediation Model
#' for Data Generated Using the Vale and Maurelli (1983) Approach (Skewness = 2, Kurtosis = 7)
#'
#' @family monte carlo method functions
#' @keywords mc
#' @... | /R/vm_mod_complete_unstd_sem_mc.mvn.R | permissive | jeksterslabds/jeksterslabRmedsimple | R | false | false | 8,765 | r | #' @author Ivan Jacob Agaloos Pesigan
#'
#' @title Monte Carlo Method Assuming Multivariate Normal Distribution for Indirect Effect in a Simple Mediation Model
#' for Data Generated Using the Vale and Maurelli (1983) Approach (Skewness = 2, Kurtosis = 7)
#'
#' @family monte carlo method functions
#' @keywords mc
#' @... |
# Clear workspace
rm(list = ls())
# Setup
################################################################################
# Packages
library(plyr)
library(dplyr)
library(RColorBrewer)
# Directories
datadir <- "/Users/cfree/Dropbox/Chris/Rutgers/projects/productivity/models/spmodel_tb1/output/fixed_effects"
plotdir... | /code/figures/fixed_effects/Fig2_thetas_fixed_vs_random_effects.R | no_license | cfree14/sst_productivity | R | false | false | 3,027 | r |
# Clear workspace
rm(list = ls())
# Setup
################################################################################
# Packages
library(plyr)
library(dplyr)
library(RColorBrewer)
# Directories
datadir <- "/Users/cfree/Dropbox/Chris/Rutgers/projects/productivity/models/spmodel_tb1/output/fixed_effects"
plotdir... |
\name{ft.connect}
\alias{ft.connect}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
A function to generate OAuth2 token for Google Fusion Tables access
}
\description{
Creates OAuth2 Token with app credentials and API scopes
}
\usage{
ft.connect(username, password)
}
%- maybe also 'usage' for ot... | /rfusiontables/man/ft.connect.Rd | permissive | thomascjohnson/rfusiontables | R | false | false | 1,783 | rd | \name{ft.connect}
\alias{ft.connect}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
A function to generate OAuth2 token for Google Fusion Tables access
}
\description{
Creates OAuth2 Token with app credentials and API scopes
}
\usage{
ft.connect(username, password)
}
%- maybe also 'usage' for ot... |
testlist <- list(x = 65024L, y = c(1987475062L, 1987475062L, 1987475062L, 1987475062L, 1987475062L, 1987475062L, 1987475062L, 1987475062L, 1987475062L, 1987475062L, 1987475062L, 1987475062L, 1987475158L, -436216714L, 1987475062L, 1987475062L, 1987475062L, 1987475062L, 1996480511L, -702926875L, -539616721L, -1178854... | /diffrprojects/inst/testfiles/dist_mat_absolute/libFuzzer_dist_mat_absolute/dist_mat_absolute_valgrind_files/1609960565-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 404 | r | testlist <- list(x = 65024L, y = c(1987475062L, 1987475062L, 1987475062L, 1987475062L, 1987475062L, 1987475062L, 1987475062L, 1987475062L, 1987475062L, 1987475062L, 1987475062L, 1987475062L, 1987475158L, -436216714L, 1987475062L, 1987475062L, 1987475062L, 1987475062L, 1996480511L, -702926875L, -539616721L, -1178854... |
library(rvest)
library(dplyr)
library(stringr)
library(readr)
library(xml2)
library(purrr)
library(DescTools)
#Get list of state names and corresponding cities
# Get list of all states and cities with all zipcodes each in different columns
uscities <- read.csv("./data/working/uscities.csv")
#myuscities <- c("city... | /src/02_bbnow_scrape_code.R | no_license | uva-bi-sdad/dspg19broadband | R | false | false | 3,394 | r | library(rvest)
library(dplyr)
library(stringr)
library(readr)
library(xml2)
library(purrr)
library(DescTools)
#Get list of state names and corresponding cities
# Get list of all states and cities with all zipcodes each in different columns
uscities <- read.csv("./data/working/uscities.csv")
#myuscities <- c("city... |
\name{data.dcm}
\alias{data.dcm}
\docType{data}
\title{
Dataset from Book 'Diagnostic Measurement' of Rupp, Templin and
Henson (2010)
}
\description{
Dataset from Chapter 9 of the book 'Diagnostic Measurement'
(Rupp, Templin & Henson, 2010).
}
\usage{
data(data.dcm)
}
\format{
The format of t... | /man/data.dcm.Rd | no_license | parksejin/CDM | R | false | false | 10,087 | rd | \name{data.dcm}
\alias{data.dcm}
\docType{data}
\title{
Dataset from Book 'Diagnostic Measurement' of Rupp, Templin and
Henson (2010)
}
\description{
Dataset from Chapter 9 of the book 'Diagnostic Measurement'
(Rupp, Templin & Henson, 2010).
}
\usage{
data(data.dcm)
}
\format{
The format of t... |
#' Permuate explanatory variables to produce multiple output tables for common
#' regression models
#'
#' @param .data Data frame or tibble.
#' @param dependent Character vector of length 1: quoted name of dependent
#' variable. Can be continuous, a binary factor, or a survival object of form
#' \code{Surv(time, s... | /R/ff_permute.R | no_license | muathalmoslem/finalfit | R | false | false | 3,892 | r | #' Permuate explanatory variables to produce multiple output tables for common
#' regression models
#'
#' @param .data Data frame or tibble.
#' @param dependent Character vector of length 1: quoted name of dependent
#' variable. Can be continuous, a binary factor, or a survival object of form
#' \code{Surv(time, s... |
## Created 12 / January / 2016
## Updates 06 / February / 2017
## Marina Costa Rillo
##
## Code that uses the raw CSV file of the Buckley Collection downloaded from the NHM Data Portal
##
## Reads "BuckleyCollection_DataPortal.csv"
## Creates "Coordinates_Buckley.csv" (with sample_type column)
##
rm(list=ls())
setwd(... | /analysis/R/create_coord_table.R | no_license | mcrillo/buckley-collection | R | false | false | 5,451 | r | ## Created 12 / January / 2016
## Updates 06 / February / 2017
## Marina Costa Rillo
##
## Code that uses the raw CSV file of the Buckley Collection downloaded from the NHM Data Portal
##
## Reads "BuckleyCollection_DataPortal.csv"
## Creates "Coordinates_Buckley.csv" (with sample_type column)
##
rm(list=ls())
setwd(... |
library(nloptr)
# Muestra de tamaño n = 8
set.seed(12092020)
sample(27, 8)
# c(7L, 5L, 19L, 4L, 13L, 25L, 24L, 23L)
y <- c(1,1, 1, 0, 0, 0, 1, 1 )
suma_y <- sum(y)
n <- length(y)
logLP <- function(p) {
log(p) * suma_y + log(1-p) * (n-suma_y)
}
LP <- function(p) {
exp(log(p) * suma_y + l... | /clase5/clase_17Sept_20202_mlJueves.r | no_license | josezea/ml_2020_2 | R | false | false | 6,148 | r | library(nloptr)
# Muestra de tamaño n = 8
set.seed(12092020)
sample(27, 8)
# c(7L, 5L, 19L, 4L, 13L, 25L, 24L, 23L)
y <- c(1,1, 1, 0, 0, 0, 1, 1 )
suma_y <- sum(y)
n <- length(y)
logLP <- function(p) {
log(p) * suma_y + log(1-p) * (n-suma_y)
}
LP <- function(p) {
exp(log(p) * suma_y + l... |
# Predicting with Machine Learning
# Load the data
data(iris)
# Set a seed to make randomness reproducible
set.seed(42)
# Randomly sample 100 of 150 row indexes
indexes <- sample(
x = 1:150,
size = 100)
# Inspect the random indexes
print(indexes)
# Create a training set from indexes
train <- iris[indexes, ]
... | /TestCars6.R | no_license | TonyHomsi/Rtudio_TONY | R | false | false | 1,598 | r | # Predicting with Machine Learning
# Load the data
data(iris)
# Set a seed to make randomness reproducible
set.seed(42)
# Randomly sample 100 of 150 row indexes
indexes <- sample(
x = 1:150,
size = 100)
# Inspect the random indexes
print(indexes)
# Create a training set from indexes
train <- iris[indexes, ]
... |
library('MiSPU')
# load data
data(throat.tree)
data(dd)
# do clustering
ncluster = 20
clustering = pam(as.dist(cophenetic(throat.tree)), ncluster, diss = TRUE)$clustering
p_est = dd$pi # mle of prob
p_est = p_est[names(clustering)]
p_clus = sort(tapply(p_est, clustering, sum), decreasing = T) # abundance level of the... | /code/microb_apply/sample_code.R | no_license | yuqimiao/multiomics-SIMLR | R | false | false | 2,452 | r | library('MiSPU')
# load data
data(throat.tree)
data(dd)
# do clustering
ncluster = 20
clustering = pam(as.dist(cophenetic(throat.tree)), ncluster, diss = TRUE)$clustering
p_est = dd$pi # mle of prob
p_est = p_est[names(clustering)]
p_clus = sort(tapply(p_est, clustering, sum), decreasing = T) # abundance level of the... |
library(fpp)
library(xts)
library(forecast)
setwd('/home/pavol/projects/hawkular/hawkular-datamining/R')
source('getBuckets')
df <- getBuckets()
ts = ts(as.numeric(df$avg))
horizon=4
# single exponential smoothing
ex = ses(ts, alpha=0.2, initial='optimal', h=horizon)
exHolt = holt(ts, h=horizont, damped=FALSE, expo... | /R/ex_smoothing.R | permissive | pavolloffay/hawkular-datamining | R | false | false | 625 | r | library(fpp)
library(xts)
library(forecast)
setwd('/home/pavol/projects/hawkular/hawkular-datamining/R')
source('getBuckets')
df <- getBuckets()
ts = ts(as.numeric(df$avg))
horizon=4
# single exponential smoothing
ex = ses(ts, alpha=0.2, initial='optimal', h=horizon)
exHolt = holt(ts, h=horizont, damped=FALSE, expo... |
#### Sleeper ff_starters ####
#' Get starters and bench
#'
#' @param conn the list object created by \code{ff_connect()}
#' @param week a numeric or numeric vector
#' @param ... other arguments (currently unused)
#'
#' @describeIn ff_starters Fleaflicker: returns who was started as well as what they scored.
#'
#' @exa... | /R/flea_starters.R | permissive | tonyelhabr/ffscrapr | R | false | false | 2,151 | r | #### Sleeper ff_starters ####
#' Get starters and bench
#'
#' @param conn the list object created by \code{ff_connect()}
#' @param week a numeric or numeric vector
#' @param ... other arguments (currently unused)
#'
#' @describeIn ff_starters Fleaflicker: returns who was started as well as what they scored.
#'
#' @exa... |
testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 2.73584013950303e-312, 4.12396251261199e-221, 0), .Dim = c(5L, 1L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) | /multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613116801-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 251 | r | testlist <- list(A = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 2.73584013950303e-312, 4.12396251261199e-221, 0), .Dim = c(5L, 1L)), B = structure(0, .Dim = c(1L, 1L)))
result <- do.call(multivariance:::match_rows,testlist)
str(result) |
#' Private function for catpuring the source code of model
#'
#' @param funcs functions to capture, defaults to required promote model functions
#' @param capture.model.require flag to capture the model.require function
#' @importFrom utils capture.output
capture.src <- function(funcs, capture.model.require=TRUE){
... | /R/env-capture.R | no_license | cran/promote | R | false | false | 6,202 | r | #' Private function for catpuring the source code of model
#'
#' @param funcs functions to capture, defaults to required promote model functions
#' @param capture.model.require flag to capture the model.require function
#' @importFrom utils capture.output
capture.src <- function(funcs, capture.model.require=TRUE){
... |
# Course: Coursera Data Scientist - Capstone Project
# Author: Larry Riggen
# Creation Date: 2018-01-23
# Purpose: Provide the shiny server functions for the next word prediction app
suppressPackageStartupMessages(c(
library(shinythemes),
library(shiny),
library(tm),
library(stringr),
... | /Shiny/server.R | no_license | ldriggen/Data-Scientist-Capstone-Project-Coursera | R | false | false | 1,003 | r | # Course: Coursera Data Scientist - Capstone Project
# Author: Larry Riggen
# Creation Date: 2018-01-23
# Purpose: Provide the shiny server functions for the next word prediction app
suppressPackageStartupMessages(c(
library(shinythemes),
library(shiny),
library(tm),
library(stringr),
... |
# 2016-08-05
# Jake Yeung
# compare_hogenesch_tissue_wide_in_livkid_wtko.R
rm(list=ls())
setwd("/home/yeung/projects/tissue-specificity")
source("scripts/functions/PlotFunctions.R")
source("scripts/functions/PlotGeneAcrossTissues.R")
source("scripts/functions/NcondsFunctions.R")
source("scripts/functions/SvdFunctio... | /scripts/liver_kidney_WTKO/compare_hogenesch_tissue_wide_in_liverkid_wtko.R | no_license | jakeyeung/Yeung_et_al_2018_TissueSpecificity | R | false | false | 1,978 | r | # 2016-08-05
# Jake Yeung
# compare_hogenesch_tissue_wide_in_livkid_wtko.R
rm(list=ls())
setwd("/home/yeung/projects/tissue-specificity")
source("scripts/functions/PlotFunctions.R")
source("scripts/functions/PlotGeneAcrossTissues.R")
source("scripts/functions/NcondsFunctions.R")
source("scripts/functions/SvdFunctio... |
#' Plot x3p object as an image
#'
#' @param x3p x3p object
#' @param file file name for saving, if file is NULL the opengl device stays open.
#' The file extension determines the type of output. Possible extensions are png, stl (suitable for 3d printing), or svg.
#' @param col color specification
#' @param crosscut cro... | /R/image_x3p.R | no_license | sctyner/x3ptools | R | false | false | 3,939 | r | #' Plot x3p object as an image
#'
#' @param x3p x3p object
#' @param file file name for saving, if file is NULL the opengl device stays open.
#' The file extension determines the type of output. Possible extensions are png, stl (suitable for 3d printing), or svg.
#' @param col color specification
#' @param crosscut cro... |
library(OpenMx)
source("modelUtil.R")
rcd <- read.csv(paste0('.',"/rawData.csv"), stringsAsFactors=FALSE)
whitelist <- getWhiteList(rcd)
rcd <- rcd[rcd$pa1 %in% whitelist & rcd$pa2 %in% whitelist,]
demogr <- read.csv(paste0('./', 'demogr.csv'), stringsAsFactors = FALSE,na.strings='')
mask <- with(demogr, paste(sourc... | /rcpa/prepDemogr.R | permissive | jpritikin/ties | R | false | false | 1,874 | r | library(OpenMx)
source("modelUtil.R")
rcd <- read.csv(paste0('.',"/rawData.csv"), stringsAsFactors=FALSE)
whitelist <- getWhiteList(rcd)
rcd <- rcd[rcd$pa1 %in% whitelist & rcd$pa2 %in% whitelist,]
demogr <- read.csv(paste0('./', 'demogr.csv'), stringsAsFactors = FALSE,na.strings='')
mask <- with(demogr, paste(sourc... |
# Important note!!!
# Data file contains lines with "?" signs instead of values, which forces R to see all columns as factors
# They are now interpreted as lost ones. While my solution is not good niether universal, it works here
data = read.csv('household_power_consumption.txt', sep = ";", na.strings = "?")
da... | /plot2.R | no_license | grigorovich-sergey/ExData_Plotting1 | R | false | false | 654 | r | # Important note!!!
# Data file contains lines with "?" signs instead of values, which forces R to see all columns as factors
# They are now interpreted as lost ones. While my solution is not good niether universal, it works here
data = read.csv('household_power_consumption.txt', sep = ";", na.strings = "?")
da... |
pre = 3
opt = 'acc26'
pre = 2
opt = 'acc56'
pre = 0
opt = 'acc84'
accs = get_mt_ids(opt)
dirI = sprintf("%s/mt_35/31_phylogeny/%02d/08_stat", DIR_Repo, pre)
cutoff_missing = length(accs) * 0.3
intervals = seq(0,0.5,0.05)
chr = 5
fi = file.path(dirI, paste("chr", chr, ".tbl", sep=''))
s01 = read.table(fi, header=T... | /r/sfs.R | no_license | rakeshponnala/luffy | R | false | false | 1,037 | r | pre = 3
opt = 'acc26'
pre = 2
opt = 'acc56'
pre = 0
opt = 'acc84'
accs = get_mt_ids(opt)
dirI = sprintf("%s/mt_35/31_phylogeny/%02d/08_stat", DIR_Repo, pre)
cutoff_missing = length(accs) * 0.3
intervals = seq(0,0.5,0.05)
chr = 5
fi = file.path(dirI, paste("chr", chr, ".tbl", sep=''))
s01 = read.table(fi, header=T... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SSURGO_FUNCTIONS.R
\name{get_ssurgo_inventory}
\alias{get_ssurgo_inventory}
\title{Download and crop a shapefile of the SSURGO study areas.}
\usage{
get_ssurgo_inventory(template = NULL, raw.dir)
}
\arguments{
\item{template}{A Raster* or Spa... | /man/get_ssurgo_inventory.Rd | permissive | Ashkenazic/FedData | R | false | true | 863 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SSURGO_FUNCTIONS.R
\name{get_ssurgo_inventory}
\alias{get_ssurgo_inventory}
\title{Download and crop a shapefile of the SSURGO study areas.}
\usage{
get_ssurgo_inventory(template = NULL, raw.dir)
}
\arguments{
\item{template}{A Raster* or Spa... |
# server.R
library(dplyr)
library(ggplot2) # for getting midwest dataset
library(httr)
library(jsonlite)
library(leaflet)
library(RColorBrewer)
library(reshape2)
library(DT)
library(lubridate)
##########################Code for generating the joint data ##########################
joined_data <- read.csv("data/joined_d... | /server.R | permissive | annajun1224/info201b-final-project | R | false | false | 9,565 | r | # server.R
library(dplyr)
library(ggplot2) # for getting midwest dataset
library(httr)
library(jsonlite)
library(leaflet)
library(RColorBrewer)
library(reshape2)
library(DT)
library(lubridate)
##########################Code for generating the joint data ##########################
joined_data <- read.csv("data/joined_d... |
items <-
function(..., Correct=1, KeepLast=0, report=FALSE) {
if (report)
stop("items() cannot produce a report; you need to call QReport()")
QuestionCounter(QuestionCounter() + 1)
x <- unlist(list(...))
if (CheckDups() && any(duplicated(format(x))))
stop("Duplicated answers in Q... | /Sweavetest/R/items.R | no_license | dmurdoch/Sweavetest | R | false | false | 616 | r | items <-
function(..., Correct=1, KeepLast=0, report=FALSE) {
if (report)
stop("items() cannot produce a report; you need to call QReport()")
QuestionCounter(QuestionCounter() + 1)
x <- unlist(list(...))
if (CheckDups() && any(duplicated(format(x))))
stop("Duplicated answers in Q... |
\name{bnsl_p}
\alias{bnsl_p}
\title{Bayesian Network Structure Learning}
\usage{
bnsl_p(df, psl, tw = 0, proc = 1, s=0, n=0, ss=1)
}
\arguments{
\item{df}{a dataframe.}
\item{psl}{the list of parent sets.}
\item{tw}{the upper limit of the parent set.}
\item{proc}{the criterion based on which the BNSL solution is sough... | /issuestests/BNSL/man/bnsl_p.Rd | no_license | akhikolla/RcppDeepStateTest | R | false | false | 1,619 | rd | \name{bnsl_p}
\alias{bnsl_p}
\title{Bayesian Network Structure Learning}
\usage{
bnsl_p(df, psl, tw = 0, proc = 1, s=0, n=0, ss=1)
}
\arguments{
\item{df}{a dataframe.}
\item{psl}{the list of parent sets.}
\item{tw}{the upper limit of the parent set.}
\item{proc}{the criterion based on which the BNSL solution is sough... |
library(pi0) #estimate pi0(lambda)
library(ggplot2)
library(VGAM) # estimate fai
library(fitdistrplus) # fit empirical distribution
library(doParallel) # foreach
library(knitr)
library(plyr) #map values of pilotN based on key
library(dplyr)
library(DropletUtils)
setwd("D:/research/MethySeq/")
source("code/... | /code/Figure2_delta0.14_inflateNR.R | no_license | liupeng2117/MethylSeqDesign_data_code | R | false | false | 5,734 | r | library(pi0) #estimate pi0(lambda)
library(ggplot2)
library(VGAM) # estimate fai
library(fitdistrplus) # fit empirical distribution
library(doParallel) # foreach
library(knitr)
library(plyr) #map values of pilotN based on key
library(dplyr)
library(DropletUtils)
setwd("D:/research/MethySeq/")
source("code/... |
## Place: ECN395 Research - timesSeries project
## Purpose: 1) Match quotes and trades in the aggregate ES_qtsagg and ES_tdsagg objects
## 2) Get the orderflows using the highfrequency package. Experiment with different correction
## 3) Regress the
## Produce: xts objects to be ready to work with ... | /archive/R_learning/timeSeries/regression_ES_tds_qts.R | no_license | nguyentu1602/R | R | false | false | 45,718 | r | ## Place: ECN395 Research - timesSeries project
## Purpose: 1) Match quotes and trades in the aggregate ES_qtsagg and ES_tdsagg objects
## 2) Get the orderflows using the highfrequency package. Experiment with different correction
## 3) Regress the
## Produce: xts objects to be ready to work with ... |
##checking input
test_that("Input check", {
test1 = matrix(rnorm(100*4), nrow=100, ncol=4) #test input is in matrix form
#check input has to be GRangesList
checkException(run.cin.chr(grl.seg = test1, thr.gain=2.25, thr.loss=1.75, V.def=3, V.mode="sum"), silent = TRUE)
})
| /inst/unitTests/test-run.cin.chr.R | no_license | ICBI/CINdex | R | false | false | 286 | r | ##checking input
test_that("Input check", {
test1 = matrix(rnorm(100*4), nrow=100, ncol=4) #test input is in matrix form
#check input has to be GRangesList
checkException(run.cin.chr(grl.seg = test1, thr.gain=2.25, thr.loss=1.75, V.def=3, V.mode="sum"), silent = TRUE)
})
|
library(testthat)
library(photosynthesis)
context("Fitting light response curves")
df <- data.frame(
A_net = c(10, 9.5, 8, 3.5, 2.5, 2.0, 1, 0.2),
PPFD = c(1500, 750, 375, 125, 100, 75, 50, 25)
)
model <- fit_aq_response(df)
test_that("Outputs", {
expect_is(object = model[1], class = "list")
expect_is(object... | /tests/testthat/test-fit_aq_response.R | permissive | wangdata/photosynthesis | R | false | false | 442 | r | library(testthat)
library(photosynthesis)
context("Fitting light response curves")
df <- data.frame(
A_net = c(10, 9.5, 8, 3.5, 2.5, 2.0, 1, 0.2),
PPFD = c(1500, 750, 375, 125, 100, 75, 50, 25)
)
model <- fit_aq_response(df)
test_that("Outputs", {
expect_is(object = model[1], class = "list")
expect_is(object... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/postProcess.R
\name{postProcess}
\alias{postProcess}
\alias{postProcess.list}
\alias{postProcess.default}
\title{Generic function to post process objects}
\usage{
postProcess(x, ...)
\method{postProcess}{list}(x, ...)
\method{postProcess}{d... | /man/postProcess.Rd | no_license | PredictiveEcology/reproducible | R | false | true | 7,331 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/postProcess.R
\name{postProcess}
\alias{postProcess}
\alias{postProcess.list}
\alias{postProcess.default}
\title{Generic function to post process objects}
\usage{
postProcess(x, ...)
\method{postProcess}{list}(x, ...)
\method{postProcess}{d... |
testlist <- list(Rs = numeric(0), atmp = 0, relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.52156593271487e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e... | /meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615853880-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 659 | r | testlist <- list(Rs = numeric(0), atmp = 0, relh = -1.72131968218895e+83, temp = c(8.5728629954997e-312, 1.52156593271487e+82, 8.96970809549085e-158, -1.3258495253834e-113, 2.79620616433656e-119, -6.80033518839696e+41, 2.68298522855314e-211, 1444042902784.06, 6.68889884134308e+51, -4.05003163986346e... |
#' merge images into a multiChannel antsImage
#'
#' merge images into a multiChannel antsImage
#'
#' @param imageList a list of antsImage objects to merge
#' @return A multiChannel antsImage object
#' @author Duda, JT
#' @examples
#' dims = c(30, 30)
#' n = prod(dims)
#' r <- floor( seq(n) / (n) * 255 )
#' dim(r) <- ... | /R/mergeChannels.R | permissive | ANTsX/ANTsRCore | R | false | false | 930 | r | #' merge images into a multiChannel antsImage
#'
#' merge images into a multiChannel antsImage
#'
#' @param imageList a list of antsImage objects to merge
#' @return A multiChannel antsImage object
#' @author Duda, JT
#' @examples
#' dims = c(30, 30)
#' n = prod(dims)
#' r <- floor( seq(n) / (n) * 255 )
#' dim(r) <- ... |
library(leaflet)
library(shiny)
library(shinyjs)
library(sp)
library(raster)
library(rgdal)
library(rgeos)
library(Cairo)
library(RColorBrewer)
### LOAD ADDING FUNCTIONS ------------------------------------------------------
fls <- list.files(
path = "R",
pattern = "\\.R$",
full.names = TRUE
)
tmp <-... | /ui.R | no_license | ahasverus/bioclimaticatlas | R | false | false | 18,532 | r | library(leaflet)
library(shiny)
library(shinyjs)
library(sp)
library(raster)
library(rgdal)
library(rgeos)
library(Cairo)
library(RColorBrewer)
### LOAD ADDING FUNCTIONS ------------------------------------------------------
fls <- list.files(
path = "R",
pattern = "\\.R$",
full.names = TRUE
)
tmp <-... |
testlist <- list(ends = c(-1125300777L, 765849512L, -1760774663L, 791623263L, 1837701012L, -128659642L, -14914341L, 1092032927L, NA, 1632068659L ), pts = c(1758370433L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, ... | /IntervalSurgeon/inst/testfiles/rcpp_pile/AFL_rcpp_pile/rcpp_pile_valgrind_files/1609873890-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 720 | r | testlist <- list(ends = c(-1125300777L, 765849512L, -1760774663L, 791623263L, 1837701012L, -128659642L, -14914341L, 1092032927L, NA, 1632068659L ), pts = c(1758370433L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, ... |
library(ggmap)
library(ggplot2)
library(dplyr)
# chemin vers le projet
path <- "./crime_classification/"
setwd(path)
# charger les données
train <- read.csv("train.csv")
# charger la carte géographique de San Francisco
map <- get_map("San Francisco", zoom = 12, color = "bw")
# fonction pour filtrer les données selon... | /visualisation_map.r | no_license | cyuss/crime_classification | R | false | false | 651 | r | library(ggmap)
library(ggplot2)
library(dplyr)
# chemin vers le projet
path <- "./crime_classification/"
setwd(path)
# charger les données
train <- read.csv("train.csv")
# charger la carte géographique de San Francisco
map <- get_map("San Francisco", zoom = 12, color = "bw")
# fonction pour filtrer les données selon... |
\name{nporg}
\docType{data}
\alias{nporg}
\encoding{latin1}
\title{Nelson and Plosser original data set}
\description{
This data set contains the fourteen U.S. economic time series used by
Nelson and Plosser in their seminal paper.
}
\usage{data(nporg)}
\format{
A data frame containing fourteen series.... | /man/NPORG.Rd | no_license | cran/urca | R | false | false | 2,166 | rd | \name{nporg}
\docType{data}
\alias{nporg}
\encoding{latin1}
\title{Nelson and Plosser original data set}
\description{
This data set contains the fourteen U.S. economic time series used by
Nelson and Plosser in their seminal paper.
}
\usage{data(nporg)}
\format{
A data frame containing fourteen series.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getComputedDataSWS.R
\name{getComputedDataSWS}
\alias{getComputedDataSWS}
\title{Get computed dataset on SWS.}
\usage{
getComputedDataSWS(reporter = NA, omit = FALSE)
}
\arguments{
\item{reporter}{Reporter.}
\item{omit}{Logical indicating wh... | /man/getComputedDataSWS.Rd | no_license | SWS-Methodology/faoswsTrade | R | false | true | 431 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getComputedDataSWS.R
\name{getComputedDataSWS}
\alias{getComputedDataSWS}
\title{Get computed dataset on SWS.}
\usage{
getComputedDataSWS(reporter = NA, omit = FALSE)
}
\arguments{
\item{reporter}{Reporter.}
\item{omit}{Logical indicating wh... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lookoutmetrics_operations.R
\name{lookoutmetrics_list_metric_sets}
\alias{lookoutmetrics_list_metric_sets}
\title{Lists the datasets in the current AWS Region}
\usage{
lookoutmetrics_list_metric_sets(
AnomalyDetectorArn = NULL,
MaxResults... | /cran/paws.machine.learning/man/lookoutmetrics_list_metric_sets.Rd | permissive | paws-r/paws | R | false | true | 920 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/lookoutmetrics_operations.R
\name{lookoutmetrics_list_metric_sets}
\alias{lookoutmetrics_list_metric_sets}
\title{Lists the datasets in the current AWS Region}
\usage{
lookoutmetrics_list_metric_sets(
AnomalyDetectorArn = NULL,
MaxResults... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/daybreak-wrappers.R
\name{astronomical_twilight}
\alias{astronomical_twilight}
\title{Astronomical twilight}
\usage{
astronomical_twilight(date, lon, lat)
}
\arguments{
\item{date}{The date to compute the length for. An R \link{DateTimeClasse... | /man/astronomical_twilight.Rd | permissive | hrbrmstr/daybreak | R | false | true | 602 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/daybreak-wrappers.R
\name{astronomical_twilight}
\alias{astronomical_twilight}
\title{Astronomical twilight}
\usage{
astronomical_twilight(date, lon, lat)
}
\arguments{
\item{date}{The date to compute the length for. An R \link{DateTimeClasse... |
# Setup ------------------------------------------------------------------------
# Load Friedman 1 benchmark data
friedman1 <- readRDS("friedman.rds")$friedman1
# Convert x.4 to categorical
friedman1$x.4 <- cut(friedman1$x.4, breaks = 2, labels = letters[1L:2L])
# Create a copy of friedman1 and coerce x.4 to charact... | /inst/tinytest/test_cats_argument.R | no_license | bgreenwell/pdp | R | false | false | 1,866 | r | # Setup ------------------------------------------------------------------------
# Load Friedman 1 benchmark data
friedman1 <- readRDS("friedman.rds")$friedman1
# Convert x.4 to categorical
friedman1$x.4 <- cut(friedman1$x.4, breaks = 2, labels = letters[1L:2L])
# Create a copy of friedman1 and coerce x.4 to charact... |
draw.plot3 <- function() {
# Set the graphics parameters
png(filename = "plot3.png",
width = 480, height = 480, units = "px", pointsize = 12,
bg = "white", res = NA, family = "", restoreConsole = TRUE,
type = c("windows", "cairo", "cairo-png"))
par(mfrow = c(1,1))
# Read data and filter i... | /plot3.R | no_license | DADGAD/ExData_Plotting1 | R | false | false | 1,124 | r | draw.plot3 <- function() {
# Set the graphics parameters
png(filename = "plot3.png",
width = 480, height = 480, units = "px", pointsize = 12,
bg = "white", res = NA, family = "", restoreConsole = TRUE,
type = c("windows", "cairo", "cairo-png"))
par(mfrow = c(1,1))
# Read data and filter i... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/correltable.R
\name{correltable}
\alias{correltable}
\title{Create correlation table (with stars for significance)
for scientific publication}
\usage{
correltable(
data,
vars = NULL,
var_names = vars,
vars2 = NULL,
var_names2 = vars... | /man/correltable.Rd | no_license | cran/scipub | R | false | true | 3,994 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/correltable.R
\name{correltable}
\alias{correltable}
\title{Create correlation table (with stars for significance)
for scientific publication}
\usage{
correltable(
data,
vars = NULL,
var_names = vars,
vars2 = NULL,
var_names2 = vars... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Job-class.R
\name{is.Job}
\alias{is.Job}
\title{Check if given job is a job}
\usage{
is.Job(obj)
}
\arguments{
\item{obj}{Job to be checked}
}
\value{
Is obj a job or not
}
\description{
Check if given job is a job
}
| /man/is.Job.Rd | no_license | appelmar/openEo.gdalcubes | R | false | true | 295 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Job-class.R
\name{is.Job}
\alias{is.Job}
\title{Check if given job is a job}
\usage{
is.Job(obj)
}
\arguments{
\item{obj}{Job to be checked}
}
\value{
Is obj a job or not
}
\description{
Check if given job is a job
}
|
#
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(caret)
library(randomForest)
df <- read.csv("https://vincentarelbu... | /server.R | no_license | athni/Titanic-app | R | false | false | 1,570 | r | #
# This is the server logic of a Shiny web application. You can run the
# application by clicking 'Run App' above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
library(caret)
library(randomForest)
df <- read.csv("https://vincentarelbu... |
library(galgo)
### Name: reInit.Gene
### Title: Erases all internal values in order to re-use the object
### Aliases: reInit.Gene Gene.reInit reInit.Gene reInit,Gene-method
### Keywords: methods internal methods
### ** Examples
ge <- Gene(shape1=1, shape2=100)
ge
reInit(ge)
| /data/genthat_extracted_code/galgo/examples/reInit.Gene.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 288 | r | library(galgo)
### Name: reInit.Gene
### Title: Erases all internal values in order to re-use the object
### Aliases: reInit.Gene Gene.reInit reInit.Gene reInit,Gene-method
### Keywords: methods internal methods
### ** Examples
ge <- Gene(shape1=1, shape2=100)
ge
reInit(ge)
|
###You will need to adjust this function based on the structure of your states actuals
to_xts_COVID <- function(df,c) {
d <- df
j <- d[which(d$County.Name==c),c(1:4)]
#j$date <- as.Date(as.POSIXct(j$date), tz = "")
j.ts <- xts(j[,-1],
j[[1]])
return(j.ts)
}
| /R/to_xts_COVID.R | permissive | wwheeler6/CalCAT-1 | R | false | false | 290 | r | ###You will need to adjust this function based on the structure of your states actuals
to_xts_COVID <- function(df,c) {
d <- df
j <- d[which(d$County.Name==c),c(1:4)]
#j$date <- as.Date(as.POSIXct(j$date), tz = "")
j.ts <- xts(j[,-1],
j[[1]])
return(j.ts)
}
|
% Generated by roxygen2 (4.0.1): do not edit by hand
\name{getPictures}
\alias{getPictures}
\title{getPictures from the fishbase database}
\usage{
getPictures(scientific_name, type = c("adult", "juvenile", "larvae",
"stamps"), what = c("actual", "thumbnail", "author"), download = FALSE,
...)
}
\arguments{
\item{sci... | /man/getPictures.Rd | permissive | CottonRockwood/rfishbase | R | false | false | 826 | rd | % Generated by roxygen2 (4.0.1): do not edit by hand
\name{getPictures}
\alias{getPictures}
\title{getPictures from the fishbase database}
\usage{
getPictures(scientific_name, type = c("adult", "juvenile", "larvae",
"stamps"), what = c("actual", "thumbnail", "author"), download = FALSE,
...)
}
\arguments{
\item{sci... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pfa.glmnet.R
\name{pfa.glmnet.extractParams}
\alias{pfa.glmnet.extractParams}
\title{pfa.glmnet.extractParams}
\usage{
pfa.glmnet.extractParams(cvfit, lambdaval = "lambda.1se")
}
\arguments{
\item{cvfit}{an object of class "cv.glmnet"}
\item... | /aurelius/man/pfa.glmnet.extractParams.Rd | permissive | maximk/hadrian | R | false | true | 520 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pfa.glmnet.R
\name{pfa.glmnet.extractParams}
\alias{pfa.glmnet.extractParams}
\title{pfa.glmnet.extractParams}
\usage{
pfa.glmnet.extractParams(cvfit, lambdaval = "lambda.1se")
}
\arguments{
\item{cvfit}{an object of class "cv.glmnet"}
\item... |
#' Write raw data in tab-separated data format
#'
#' @param obj Seurat object to print
#' @param outfile Character. Name of a tsv file that should be written to
#' @param raw A logical scalar. Should raw data be written?
#' @param gzip A logical scalar. Should data be gzipped after writing?
#' @export
#' @importFrom as... | /R/WriteTsv.R | no_license | daskelly/earlycross | R | false | false | 970 | r | #' Write raw data in tab-separated data format
#'
#' @param obj Seurat object to print
#' @param outfile Character. Name of a tsv file that should be written to
#' @param raw A logical scalar. Should raw data be written?
#' @param gzip A logical scalar. Should data be gzipped after writing?
#' @export
#' @importFrom as... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Connect.R
\name{createDbiConnectionDetails}
\alias{createDbiConnectionDetails}
\title{Create DBI connection details}
\usage{
createDbiConnectionDetails(dbms, drv, ...)
}
\arguments{
\item{dbms}{The type of DBMS running on the server. Valid va... | /man/createDbiConnectionDetails.Rd | permissive | alondhe/DatabaseConnector | R | false | true | 1,416 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Connect.R
\name{createDbiConnectionDetails}
\alias{createDbiConnectionDetails}
\title{Create DBI connection details}
\usage{
createDbiConnectionDetails(dbms, drv, ...)
}
\arguments{
\item{dbms}{The type of DBMS running on the server. Valid va... |
library(dplyr)
library(readr)
library(tidyr)
library(caret)
library(caTools)
library(caretEnsemble)
data_train <- read.csv('./data/processed/processed_train.csv')
data_test <- read.csv('./data/processed/processed_test.csv')
# Create custom indices
my_folds <- createMultiFolds(y = data_train$brand, k = 6, times = 2)
... | /notebooks/model_exploration.R | permissive | TuomoKareoja/brand-preferance-prediction | R | false | false | 6,421 | r | library(dplyr)
library(readr)
library(tidyr)
library(caret)
library(caTools)
library(caretEnsemble)
data_train <- read.csv('./data/processed/processed_train.csv')
data_test <- read.csv('./data/processed/processed_test.csv')
# Create custom indices
my_folds <- createMultiFolds(y = data_train$brand, k = 6, times = 2)
... |
#' Transform normal HMM parameters from natural to working
#'
#' The function transforms the natural normal HMM parameters that have
#' additional constraints into working parameters that incorporate the
#' constraints.
#'
#' @param num_states The number of states in the desired HMM.
#' @param num_variables The number ... | /R/norm_working_params.R | permissive | simonecollier/lizardHMM | R | false | false | 2,421 | r | #' Transform normal HMM parameters from natural to working
#'
#' The function transforms the natural normal HMM parameters that have
#' additional constraints into working parameters that incorporate the
#' constraints.
#'
#' @param num_states The number of states in the desired HMM.
#' @param num_variables The number ... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307394783e+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), .Dim = c(8L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
st... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615781749-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 329 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307394783e+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), .Dim = c(8L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
st... |
### Get all the networks together
##############################################################################################
# Object Details
G_Mu #The graph of relation between microbes and genes (both conditions)
NEL_BF #The gene coexpression network from data (Breast Fed conditions)
NEL_FF #The gene coexpressio... | /netJoinVis.R | no_license | paurushp/metagenomics | R | false | false | 7,236 | r | ### Get all the networks together
##############################################################################################
# Object Details
G_Mu #The graph of relation between microbes and genes (both conditions)
NEL_BF #The gene coexpression network from data (Breast Fed conditions)
NEL_FF #The gene coexpressio... |
power <- read.table("household_power_consumption.txt",skip=1,sep=";")
names(power) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3")
subpower <- subset(power,power$Date=="1/2/2007" | power$Date =="2/2/2007")
subpower$Date <-... | /Plot2.R | no_license | erginozcan1993/ExData_Plotting1 | R | false | false | 823 | r | power <- read.table("household_power_consumption.txt",skip=1,sep=";")
names(power) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3")
subpower <- subset(power,power$Date=="1/2/2007" | power$Date =="2/2/2007")
subpower$Date <-... |
#' Makes a data.frame that contains the best error rates from a
#' grid search
#'
#' get_best_grid creates a data.frame that has the datasets in
#' the first column and the best error rate obtained in the grid
#' search in the second column.
#' @param grid_data data.frame obtained from get_grid_data or with
#' several ... | /R/get_best_grid.R | no_license | jillbo1000/EZtuneTest | R | false | false | 864 | r | #' Makes a data.frame that contains the best error rates from a
#' grid search
#'
#' get_best_grid creates a data.frame that has the datasets in
#' the first column and the best error rate obtained in the grid
#' search in the second column.
#' @param grid_data data.frame obtained from get_grid_data or with
#' several ... |
#Load Libraries
library(shiny)
library(ggplot2)
library(dplyr)
library(leaflet)
# Define UI for miles per gallon application
shinyUI(fluidPage(
# Application title
titlePanel("Climate Change in Major Country"),
navbarPage("", id="nav",
tabPanel("Interactive map",
... | /shiny/ui.R | no_license | coperli/Climate-Change | R | false | false | 2,214 | r | #Load Libraries
library(shiny)
library(ggplot2)
library(dplyr)
library(leaflet)
# Define UI for miles per gallon application
shinyUI(fluidPage(
# Application title
titlePanel("Climate Change in Major Country"),
navbarPage("", id="nav",
tabPanel("Interactive map",
... |
# read in all data, set stringsAsFactors=FALSE to deal with date and numerical conversions
alldf<-read.csv("household_power_consumption.txt",sep=";",stringsAsFactors=FALSE)
#subset only the dates we're intersted in
#NOTE THE DATE CONVENTION, it day/month/year
df<-alldf[alldf$Date=="1/2/2007"|alldf$Date=="2/2/2007",]
#... | /plot3.R | no_license | papadopc/ExData_Plotting1 | R | false | false | 1,598 | r | # read in all data, set stringsAsFactors=FALSE to deal with date and numerical conversions
alldf<-read.csv("household_power_consumption.txt",sep=";",stringsAsFactors=FALSE)
#subset only the dates we're intersted in
#NOTE THE DATE CONVENTION, it day/month/year
df<-alldf[alldf$Date=="1/2/2007"|alldf$Date=="2/2/2007",]
#... |
context("Stacking Helper Functions")
# load the libraries
library(ModelComparison)
test_that("Add predictions to df for training with stacking", {
# helper function for a 2 response iris dataset
iris <- PrepareIris()
x.values = iris[, 1:4]
dim.x <- dim(x.values)
# create the models
comp <- GetMo... | /tests/testthat/test_stacking_help.R | no_license | orionw/ModelComparison | R | false | false | 818 | r | context("Stacking Helper Functions")
# load the libraries
library(ModelComparison)
test_that("Add predictions to df for training with stacking", {
# helper function for a 2 response iris dataset
iris <- PrepareIris()
x.values = iris[, 1:4]
dim.x <- dim(x.values)
# create the models
comp <- GetMo... |
###############################################################################
###############################################################################
###############################################################################
## loaduju balíčky ------------------------------------------------------------... | /script.R | no_license | LStepanek/Nekolik-postrehu-k-teorii-odpovedi-na-polozku | R | false | false | 45,320 | r | ###############################################################################
###############################################################################
###############################################################################
## loaduju balíčky ------------------------------------------------------------... |
# Functions
##-------------------------------------------------------------------------------------------------------------------##
### KML: This is just a function for me to use for testing.
#toyData <- function(n) {
# sigma <- m... | /simFunctions.R | no_license | kylelang/BachelorThesisCode | R | false | false | 7,587 | r | # Functions
##-------------------------------------------------------------------------------------------------------------------##
### KML: This is just a function for me to use for testing.
#toyData <- function(n) {
# sigma <- m... |
#' foo: A package to process natural language.
#'
#' Currently the package allows training and using name finder models.
#'
#' @section functions:
#' \itemize{
#' \item{\code{\link{tnf}} to use a model and extract names from character vector.}
#' \item{\code{\link{tnf_}} to use a model and extract names from file.}... | /R/decipher-package.R | no_license | news-r/decipher | R | false | false | 3,168 | r | #' foo: A package to process natural language.
#'
#' Currently the package allows training and using name finder models.
#'
#' @section functions:
#' \itemize{
#' \item{\code{\link{tnf}} to use a model and extract names from character vector.}
#' \item{\code{\link{tnf_}} to use a model and extract names from file.}... |
employee_ori = read.csv (file.choose())
general_ori = read.csv(file.choose())
manager_ori = read.csv(file.choose())
Merger1 = merge(employee_ori, general_ori, by = c("EmployeeID"))
Merger2 = merge(Merger1, manager_ori, by = c("EmployeeID"))
dataset_fin = Merger2
View(dataset_fin)
summary(dataset_fin)
dataset_fin1 = n... | /Sample5 Decision Tree.R | no_license | KKKChi/Data_analytics | R | false | false | 2,276 | r | employee_ori = read.csv (file.choose())
general_ori = read.csv(file.choose())
manager_ori = read.csv(file.choose())
Merger1 = merge(employee_ori, general_ori, by = c("EmployeeID"))
Merger2 = merge(Merger1, manager_ori, by = c("EmployeeID"))
dataset_fin = Merger2
View(dataset_fin)
summary(dataset_fin)
dataset_fin1 = n... |
# ==========================================================================
# Package: Cognitivemodels
# File: utils-checks.R
# Author: Jana B. Jarecki
# ==========================================================================
# ==========================================================================
# Utility fu... | /R/utils-checks.R | permissive | oliviaguest/cognitivemodels | R | false | false | 6,838 | r | # ==========================================================================
# Package: Cognitivemodels
# File: utils-checks.R
# Author: Jana B. Jarecki
# ==========================================================================
# ==========================================================================
# Utility fu... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
## makeCacheMatrix creates a special matrix, which is the list containing
## a function to set the value of matrix, get the value of matrix,
## set the value of inverse and get the value... | /cachematrix.R | no_license | carizma111/ProgrammingAssignment2 | R | false | false | 1,166 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
## makeCacheMatrix creates a special matrix, which is the list containing
## a function to set the value of matrix, get the value of matrix,
## set the value of inverse and get the value... |
## This function computes the inverse of the special "matrix"
## returned by makeCacheMatrix above.
## calculates matrix inverse
makeCacheMatrix <- function(x = matrix()) {
}
## used to calculate matrix inverse
cacheSolve <- function(x, ...) {
## Return a matrix that is the inverse of 'x'
}
inv <- x$getIn... | /cachematrix.R | no_license | Abdullah-Abdul-Kareem/ProgrammingAssignment2 | R | false | false | 460 | r | ## This function computes the inverse of the special "matrix"
## returned by makeCacheMatrix above.
## calculates matrix inverse
makeCacheMatrix <- function(x = matrix()) {
}
## used to calculate matrix inverse
cacheSolve <- function(x, ...) {
## Return a matrix that is the inverse of 'x'
}
inv <- x$getIn... |
###############################################################################################################################################################
#
# Input parameters (This is how they should look)
#
#########################################################################################################... | /regression_template_.R | no_license | carsonas/RSAC | R | false | false | 7,029 | r | ###############################################################################################################################################################
#
# Input parameters (This is how they should look)
#
#########################################################################################################... |
1. Merges the training and the test sets to create one data set.
# 2. Extracts only the measurements on the mean and standard deviation for each measurement.
# 3. Uses descriptive activity names to name the activities in the data set
# 4. Appropriately labels the data set with descriptive variable names.
# 5. From ... | /programme.R | no_license | Mahima-bit/gettingcleanpeer | R | false | false | 2,951 | r | 1. Merges the training and the test sets to create one data set.
# 2. Extracts only the measurements on the mean and standard deviation for each measurement.
# 3. Uses descriptive activity names to name the activities in the data set
# 4. Appropriately labels the data set with descriptive variable names.
# 5. From ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generics.R, R/methods-vclMatrix.R, R/methods.R
\docType{methods}
\name{block}
\alias{block}
\alias{block,vclMatrix,integer,integer,integer,integer-method}
\alias{block,gpuMatrix,integer,integer,integer,integer-method}
\title{Matrix Blocks}
\u... | /man/gpuR-block.Rd | no_license | nnQuynh/gpuR | R | false | true | 1,514 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generics.R, R/methods-vclMatrix.R, R/methods.R
\docType{methods}
\name{block}
\alias{block}
\alias{block,vclMatrix,integer,integer,integer,integer-method}
\alias{block,gpuMatrix,integer,integer,integer,integer-method}
\title{Matrix Blocks}
\u... |
library(solaR)
### Name: C_corrFdKt
### Title: Correlations between the fraction of diffuse irradiation and the
### clearness index.
### Aliases: corrFdKt FdKtPage FdKtLJ FdKtCPR FdKtEKDd FdKtCLIMEDd FdKtEKDh
### FdKtCLIMEDh FdKtBRL
### Keywords: utilities
### ** Examples
Ktd=seq(0, 1, .01)
Monthly=data.frame(K... | /data/genthat_extracted_code/solaR/examples/corrFdKt.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 664 | r | library(solaR)
### Name: C_corrFdKt
### Title: Correlations between the fraction of diffuse irradiation and the
### clearness index.
### Aliases: corrFdKt FdKtPage FdKtLJ FdKtCPR FdKtEKDd FdKtCLIMEDd FdKtEKDh
### FdKtCLIMEDh FdKtBRL
### Keywords: utilities
### ** Examples
Ktd=seq(0, 1, .01)
Monthly=data.frame(K... |
################################# Start of Code =====================================
rm(ls())
getwd()
setwd("G:/Georgia Tech/Analytical Models/Assignments")
#install.packages("data.table")
#install.packages("kernlab")
#install.packages("caret")
#install.packages("e1071")
require(data.table)
require(kernlab)
require(c... | /HW3_SVM_Cross-validation.R | no_license | aten2001/Analytical-Models-Assignments | R | false | false | 3,890 | r | ################################# Start of Code =====================================
rm(ls())
getwd()
setwd("G:/Georgia Tech/Analytical Models/Assignments")
#install.packages("data.table")
#install.packages("kernlab")
#install.packages("caret")
#install.packages("e1071")
require(data.table)
require(kernlab)
require(c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Test_uSPA.R
\name{Test_uSPA}
\alias{Test_uSPA}
\title{Test uniform Superior Predictive Ability}
\usage{
Test_uSPA(LossDiff, L, B = 999)
}
\arguments{
\item{LossDiff}{the T x H matrix forecast path loss differential}
\item{L}{the parameter fo... | /man/Test_uSPA.Rd | no_license | cran/MultiHorizonSPA | R | false | true | 976 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Test_uSPA.R
\name{Test_uSPA}
\alias{Test_uSPA}
\title{Test uniform Superior Predictive Ability}
\usage{
Test_uSPA(LossDiff, L, B = 999)
}
\arguments{
\item{LossDiff}{the T x H matrix forecast path loss differential}
\item{L}{the parameter fo... |
library(shiny)
library(shinydashboard)
library(DT)
library(shinyjs)
#
# dashboardPage(
# dashboardHeader(),
# dashboardSidebar(),
# dashboardBody()
# )
tagList(
useShinyjs(),
dashboardPage(
dashboardHeader(title = "Meu Dash"),
dashboardSidebar(
sidebarMenu(
... | /ui.R | no_license | Julia-Nascimento/ShinyDashboard | R | false | false | 8,059 | r | library(shiny)
library(shinydashboard)
library(DT)
library(shinyjs)
#
# dashboardPage(
# dashboardHeader(),
# dashboardSidebar(),
# dashboardBody()
# )
tagList(
useShinyjs(),
dashboardPage(
dashboardHeader(title = "Meu Dash"),
dashboardSidebar(
sidebarMenu(
... |
heckitTfit <- function(selection, outcome,
data=sys.frame(sys.parent()),
ys=FALSE, yo=FALSE,
xs=FALSE, xo=FALSE,
mfs=FALSE, mfo=FALSE,
print.level=0,
maxMethod="Newton-Raphson", ... ... | /sampleSelection/R/heckitTfit.R | no_license | ingted/R-Examples | R | false | false | 8,172 | r | heckitTfit <- function(selection, outcome,
data=sys.frame(sys.parent()),
ys=FALSE, yo=FALSE,
xs=FALSE, xo=FALSE,
mfs=FALSE, mfo=FALSE,
print.level=0,
maxMethod="Newton-Raphson", ... ... |
\name{multhist}
\alias{multhist}
\title{Plot a multiple histogram, as a barplot}
\description{
Given a list, plots a side-by-side barplot containing the histograms
of the elements
}
\usage{
multhist(x,beside=TRUE,freq=NULL,probability=!freq,plot.it=TRUE,...)
}
\arguments{
\item{x}{a list of numeric vectors}
\item{... | /plotrix/man/multhist.Rd | no_license | edenduthie/palsR | R | false | false | 1,513 | rd | \name{multhist}
\alias{multhist}
\title{Plot a multiple histogram, as a barplot}
\description{
Given a list, plots a side-by-side barplot containing the histograms
of the elements
}
\usage{
multhist(x,beside=TRUE,freq=NULL,probability=!freq,plot.it=TRUE,...)
}
\arguments{
\item{x}{a list of numeric vectors}
\item{... |
#' (multi-core) Kriging
#'
#' This function statistically downscales input data using covariate data and the kriging methodology. The function can be run in two ways:
#' \enumerate{
#' \item \strong{By Itself}: Use the arguments Data, Covariates_coarse, Covariates_fine when you already have raster files for your data w... | /R/Kriging.R | permissive | junjie2008v/KrigR | R | false | false | 23,260 | r | #' (multi-core) Kriging
#'
#' This function statistically downscales input data using covariate data and the kriging methodology. The function can be run in two ways:
#' \enumerate{
#' \item \strong{By Itself}: Use the arguments Data, Covariates_coarse, Covariates_fine when you already have raster files for your data w... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.