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/Functions.R
\name{ROSBoost.R2}
\alias{ROSBoost.R2}
\title{ROSBoost variant of AdaBoost.R2}
\usage{
ROSBoost.R2(
form,
train,
test,
t_final = 100,
power = 2,
perc.O = 1.5,
rel.thr = 0.9,
coef = 1.5,
...
)
}
\arguments{
\item{... | /man/ROSBoost.R2.Rd | no_license | nunompmoniz/ReBoost | R | false | true | 1,259 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Functions.R
\name{ROSBoost.R2}
\alias{ROSBoost.R2}
\title{ROSBoost variant of AdaBoost.R2}
\usage{
ROSBoost.R2(
form,
train,
test,
t_final = 100,
power = 2,
perc.O = 1.5,
rel.thr = 0.9,
coef = 1.5,
...
)
}
\arguments{
\item{... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{is.empty}
\alias{is.empty}
\title{Check if an object is empty (has length 0)}
\usage{
is.empty(x)
}
\arguments{
\item{x}{the object}
}
\description{
Check if an object is empty (has length 0)
}
\details{
A \code{NULL} value,... | /man/is.empty.Rd | permissive | renkun-ken/rlist | R | false | true | 393 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{is.empty}
\alias{is.empty}
\title{Check if an object is empty (has length 0)}
\usage{
is.empty(x)
}
\arguments{
\item{x}{the object}
}
\description{
Check if an object is empty (has length 0)
}
\details{
A \code{NULL} value,... |
################################################################################
# Server logic of the Shiny app
#
# Author: Lathan Liou
# Created: Fri Sep 18 09:57:20 2020 ------------------------------
################################################################################
source("src/server-mods.R")
# 1. S... | /server.R | no_license | latlio/onlineFDRstream | R | false | false | 5,713 | r | ################################################################################
# Server logic of the Shiny app
#
# Author: Lathan Liou
# Created: Fri Sep 18 09:57:20 2020 ------------------------------
################################################################################
source("src/server-mods.R")
# 1. S... |
calculate_percentile=function(data=mydata,
week_length=input$comet_map,
percentile_value=input$Centile_map,
disease=input$diseases
)
{
max_deb_sem= max(as.Date(data$deb_sem,origin="1970-01-... | /algorithms/percentile.R | no_license | RanaivosonHerimanitra/Sentinel | R | false | false | 10,742 | r | calculate_percentile=function(data=mydata,
week_length=input$comet_map,
percentile_value=input$Centile_map,
disease=input$diseases
)
{
max_deb_sem= max(as.Date(data$deb_sem,origin="1970-01-... |
# ===========================================================================
#
# Differentlt expressed genes annotation application
#
# The code are written based on:
# empritical bayes and moderated t-test
#
# ===========================================================================
#
# Author: Ran... | /DE-IDENTIFICATION.R | no_license | dr413677671/A-combanation-method-of-moderated-t-test-and-radom-forest-algorithm-in-micro-array | R | false | false | 10,111 | r | # ===========================================================================
#
# Differentlt expressed genes annotation application
#
# The code are written based on:
# empritical bayes and moderated t-test
#
# ===========================================================================
#
# Author: Ran... |
LoadData <- function(filename)
{
library(mzR)
splitname <- strsplit(filename,"\\.")[[1]]
if(tolower(splitname[length(splitname)]) == "cdf")
{
msobj <- openMSfile(filename,backend="netCDF")
}else{
msobj <- openMSfile(filename)
}
peakInfo <- peaks(msobj)
headerInfo <- header(msobj)
whMS1 <- w... | /R/getPIC.R | no_license | tentrillion/KPIC2 | R | false | false | 7,703 | r | LoadData <- function(filename)
{
library(mzR)
splitname <- strsplit(filename,"\\.")[[1]]
if(tolower(splitname[length(splitname)]) == "cdf")
{
msobj <- openMSfile(filename,backend="netCDF")
}else{
msobj <- openMSfile(filename)
}
peakInfo <- peaks(msobj)
headerInfo <- header(msobj)
whMS1 <- w... |
# hist() Answers
# read in the safi data, then do the tasks below
safi <- read.csv("data/SAFI_clean.csv",
na = c("", "NULL", "NA"),
stringsAsFactors = FALSE) # for R version >= 4.0, stringsAsFactors = FALSE is the default
# Make a histogram with the hist() function of the years_li... | /exercises/part3/hist_answers.R | permissive | han-tun/r-online-2020 | R | false | false | 1,270 | r | # hist() Answers
# read in the safi data, then do the tasks below
safi <- read.csv("data/SAFI_clean.csv",
na = c("", "NULL", "NA"),
stringsAsFactors = FALSE) # for R version >= 4.0, stringsAsFactors = FALSE is the default
# Make a histogram with the hist() function of the years_li... |
# set barplot besides
par(mfrow= c(2,2))
# define frequence table for first barplot
freq<-table(giov$SITEC)
# first barplot
barplot(freq,main="Valutazione del livello di soddisfazione economica \n laureati e diplomati (ultimi 12 mesi)",
legend=TRUE,args.legend=list(cex=0.60,x="topright"),adj=0.5,
ylab=... | /3.Monovariate Analysis/b_economic_satisfaction.r | no_license | IacopoTesti/Data_Science_for_Sustainability | R | false | false | 2,571 | r | # set barplot besides
par(mfrow= c(2,2))
# define frequence table for first barplot
freq<-table(giov$SITEC)
# first barplot
barplot(freq,main="Valutazione del livello di soddisfazione economica \n laureati e diplomati (ultimi 12 mesi)",
legend=TRUE,args.legend=list(cex=0.60,x="topright"),adj=0.5,
ylab=... |
options(digits = 4)
model_results <- data.frame(
LASSO = min(lasso_caret_best$results$RMSE),
XGB = min(xgb_caret$results$RMSE),
XGB_LASSO = min(xgb_caret_lasso$results$RMSE),
RF = min(ranger_rf$results$RMSE),
RF_LASSO = min(ranger_rf_lasso$results$RMSE)
)
## FINDING THE HOLD ... | /scripts/final_metrics.R | no_license | stsentemeidis/Machine_Learning_House_Prices_Seattle | R | false | false | 3,152 | r |
options(digits = 4)
model_results <- data.frame(
LASSO = min(lasso_caret_best$results$RMSE),
XGB = min(xgb_caret$results$RMSE),
XGB_LASSO = min(xgb_caret_lasso$results$RMSE),
RF = min(ranger_rf$results$RMSE),
RF_LASSO = min(ranger_rf_lasso$results$RMSE)
)
## FINDING THE HOLD ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_runtiming_samples.R
\name{get_runtiming_samples}
\alias{get_runtiming_samples}
\title{Estimate parameters of hierarchical logistic regression using MCMC routine.}
\usage{
get_runtiming_samples(runtiming_data, file_dir, niter = 1e+05, ncor... | /man/get_runtiming_samples.Rd | no_license | jBernardADFG/ChenaSalchaTowerSonar | R | false | true | 1,329 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_runtiming_samples.R
\name{get_runtiming_samples}
\alias{get_runtiming_samples}
\title{Estimate parameters of hierarchical logistic regression using MCMC routine.}
\usage{
get_runtiming_samples(runtiming_data, file_dir, niter = 1e+05, ncor... |
# This is the server logic for a Shiny web application.
library(shiny)
library(dplyr)
library(ggplot2)
# load dataset from the current directory
UMLibrarySalarly2002_2014 <- read.csv("UMLibrarySalary2002_2014.csv")
shinyServer(function(input, output) {
output$salaryPlot <- renderPlot({
# calculating and plo... | /server.R | no_license | YeLibrarian/DataProduct_projectUMLibrarySalary | R | false | false | 1,474 | r |
# This is the server logic for a Shiny web application.
library(shiny)
library(dplyr)
library(ggplot2)
# load dataset from the current directory
UMLibrarySalarly2002_2014 <- read.csv("UMLibrarySalary2002_2014.csv")
shinyServer(function(input, output) {
output$salaryPlot <- renderPlot({
# calculating and plo... |
## CACHING AN INVERSE MATRIX
# Finalized 01/19/18
# For JHU Course 2, Week 2
## This function creates a special "matrix" object that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
i <- NULL #initialized as an object to be used later
set <- function(y) {
x <<- y # superassignment t... | /cachematrix.R | no_license | adamgoren/ProgrammingAssignment2 | R | false | false | 2,896 | r | ## CACHING AN INVERSE MATRIX
# Finalized 01/19/18
# For JHU Course 2, Week 2
## This function creates a special "matrix" object that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
i <- NULL #initialized as an object to be used later
set <- function(y) {
x <<- y # superassignment t... |
/getDiccionarioPaisesEn.R | no_license | ellibrorojo/percepcion_cine_audiencia_espanola | R | false | false | 337 | r | ||
#!/usr/bin/Rscript
library("RColorBrewer")
data <- read.table("datahgt.txt",sep=",")
datan <- read.table("datanohgt.txt",sep=",")
if(max(data[,82])>=max(datan[,82]))
MAX = max(data[,82]) else
MAX = max(datan[,82])
par(mfrow=c(1,2))
plot(datan[,1],datan[,82],col="red",main="Mean Code Distance Over Time",xla... | /plots.R | no_license | acollins-hed/PDT-HGT | R | false | false | 1,981 | r | #!/usr/bin/Rscript
library("RColorBrewer")
data <- read.table("datahgt.txt",sep=",")
datan <- read.table("datanohgt.txt",sep=",")
if(max(data[,82])>=max(datan[,82]))
MAX = max(data[,82]) else
MAX = max(datan[,82])
par(mfrow=c(1,2))
plot(datan[,1],datan[,82],col="red",main="Mean Code Distance Over Time",xla... |
library(shiny)
library(leaflet)
library(dplyr)
library(tidyr)
library(tidyverse)
df <- read.csv("top_10_vertival_4944.csv",header = TRUE,stringsAsFactors = FALSE)
| /app/global.R | no_license | Sapphirine/Product-Recommendation-Yelp | R | false | false | 175 | r |
library(shiny)
library(leaflet)
library(dplyr)
library(tidyr)
library(tidyverse)
df <- read.csv("top_10_vertival_4944.csv",header = TRUE,stringsAsFactors = FALSE)
|
#==========================================================================================#
#==========================================================================================#
# Leave these commands at the beginning. They will refresh the session. #
#----------------------------------------... | /ED/Template/odyssey/Template/plot_monthly.r | no_license | femeunier/ED2 | R | false | false | 171,109 | r | #==========================================================================================#
#==========================================================================================#
# Leave these commands at the beginning. They will refresh the session. #
#----------------------------------------... |
\name{disc.1r}
\alias{disc.1r}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Discretization using the Holte's 1R method }
\description{
This function performs supervised discretization using the Holte's 1R method
}
\usage{
disc.1r(data, convar, binsize = 6)
}
%- maybe also 'usage' f... | /man/disc.1r.Rd | no_license | a704261687/dprep | R | false | false | 982 | rd | \name{disc.1r}
\alias{disc.1r}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Discretization using the Holte's 1R method }
\description{
This function performs supervised discretization using the Holte's 1R method
}
\usage{
disc.1r(data, convar, binsize = 6)
}
%- maybe also 'usage' f... |
# NCBI Datasets API
#
# NCBI service to query and download biological sequence data across all domains of life from NCBI databases.
#
# The version of the OpenAPI document: v1alpha
#
# Generated by: https://openapi-generator.tech
#' @docType class
#' @title V1alpha1Message
#' @description V1alpha1Message Class
#' @fo... | /R/v1alpha1_message.R | no_license | zhang-ncbi/dataset_r_test | R | false | false | 2,032 | r | # NCBI Datasets API
#
# NCBI service to query and download biological sequence data across all domains of life from NCBI databases.
#
# The version of the OpenAPI document: v1alpha
#
# Generated by: https://openapi-generator.tech
#' @docType class
#' @title V1alpha1Message
#' @description V1alpha1Message Class
#' @fo... |
## ----loaddata------------------------------------------------------------
require(lattice)
library(data.table)
library(ggplot2)
#First I want to make sure that default directory is set right before I start with the work
setwd("C:\\RSWeek2")
# we define name of the file in unzipped and zipped format and check if unz... | /RCode.r | no_license | Ramsey2016/https---github.com-Ramsey2016--Reproducible-Research_Ass1 | R | false | false | 4,361 | r | ## ----loaddata------------------------------------------------------------
require(lattice)
library(data.table)
library(ggplot2)
#First I want to make sure that default directory is set right before I start with the work
setwd("C:\\RSWeek2")
# we define name of the file in unzipped and zipped format and check if unz... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reach.r
\name{.renumber_reaches}
\alias{.renumber_reaches}
\title{Renumber reaches, starting with one at the headwaters}
\usage{
.renumber_reaches(ws)
}
\arguments{
\item{ws}{A watershed}
}
\description{
Renumber reaches, starting with one at... | /man/dot-renumber_reaches.Rd | permissive | frawalther/WatershedTools | R | false | true | 338 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reach.r
\name{.renumber_reaches}
\alias{.renumber_reaches}
\title{Renumber reaches, starting with one at the headwaters}
\usage{
.renumber_reaches(ws)
}
\arguments{
\item{ws}{A watershed}
}
\description{
Renumber reaches, starting with one at... |
## ----------------------------------------------------------------- ##
## RTS.R ----------------------------------------------------------- ##
## Author(s): Peter Norwood, NCSU ---------------------------------- ##
## Purpose: run a batched bandit with restricted ------------------- ##
## thompson sampling ----------... | /bandit_inference/RTS.R | no_license | peterpnorwood/NonDomSeqExp | R | false | false | 5,893 | r | ## ----------------------------------------------------------------- ##
## RTS.R ----------------------------------------------------------- ##
## Author(s): Peter Norwood, NCSU ---------------------------------- ##
## Purpose: run a batched bandit with restricted ------------------- ##
## thompson sampling ----------... |
/Rproj/geoRglm/man/b50.Rd | no_license | yidongwork/kentucky_intern_2 | R | false | false | 1,878 | rd | ||
#' Blend multiple colors
#'
#' Blend multiple colors
#'
#' This function is intended to blend two or more colors,
#' by default using "paint mixing" style, similar to subtractive
#' color mixing. It accomplishes this goal by using a red-yellow-blue
#' color wheel (very similar to cyan-yellow-magenta), then determines
... | /R/colorjam-blendcolors.R | no_license | jmw86069/colorjam | R | false | false | 9,429 | r |
#' Blend multiple colors
#'
#' Blend multiple colors
#'
#' This function is intended to blend two or more colors,
#' by default using "paint mixing" style, similar to subtractive
#' color mixing. It accomplishes this goal by using a red-yellow-blue
#' color wheel (very similar to cyan-yellow-magenta), then determines
... |
library(data.table)
DT <- fread('/home/ops/visualizations/residuals/data/grupo-bimbo-inventory-demand/train-clients-products-towns.csv', header = T, sep = ',')
train <- DT[Semana %in% c(3, 4, 5, 6, 7, 8)]
validation <- DT[Semana %in% c(9)]
fwrite(train, 'train.csv')
fwrite(validation, 'validation.csv')
| /local-data/grupo-bimbo-inventory-demand/split.R | permissive | standardgalactic/residuals-vis-data | R | false | false | 304 | r | library(data.table)
DT <- fread('/home/ops/visualizations/residuals/data/grupo-bimbo-inventory-demand/train-clients-products-towns.csv', header = T, sep = ',')
train <- DT[Semana %in% c(3, 4, 5, 6, 7, 8)]
validation <- DT[Semana %in% c(9)]
fwrite(train, 'train.csv')
fwrite(validation, 'validation.csv')
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/psiFuns.R
\name{rho}
\alias{rho}
\title{Rho functions}
\usage{
rho(u, family = " bisquare", cc, standardize = TRUE)
}
\arguments{
\item{u}{point or vector at which rho is to be evaluated}
\item{family}{family string specifying the name of th... | /man/rho.Rd | no_license | msalibian/RobStatTM | R | false | true | 1,320 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/psiFuns.R
\name{rho}
\alias{rho}
\title{Rho functions}
\usage{
rho(u, family = " bisquare", cc, standardize = TRUE)
}
\arguments{
\item{u}{point or vector at which rho is to be evaluated}
\item{family}{family string specifying the name of th... |
### MNT 10x snRNA-seq workflow: step 04 - downstream comparisons
### **Region-specific analyses**
### - (3x) NAc samples from: Br5161 & Br5212 & Br5287
### * Comparison to UCLA's Drop-seq on mouse medial amyg (MeA)
#####################################################################
library(SingleCellExperime... | /10x-pilot_region-specific_Amyg_step04_correl-mm-MeA.R | no_license | BertoLabMUSC/10xPilot_snRNAseq-human | R | false | false | 39,708 | r | ### MNT 10x snRNA-seq workflow: step 04 - downstream comparisons
### **Region-specific analyses**
### - (3x) NAc samples from: Br5161 & Br5212 & Br5287
### * Comparison to UCLA's Drop-seq on mouse medial amyg (MeA)
#####################################################################
library(SingleCellExperime... |
rm(list=ls())
library("shiny")
library("rhandsontable")
library("deSolve")
library("ggplot2")
source('library/r_general/ubiquity.r')
source('transient/auto_rcomponents.r')
Rmdfile = "my_report.Rmd"
load("transient/rgui/default/gui_som.RData")
load("transient/rgui/default/gui_state.RData")
params = list()
params$cfg =... | /Code/osimertinib_dacomitinib/library/templates/r_test_rmd.r | no_license | Michorlab/NSCLC_OsimDacoOptimization | R | false | false | 545 | r | rm(list=ls())
library("shiny")
library("rhandsontable")
library("deSolve")
library("ggplot2")
source('library/r_general/ubiquity.r')
source('transient/auto_rcomponents.r')
Rmdfile = "my_report.Rmd"
load("transient/rgui/default/gui_som.RData")
load("transient/rgui/default/gui_state.RData")
params = list()
params$cfg =... |
targets::tar_test("tar_file_read() manifest", {
targets::tar_script({
write_file <- function() {
write.csv(mtcars, "mtcars.csv")
"mtcars.csv"
}
get_nrows <- function() {
2L
}
tar_file_read(
data,
write_file(),
utils::read.csv(file = !!.x, nrows = get_nrows())
... | /tests/testthat/test-tar_file_read.R | permissive | ropensci/tarchetypes | R | false | false | 1,734 | r | targets::tar_test("tar_file_read() manifest", {
targets::tar_script({
write_file <- function() {
write.csv(mtcars, "mtcars.csv")
"mtcars.csv"
}
get_nrows <- function() {
2L
}
tar_file_read(
data,
write_file(),
utils::read.csv(file = !!.x, nrows = get_nrows())
... |
island.pars <- list(isl.r=5, isl.c=5, E.mean=20, E.sd=0, prod.mean=20, prod.sd=0, incComp=NA, incComp.time=NA)
pop.pars <- list(N.init=40, w.mean=1, w.CV=0.04)
move.pars <- list(m=0.5, move.fn='random')
pred.pars <- list(p=0.5, prP=0.2, predOpt=10, predEnd=300, pred.fn='none')
feed.pars <- list(st=0.4314286, feed.fn='a... | /SimOutput/antilogit/st_ParSet_6/parameters.R | no_license | Sz-Tim/IslandRule | R | false | false | 580 | r | island.pars <- list(isl.r=5, isl.c=5, E.mean=20, E.sd=0, prod.mean=20, prod.sd=0, incComp=NA, incComp.time=NA)
pop.pars <- list(N.init=40, w.mean=1, w.CV=0.04)
move.pars <- list(m=0.5, move.fn='random')
pred.pars <- list(p=0.5, prP=0.2, predOpt=10, predEnd=300, pred.fn='none')
feed.pars <- list(st=0.4314286, feed.fn='a... |
#' Takes a square matrix and returns a vector of unique elements
#'
#' @param myMatrix A square matrix
#'
#' @return vector of unique elements
#'
#' @examples vech(df, 2018, 08)
#'
#' @export
# ------------------------------------------------------------------------------
vech <- function(myMatrix) {
# -------------... | /R/vech.R | no_license | mlgiordano1/MIIVmsem | R | false | false | 1,260 | r | #' Takes a square matrix and returns a vector of unique elements
#'
#' @param myMatrix A square matrix
#'
#' @return vector of unique elements
#'
#' @examples vech(df, 2018, 08)
#'
#' @export
# ------------------------------------------------------------------------------
vech <- function(myMatrix) {
# -------------... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.rds_operations.R
\name{modify_db_cluster_snapshot_attribute}
\alias{modify_db_cluster_snapshot_attribute}
\title{Adds an attribute and values to, or removes an attribute and values from, a manual DB cluster snapshot}
\usage{
modify_db_cl... | /service/paws.rds/man/modify_db_cluster_snapshot_attribute.Rd | permissive | CR-Mercado/paws | R | false | true | 3,201 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.rds_operations.R
\name{modify_db_cluster_snapshot_attribute}
\alias{modify_db_cluster_snapshot_attribute}
\title{Adds an attribute and values to, or removes an attribute and values from, a manual DB cluster snapshot}
\usage{
modify_db_cl... |
# ------------- Initialize variables we are interested in for modeling -------------
buildHospModel <- function(train, planVars, behaviorVars, controlVars, nonHospWt, hospWt) {
target <- 'IPDIS15'
weights <- 'w'
vars <- c(target, planVars, behaviorVars, controlVars, weights)
predVars <- c(planVars, behavi... | /r-shiny/template/data/shiny_ranger.R | no_license | Anderson-Lab/capstone-spring-2018-team-2 | R | false | false | 1,426 | r |
# ------------- Initialize variables we are interested in for modeling -------------
buildHospModel <- function(train, planVars, behaviorVars, controlVars, nonHospWt, hospWt) {
target <- 'IPDIS15'
weights <- 'w'
vars <- c(target, planVars, behaviorVars, controlVars, weights)
predVars <- c(planVars, behavi... |
library("xlsx")
data = read.xlsx("input.xlsx", sheetIndex = 1)
print(data)
summary(data)
print(min(data$salary))
subdata = subset(data,salary > min(data$salary))
print(subdata)
#write.xlsx(subdata,"output.xlsx")
write.xlsx(subdata,"output.xlsx", row.names=FALSE) | /working with external file/process_xlsx.R | no_license | Rahulkala/R-workspace | R | false | false | 264 | r | library("xlsx")
data = read.xlsx("input.xlsx", sheetIndex = 1)
print(data)
summary(data)
print(min(data$salary))
subdata = subset(data,salary > min(data$salary))
print(subdata)
#write.xlsx(subdata,"output.xlsx")
write.xlsx(subdata,"output.xlsx", row.names=FALSE) |
### =========================================================================
### SummarizedExperiment0 objects
### -------------------------------------------------------------------------
###
### TODO: Once the "old" SummarizedExperiment class in GenomicRanges is gone
### (in BioC 2.4) the name will be available agai... | /R/SummarizedExperiment0-class.R | no_license | amustaf5/SummarizedExperiment | R | false | false | 22,498 | r | ### =========================================================================
### SummarizedExperiment0 objects
### -------------------------------------------------------------------------
###
### TODO: Once the "old" SummarizedExperiment class in GenomicRanges is gone
### (in BioC 2.4) the name will be available agai... |
\docType{package}
\encoding{UTF-8}
\name{ExpressionView-package}
\alias{ExpressionView-package}
\title{The ExpressionView package}
\description{A package designed to interactively explore biclusters
identified in gene expression data.
}
\section{Introduction}{
Clustering genes according to their expression profiles... | /RExpressionView/man/ExpressionView-package.Rd | no_license | gaborcsardi/ISA | R | false | false | 2,558 | rd | \docType{package}
\encoding{UTF-8}
\name{ExpressionView-package}
\alias{ExpressionView-package}
\title{The ExpressionView package}
\description{A package designed to interactively explore biclusters
identified in gene expression data.
}
\section{Introduction}{
Clustering genes according to their expression profiles... |
library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Lasso/pleura.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="mse",alpha=0.03,family="gaussian",standardize=TRUE)
sink('./pleura_013.txt',append=TRUE)
print... | /Model/EN/Lasso/pleura/pleura_013.R | no_license | esbgkannan/QSMART | R | false | false | 344 | r | library(glmnet)
mydata = read.table("../../../../TrainingSet/FullSet/Lasso/pleura.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="mse",alpha=0.03,family="gaussian",standardize=TRUE)
sink('./pleura_013.txt',append=TRUE)
print... |
\name{Cuckoo}
\alias{Cuckoo}
\docType{data}
\title{Measurements of Cuckoo Eggs}
\description{
Lengths of cuckoo eggs laid in other birds' nests
}
\format{
A data frame with 120 observations on the following 2 variables.
\tabular{rl}{
\code{Bird} \tab {Type of bird nest: \code{mdw_pipit} (meadow pipit)... | /man/Cuckoo.Rd | no_license | cran/Stat2Data | R | false | false | 1,120 | rd | \name{Cuckoo}
\alias{Cuckoo}
\docType{data}
\title{Measurements of Cuckoo Eggs}
\description{
Lengths of cuckoo eggs laid in other birds' nests
}
\format{
A data frame with 120 observations on the following 2 variables.
\tabular{rl}{
\code{Bird} \tab {Type of bird nest: \code{mdw_pipit} (meadow pipit)... |
# nombre del archivo a mandar por correo:
# nombre_apellido_inferencia_profesor.R
# ejemplo:
# juan_perez_estadistica_mayer.R
# No olvide ejecutar las líneas 6 y 11 antes de empezar el resto del trabajo
library(readxl)
# 1. Use la función read_excel para cargar los datos que se encuentran en el archivo excel datos_i... | /2019_2/sol1/sol1_inferencia_R_mayer/javiera_hernandez_inferencia_mayer.R | no_license | ricardomayerb/ico8306 | R | false | false | 1,802 | r | # nombre del archivo a mandar por correo:
# nombre_apellido_inferencia_profesor.R
# ejemplo:
# juan_perez_estadistica_mayer.R
# No olvide ejecutar las líneas 6 y 11 antes de empezar el resto del trabajo
library(readxl)
# 1. Use la función read_excel para cargar los datos que se encuentran en el archivo excel datos_i... |
context("Create tmpdir")
test_that("The temporary directory can be created", {
expect_is(create_appdir(), "character")
expect_error(suppressWarnings(create_appdir(package = "SKDEr")))
expect_is(create_appdir(app_data = mtcars), "character")
expect_warning(create_appdir(app_folder = NULL))
expect_is(suppressW... | /tests/testthat/test_create_appdir.R | permissive | SKDE-Felles/SKDEr | R | false | false | 379 | r | context("Create tmpdir")
test_that("The temporary directory can be created", {
expect_is(create_appdir(), "character")
expect_error(suppressWarnings(create_appdir(package = "SKDEr")))
expect_is(create_appdir(app_data = mtcars), "character")
expect_warning(create_appdir(app_folder = NULL))
expect_is(suppressW... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/process.folder.R
\name{process.folder}
\alias{process.folder}
\title{Process a folder containing accelerometer and GPS data}
\usage{
process.folder(folder_location)
}
\arguments{
\item{folder_location}{the location fo the folders, the rest of... | /man/process.folder.Rd | no_license | pydemull/modeid | R | false | true | 603 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/process.folder.R
\name{process.folder}
\alias{process.folder}
\title{Process a folder containing accelerometer and GPS data}
\usage{
process.folder(folder_location)
}
\arguments{
\item{folder_location}{the location fo the folders, the rest of... |
#' @title Regression Kernlab Support Vector Machine
#' @author mboecker
#' @name mlr_learners_regr.ksvm
#'
#' @template class_learner
#' @templateVar id regr.ksvm
#' @templateVar caller ksvm
#'
#' @export
#' @template seealso_learner
#' @template example
LearnerRegrKSVM = R6Class("LearnerRegrKSVM",
inherit = LearnerR... | /R/learner_kernlab_regr_ksvm.R | no_license | A-Pai/mlr3extralearners | R | false | false | 3,361 | r | #' @title Regression Kernlab Support Vector Machine
#' @author mboecker
#' @name mlr_learners_regr.ksvm
#'
#' @template class_learner
#' @templateVar id regr.ksvm
#' @templateVar caller ksvm
#'
#' @export
#' @template seealso_learner
#' @template example
LearnerRegrKSVM = R6Class("LearnerRegrKSVM",
inherit = LearnerR... |
# plant size data
size <- read.table("size.csv", header = TRUE, sep = ";")
head(size)
size <- size %>%
filter(sp == "RAN") %>%
select(-Torig, -Porig, -Tdest, -Pdest, -DOY, -blk) %>%
mutate(trt = plyr::mapvalues(trt, c("c", "wa", "we", "ww"), c("Control", "Warmer", "LaterSM", "WarmLate")))
size %>%
ggplot()... | /Old code/LeafSize.R | no_license | audhalbritter/PollenLimitation | R | false | false | 7,210 | r | # plant size data
size <- read.table("size.csv", header = TRUE, sep = ";")
head(size)
size <- size %>%
filter(sp == "RAN") %>%
select(-Torig, -Porig, -Tdest, -Pdest, -DOY, -blk) %>%
mutate(trt = plyr::mapvalues(trt, c("c", "wa", "we", "ww"), c("Control", "Warmer", "LaterSM", "WarmLate")))
size %>%
ggplot()... |
###########################################################
#
# MSC 301: Introduction to Physical Oceanography
# Homework 01 Sample Code
#
# Author: mgrossi
# Date: 01 Sep 2018
#
###########################################################
# =========================================================
# QUESTION 2d:
# Car... | /teaching_hw_examples/HW01_sample_code.R | no_license | mdgrossi/code-samples | R | false | false | 8,385 | r | ###########################################################
#
# MSC 301: Introduction to Physical Oceanography
# Homework 01 Sample Code
#
# Author: mgrossi
# Date: 01 Sep 2018
#
###########################################################
# =========================================================
# QUESTION 2d:
# Car... |
#Julian Ramirez-Villegas
#February 2012
#CIAT / CCAFS / UoL
stop("Do not run whole thing")
#libraries
library(maptools); library(rgdal); library(raster)
data(wrld_simpl)
#sourcing important functions
src.dir <- "D:/_tools/dapa-climate-change/trunk/EcoCrop/src"
#src.dir <- "/home/jramirez/dapa-climate-chang... | /PhD/0007-crop-modelling/scripts/signals/detrender-rice.R | no_license | CIAT-DAPA/dapa-climate-change | R | false | false | 2,214 | r | #Julian Ramirez-Villegas
#February 2012
#CIAT / CCAFS / UoL
stop("Do not run whole thing")
#libraries
library(maptools); library(rgdal); library(raster)
data(wrld_simpl)
#sourcing important functions
src.dir <- "D:/_tools/dapa-climate-change/trunk/EcoCrop/src"
#src.dir <- "/home/jramirez/dapa-climate-chang... |
library(UsingR)
### Name: maydow
### Title: Dow Jones industrial average and May maximum temperature
### Aliases: maydow
### Keywords: datasets
### ** Examples
data(maydow)
attach(maydow)
plot(max.temp,DJA)
plot(max.temp[-1],diff(DJA))
| /data/genthat_extracted_code/UsingR/examples/maydow.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 243 | r | library(UsingR)
### Name: maydow
### Title: Dow Jones industrial average and May maximum temperature
### Aliases: maydow
### Keywords: datasets
### ** Examples
data(maydow)
attach(maydow)
plot(max.temp,DJA)
plot(max.temp[-1],diff(DJA))
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/predict.R
\name{predict.blm}
\alias{predict.blm}
\title{Predict}
\usage{
\method{predict}{blm}(object, newdata, beta, ...)
}
\arguments{
\item{object}{The Bayesian linear regression model}
\item{newdata}{New data set}
\item{beta}{Number}
\... | /man/predict.blm.Rd | no_license | laurenejames/blm | R | false | true | 565 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/predict.R
\name{predict.blm}
\alias{predict.blm}
\title{Predict}
\usage{
\method{predict}{blm}(object, newdata, beta, ...)
}
\arguments{
\item{object}{The Bayesian linear regression model}
\item{newdata}{New data set}
\item{beta}{Number}
\... |
IWLS_CorrZIP <-
function(Loadings,Correlations,corrModel,YList=NULL,
XList=NULL,ZZIndep=NULL,indepModel=NULL,SSIndep=NULL,BetaList=NULL,Vstart=NULL,OFFSETList=NULL,LinkList=c("Log"),DDRIndep=NULL,DRgammaIndep=NULL,
RespDist=c("Normal","Normal"),RandDistIndep=NULL,DDY=NULL,DYgamma=NULL,
... | /R/IWLS_CorrZIP.R | no_license | cran/hsem | R | false | false | 131,741 | r | IWLS_CorrZIP <-
function(Loadings,Correlations,corrModel,YList=NULL,
XList=NULL,ZZIndep=NULL,indepModel=NULL,SSIndep=NULL,BetaList=NULL,Vstart=NULL,OFFSETList=NULL,LinkList=c("Log"),DDRIndep=NULL,DRgammaIndep=NULL,
RespDist=c("Normal","Normal"),RandDistIndep=NULL,DDY=NULL,DYgamma=NULL,
... |
rm(list =ls())
DE = read.csv('D:\\transcriptLevelAnalysis\\quautity\\proteinCodingfilterF0DEseqres.csv',header = F,row.names = 1)
x = DE$V3
y = -1*log10(DE$V7)
color_vec= rep('gray',length(x))
## set color by x axis value
color_vec[x >1 & y >(log10(0.05)*-1)] = 'firebrick2'
## set color by y axis value
color_v... | /基础包火山图.R | no_license | lf135998/R-scripts-for-RNA-seq | R | false | false | 1,003 | r | rm(list =ls())
DE = read.csv('D:\\transcriptLevelAnalysis\\quautity\\proteinCodingfilterF0DEseqres.csv',header = F,row.names = 1)
x = DE$V3
y = -1*log10(DE$V7)
color_vec= rep('gray',length(x))
## set color by x axis value
color_vec[x >1 & y >(log10(0.05)*-1)] = 'firebrick2'
## set color by y axis value
color_v... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/StyleDefaults.R
\name{setNodeCustomHeatMapChart}
\alias{setNodeCustomHeatMapChart}
\title{Set Node Custom HeatMap Chart}
\usage{
setNodeCustomHeatMapChart(columns, colors = NULL, range = NULL,
orientation = "HORIZONTAL", rangeAxis = FALSE, ... | /man/setNodeCustomHeatMapChart.Rd | permissive | shraddhapai/RCy3 | R | false | true | 2,010 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/StyleDefaults.R
\name{setNodeCustomHeatMapChart}
\alias{setNodeCustomHeatMapChart}
\title{Set Node Custom HeatMap Chart}
\usage{
setNodeCustomHeatMapChart(columns, colors = NULL, range = NULL,
orientation = "HORIZONTAL", rangeAxis = FALSE, ... |
#---------------------------------------------------------------------------------------
# 3 - MATRIX VISUALIZATION
#---------------------------------------------------------------------------------------
cat("\014")
# source(paste0(pathsCodes,'00_init.R'))
# source(paste0(pathsCodes,'01_cleaning_transforming... | /code/03_matrix_visualization.R | no_license | mvuckovic70/recommenderSystems | R | false | false | 1,285 | r |
#---------------------------------------------------------------------------------------
# 3 - MATRIX VISUALIZATION
#---------------------------------------------------------------------------------------
cat("\014")
# source(paste0(pathsCodes,'00_init.R'))
# source(paste0(pathsCodes,'01_cleaning_transforming... |
## ---- echo = FALSE-------------------------------------------------------
knitr::opts_chunk$set(fig.width = 6, fig.height = 4.5)
## ---- warning = FALSE, message = FALSE-----------------------------------
library("SimMultiCorrData")
library("printr")
stcums <- calc_theory(Dist = "Exponential", params = 0.5)
... | /inst/doc/dist_comp.R | no_license | cran/SimMultiCorrData | R | false | false | 2,779 | r | ## ---- echo = FALSE-------------------------------------------------------
knitr::opts_chunk$set(fig.width = 6, fig.height = 4.5)
## ---- warning = FALSE, message = FALSE-----------------------------------
library("SimMultiCorrData")
library("printr")
stcums <- calc_theory(Dist = "Exponential", params = 0.5)
... |
aaa = aa[1:3, 2:4]
aaa
bbb = aa[9:11, 2:4]
bbb
rbind(aaa, bbb)
rbind(aaa, bbb, aaa, bbb, aaa, bbb)
cbind(aaa, bbb)
cbind(aaa, bbb, aaa)
# 위에서 말했듯 행,열 서로 맞지않으면 에러
aaa = aa[1:5, 2:4]
bbb = aa[9:11, 2:4]
# cbind(aaa, bbb)
aaa = aa[1:3, 1:5]
bbb = aa[9:11, 2:4]
# rbind(aaa, bbb)
table(aa$AWS_ID) # 값의 종류와 갯수... | /06_데이터병합.R | no_license | Junohera/R_Basic | R | false | false | 857 | r | aaa = aa[1:3, 2:4]
aaa
bbb = aa[9:11, 2:4]
bbb
rbind(aaa, bbb)
rbind(aaa, bbb, aaa, bbb, aaa, bbb)
cbind(aaa, bbb)
cbind(aaa, bbb, aaa)
# 위에서 말했듯 행,열 서로 맞지않으면 에러
aaa = aa[1:5, 2:4]
bbb = aa[9:11, 2:4]
# cbind(aaa, bbb)
aaa = aa[1:3, 1:5]
bbb = aa[9:11, 2:4]
# rbind(aaa, bbb)
table(aa$AWS_ID) # 값의 종류와 갯수... |
\name{BTabilities}
\alias{BTabilities}
\title{ estimated abilities in a Bradley-Terry model }
\description{
Extracts the \code{abilities} component from a model object of class \code{\link{BTm}}.
}
\usage{
BTabilities(model)
}
\arguments{
\item{model}{a model object for which \code{inherits(model, "BTm")} is
\... | /man/BTabilities.Rd | no_license | cran/BradleyTerry | R | false | false | 789 | rd | \name{BTabilities}
\alias{BTabilities}
\title{ estimated abilities in a Bradley-Terry model }
\description{
Extracts the \code{abilities} component from a model object of class \code{\link{BTm}}.
}
\usage{
BTabilities(model)
}
\arguments{
\item{model}{a model object for which \code{inherits(model, "BTm")} is
\... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/thin_draws.R
\name{thin_draws}
\alias{thin_draws}
\alias{thin}
\alias{thin_draws.draws}
\title{Thin \code{draws} objects}
\usage{
thin_draws(x, thin, ...)
\method{thin_draws}{draws}(x, thin, ...)
}
\arguments{
\item{x}{(draws) A \code{draws}... | /man/thin_draws.Rd | permissive | brankozajamsek/posterior | R | false | true | 782 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/thin_draws.R
\name{thin_draws}
\alias{thin_draws}
\alias{thin}
\alias{thin_draws.draws}
\title{Thin \code{draws} objects}
\usage{
thin_draws(x, thin, ...)
\method{thin_draws}{draws}(x, thin, ...)
}
\arguments{
\item{x}{(draws) A \code{draws}... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plots_utils.R
\name{plot_common_pairs}
\alias{plot_common_pairs}
\title{Plot scatterplot Gini corrected vs raw permutation for a group}
\usage{
plot_common_pairs(data, g = c("e", "m"), imp_gini = c("g", "c"))
}
\arguments{
\item{data}{datafra... | /man/plot_common_pairs.Rd | permissive | sbenfatto/PARIS | R | false | true | 625 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plots_utils.R
\name{plot_common_pairs}
\alias{plot_common_pairs}
\title{Plot scatterplot Gini corrected vs raw permutation for a group}
\usage{
plot_common_pairs(data, g = c("e", "m"), imp_gini = c("g", "c"))
}
\arguments{
\item{data}{datafra... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gen_vec.R
\name{gen_vec}
\alias{gen_vec}
\title{Vector Error Correction Model Input}
\usage{
gen_vec(
data,
p = 2,
exogen = NULL,
s = 2,
r = NULL,
const = NULL,
trend = NULL,
seasonal = NULL,
structural = FALSE,
tvp = FALS... | /man/gen_vec.Rd | no_license | franzmohr/bvartools | R | false | true | 4,945 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gen_vec.R
\name{gen_vec}
\alias{gen_vec}
\title{Vector Error Correction Model Input}
\usage{
gen_vec(
data,
p = 2,
exogen = NULL,
s = 2,
r = NULL,
const = NULL,
trend = NULL,
seasonal = NULL,
structural = FALSE,
tvp = FALS... |
## ----------- set_if_null -----------
### from Altools
set_if_null <- function(null_arg=NULL, default_value) {
return(
if (is.null(null_arg))
default_value
else
null_arg
)
}
## ----------- suffix_colnames -----------
## add suffix to column names for integration
suffix_colnames <- function(x,... | /src/utils/utils-misc.R | no_license | aljabadi/scNMT_seq_gastrulation | R | false | false | 3,518 | r | ## ----------- set_if_null -----------
### from Altools
set_if_null <- function(null_arg=NULL, default_value) {
return(
if (is.null(null_arg))
default_value
else
null_arg
)
}
## ----------- suffix_colnames -----------
## add suffix to column names for integration
suffix_colnames <- function(x,... |
# ------------------------------------------------------------------------------
# rbundle()
test_that("can create an empty rbundle()", {
x <- rbundle()
expect_s3_class(x, "rbundle")
expect_identical(x$rschedules, list())
expect_identical(x$rdates, new_date())
expect_identical(x$exdates, new_date())
})
test... | /tests/testthat/test-rbundle.R | permissive | jayhesselberth/almanac | R | false | false | 5,577 | r | # ------------------------------------------------------------------------------
# rbundle()
test_that("can create an empty rbundle()", {
x <- rbundle()
expect_s3_class(x, "rbundle")
expect_identical(x$rschedules, list())
expect_identical(x$rdates, new_date())
expect_identical(x$exdates, new_date())
})
test... |
#The reason that I wish to do this topic is becuase recently more and more school shootings begin
#to exist. It happened without any preparation and many students and faculties have been killed
#by the shooter. From my perspective, it is an important social issue that everyone need to pay
#attention to in order to have... | /Youtube_data.R | no_license | Jennifer0505/Final-Project | R | false | false | 23,656 | r | #The reason that I wish to do this topic is becuase recently more and more school shootings begin
#to exist. It happened without any preparation and many students and faculties have been killed
#by the shooter. From my perspective, it is an important social issue that everyone need to pay
#attention to in order to have... |
#' @title SEIR+V Model
#' @description A model for influenza that uses a SEIR framework with age
#' structure and that allows for vaccination
#' @param population Size of population; defaults to 1
#' @param populationFractions Vector of population fractions (all non-negative,
#' sum to 1); defaults to 1, represen... | /R/SEIRVModel2.R | no_license | cdcepi/ACIP-SARS-CoV-2-Vaccine-Modeling | R | false | false | 13,381 | r | #' @title SEIR+V Model
#' @description A model for influenza that uses a SEIR framework with age
#' structure and that allows for vaccination
#' @param population Size of population; defaults to 1
#' @param populationFractions Vector of population fractions (all non-negative,
#' sum to 1); defaults to 1, represen... |
library(ggplot2)
#============================================================
#交换x轴和y轴
#============================================================
#使用coord_flip()来翻转坐标轴
ggplot(PlantGrowth, aes(x=group, y=weight)) + geom_boxplot()
ggplot(PlantGrowth, aes(x=group, y=weight)) + geom_boxplot() + coord_flip()
#如果x变量是一个因... | /codes/chapter8.R | no_license | xiaowei3223/Graphic_data_with_R | R | false | false | 18,099 | r | library(ggplot2)
#============================================================
#交换x轴和y轴
#============================================================
#使用coord_flip()来翻转坐标轴
ggplot(PlantGrowth, aes(x=group, y=weight)) + geom_boxplot()
ggplot(PlantGrowth, aes(x=group, y=weight)) + geom_boxplot() + coord_flip()
#如果x变量是一个因... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/na.R
\name{count_na}
\alias{count_na}
\title{count_na}
\usage{
count_na(x)
}
\arguments{
\item{x}{A vector or matrix or array}
}
\value{
An integer
}
\description{
Count the number of NA
}
\examples{
count_na( c(1,NA, 2, NA, 3) )
count_na( ar... | /man/count_na.Rd | no_license | talegari/sidekicks | R | false | true | 350 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/na.R
\name{count_na}
\alias{count_na}
\title{count_na}
\usage{
count_na(x)
}
\arguments{
\item{x}{A vector or matrix or array}
}
\value{
An integer
}
\description{
Count the number of NA
}
\examples{
count_na( c(1,NA, 2, NA, 3) )
count_na( ar... |
library(bitops)
library(NLP)
library(RColorBrewer)
library(twitteR)
library(RCurl)
library(RJSONIO)
library(stringr)
library(tm)
library(wordcloud)
db_key <- "9c81bbc72b8891bf8d07275ba2a3ccee"
clean.text <- function(some_txt)
{
some_txt = gsub("(RT|via)((?:\\b\\W*@\\w+)+)", "", some_txt)
some_txt = gsub("@\\w+", "... | /swaps/twitter/rprog2.R | no_license | masymbol/customer_experience | R | false | false | 2,888 | r | library(bitops)
library(NLP)
library(RColorBrewer)
library(twitteR)
library(RCurl)
library(RJSONIO)
library(stringr)
library(tm)
library(wordcloud)
db_key <- "9c81bbc72b8891bf8d07275ba2a3ccee"
clean.text <- function(some_txt)
{
some_txt = gsub("(RT|via)((?:\\b\\W*@\\w+)+)", "", some_txt)
some_txt = gsub("@\\w+", "... |
## Description: Fetch, Organize, and Export Congressional District Data for KSVD
## Author: Mark White, markhwhiteii@gmail.com
library(acs)
library(tidyverse)
library(stringr)
source("get_proportions.R")
source("get_totals.R")
key <- read_csv("acs_variable_key.csv")
ks_geo <- geo.make(state = "KS", congressional.dist... | /acs/getting_congressional_acs.R | no_license | kansas-voting-data/ksvd_app | R | false | false | 1,084 | r | ## Description: Fetch, Organize, and Export Congressional District Data for KSVD
## Author: Mark White, markhwhiteii@gmail.com
library(acs)
library(tidyverse)
library(stringr)
source("get_proportions.R")
source("get_totals.R")
key <- read_csv("acs_variable_key.csv")
ks_geo <- geo.make(state = "KS", congressional.dist... |
#set working directory
setwd("C:/Users/matr06581/Desktop/Data Analysis")
if (!file.exists("data.zip")) {
download.file(url="https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",
destfile="data.zip")
unzip("data.zip")
}
#clean data
data = read.csv("household_power_... | /plot2.r | no_license | somethinggaby/ExData_Plotting1 | R | false | false | 997 | r | #set working directory
setwd("C:/Users/matr06581/Desktop/Data Analysis")
if (!file.exists("data.zip")) {
download.file(url="https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",
destfile="data.zip")
unzip("data.zip")
}
#clean data
data = read.csv("household_power_... |
# LapierreLab
# Author: Philippe Maisonneuve
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# This script calculates light attenuation rates (Kd)
# from data files generated by the PAR-UV probe (Bertolo Lab, UQTR)
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#install... | /Photodegradation/03 - Kd_Attenuation_PUV.R | no_license | p-maisonneuve/lapierre-lab | R | false | false | 2,852 | r | # LapierreLab
# Author: Philippe Maisonneuve
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# This script calculates light attenuation rates (Kd)
# from data files generated by the PAR-UV probe (Bertolo Lab, UQTR)
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
#install... |
install.packages("rattle")
library(rattle)
rattle()
install.packages("RGtk2")
library(RGtk2)
library(xlsx)
UL_Haircare <- read.csv("C:/Users/shossain/Documents/Projects/NPL/New analysis/Final UL (Hair Care).csv")
saveRDS(epos_UL_Haircare,"C:/Users/shossain/Documents/Projects/NPL/Indo_Darwin/tempo/epos_UL_Hairc... | /Cluster Analysis.R | no_license | safikhossain/DatascienceInnovation | R | false | false | 6,186 | r | install.packages("rattle")
library(rattle)
rattle()
install.packages("RGtk2")
library(RGtk2)
library(xlsx)
UL_Haircare <- read.csv("C:/Users/shossain/Documents/Projects/NPL/New analysis/Final UL (Hair Care).csv")
saveRDS(epos_UL_Haircare,"C:/Users/shossain/Documents/Projects/NPL/Indo_Darwin/tempo/epos_UL_Hairc... |
library(mpt)
### Name: mpt
### Title: Multinomial Processing Tree (MPT) Models
### Aliases: mpt anova.mpt coef.mpt confint.mpt predict.mpt print.mpt
### summary.mpt print.summary.mpt
### Keywords: models
### ** Examples
## Storage-retrieval model for pair clustering (Riefer & Batchelder, 1988)
data(retroact)
spe... | /data/genthat_extracted_code/mpt/examples/mpt.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 946 | r | library(mpt)
### Name: mpt
### Title: Multinomial Processing Tree (MPT) Models
### Aliases: mpt anova.mpt coef.mpt confint.mpt predict.mpt print.mpt
### summary.mpt print.summary.mpt
### Keywords: models
### ** Examples
## Storage-retrieval model for pair clustering (Riefer & Batchelder, 1988)
data(retroact)
spe... |
# SVM
# Importing the dataset
dataset = read.csv('Social_Network_Ads.csv')
dataset = dataset[3:5]
# Encoding the target feature as factor
dataset$Purchased = factor(dataset$Purchased, levels = c(0, 1))
# Splitting the dataset into the Training set and Test set
# install.packages('caTools')
library(caTools)
set.seed(... | /Part 3 - Classification/Section 16 - Support Vector Machine (SVM)/svm_working.R | no_license | nareshr8/Machine-Learning-A-Z-Templates | R | false | false | 2,295 | r | # SVM
# Importing the dataset
dataset = read.csv('Social_Network_Ads.csv')
dataset = dataset[3:5]
# Encoding the target feature as factor
dataset$Purchased = factor(dataset$Purchased, levels = c(0, 1))
# Splitting the dataset into the Training set and Test set
# install.packages('caTools')
library(caTools)
set.seed(... |
ARI.F <- function(VC,U, t_norm = c("minimum","product"))
{
if (missing(VC))
stop("The hard partitions VC must be given")
if (missing(U))
stop("The fuzzy partitions U must be given")
if (is.null(VC))
stop("The hard partitions VC is empty")
if (is.null(U))
stop("The fuzzy partitions U is empty... | /R/ARI.F.R | no_license | cran/fclust | R | false | false | 832 | r | ARI.F <- function(VC,U, t_norm = c("minimum","product"))
{
if (missing(VC))
stop("The hard partitions VC must be given")
if (missing(U))
stop("The fuzzy partitions U must be given")
if (is.null(VC))
stop("The hard partitions VC is empty")
if (is.null(U))
stop("The fuzzy partitions U is empty... |
# Input: number of features, input_data,
# Output: first_hash_table
source('get_pattern_table.R')
source('get_contingency_table.R')
stratification <- function(n_features, input_data) {
# first hash table
first_hash_table = get_pattern_table(n_features)
first_hash_table['n11'] = 0
first_hash_table['n12'] ... | /stratification.R | no_license | JuliusZSS/DEEP_SZ | R | false | false | 1,465 | r | # Input: number of features, input_data,
# Output: first_hash_table
source('get_pattern_table.R')
source('get_contingency_table.R')
stratification <- function(n_features, input_data) {
# first hash table
first_hash_table = get_pattern_table(n_features)
first_hash_table['n11'] = 0
first_hash_table['n12'] ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cpa.count.R
\name{cpa.count}
\alias{cpa.count}
\title{Analytic power calculations for parallel arm cluster-randomized trials with count outcomes}
\usage{
cpa.count(
alpha = 0.05,
power = 0.8,
nclusters = NA,
nsubjects = NA,
r1 = NA,... | /man/cpa.count.Rd | no_license | Kenkleinman/clusterPower | R | false | true | 4,476 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cpa.count.R
\name{cpa.count}
\alias{cpa.count}
\title{Analytic power calculations for parallel arm cluster-randomized trials with count outcomes}
\usage{
cpa.count(
alpha = 0.05,
power = 0.8,
nclusters = NA,
nsubjects = NA,
r1 = NA,... |
\name{sol}
\alias{sol}
\alias{eta}
\alias{minkowski}
\alias{lightspeed}
\alias{celerity}
\alias{ptm}
\title{Speed of light and Minkowski metric}
\description{Getting and setting the speed of light}
\usage{
sol(c)
eta(downstairs=TRUE)
ptm(to_natural=TRUE, change_time=TRUE)
}
\arguments{
\item{c}{Scalar, speed of light... | /man/sol.Rd | no_license | muizzk/lorentz | R | false | false | 2,396 | rd | \name{sol}
\alias{sol}
\alias{eta}
\alias{minkowski}
\alias{lightspeed}
\alias{celerity}
\alias{ptm}
\title{Speed of light and Minkowski metric}
\description{Getting and setting the speed of light}
\usage{
sol(c)
eta(downstairs=TRUE)
ptm(to_natural=TRUE, change_time=TRUE)
}
\arguments{
\item{c}{Scalar, speed of light... |
context("test-get_nltt_error_function")
test_that("use", {
phylogeny <- ape::read.tree(text = "((A:1.5, B:1.5):1.5, C:3.0);")
tree_1 <- ape::read.tree(text = "((A:1.0, B:1.0):2.0, C:3.0);")
tree_2 <- ape::read.tree(text = "((A:2.0, B:2.0):1.0, C:3.0);")
lowest_error <- get_nltt_error_function()(phylogeny, c... | /tests/testthat/test-get_nltt_error_function.R | no_license | thijsjanzen/pirouette | R | false | false | 534 | r | context("test-get_nltt_error_function")
test_that("use", {
phylogeny <- ape::read.tree(text = "((A:1.5, B:1.5):1.5, C:3.0);")
tree_1 <- ape::read.tree(text = "((A:1.0, B:1.0):2.0, C:3.0);")
tree_2 <- ape::read.tree(text = "((A:2.0, B:2.0):1.0, C:3.0);")
lowest_error <- get_nltt_error_function()(phylogeny, c... |
library(dictionary) # for the "vn_admin1_year"
context("data provinces name")
test_that("correct names of provinces", {
province_name_ye <- function(df, ye) {
df <- get(df)
vect <- df[which(df$year == ye), "province", drop = TRUE]
sort(unique(vect))
}
expect_equal(
province_name_ye("chickenpox"... | /tests/testthat/test_province_name.R | no_license | FelipeJColon/gdpm | R | false | false | 1,008 | r | library(dictionary) # for the "vn_admin1_year"
context("data provinces name")
test_that("correct names of provinces", {
province_name_ye <- function(df, ye) {
df <- get(df)
vect <- df[which(df$year == ye), "province", drop = TRUE]
sort(unique(vect))
}
expect_equal(
province_name_ye("chickenpox"... |
###########Read in libraries###########
library(neonstore)
library(dplyr)
library(tidyr)
library(rgbif)
library(ggplot2)
###########Download data###########
download_loc <- paste0(neon_dir(), "/")
cover_product_id <- "DP1.10058.001"
if(!dir.exists(paste0(download_loc, cover_product_id))){
neon_download(product = co... | /plant_cover/curate_data.R | no_license | KristinaRiemer/neon-datasets | R | false | false | 2,967 | r | ###########Read in libraries###########
library(neonstore)
library(dplyr)
library(tidyr)
library(rgbif)
library(ggplot2)
###########Download data###########
download_loc <- paste0(neon_dir(), "/")
cover_product_id <- "DP1.10058.001"
if(!dir.exists(paste0(download_loc, cover_product_id))){
neon_download(product = co... |
## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
## -----------------------------------------------------------------------------
library(rhub)
## ----platforms-info-----------------------------------------------------------
... | /inst/doc/rhub.R | no_license | cran/rhub | R | false | false | 366 | r | ## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
## -----------------------------------------------------------------------------
library(rhub)
## ----platforms-info-----------------------------------------------------------
... |
#' Initiate a simulation run
#'
#' This is intended to be a drop-in replacement for [swmmr::run_swmm()].
#'
#' @param inp Path to an input file.
#' @param rpt Path to a report file (that does not yet exist or will be overwritten).
#' @param out Path to an output file (that does not yet exist or will be overwritten).
#... | /R/swmm_run.R | no_license | paleolimbot/swmm | R | false | false | 3,340 | r |
#' Initiate a simulation run
#'
#' This is intended to be a drop-in replacement for [swmmr::run_swmm()].
#'
#' @param inp Path to an input file.
#' @param rpt Path to a report file (that does not yet exist or will be overwritten).
#' @param out Path to an output file (that does not yet exist or will be overwritten).
#... |
#ANALYZING PHOTOS AND SAVING LATEST 5 PHOTOS
library(Rfacebook)
library(RCurl)
library(magrittr)
library(httr)
library(RMySQL)
library(jsonlite)
load("my_db_connection")
load("FB_ID_FILE")
load("fb_oauth_auto")
load("fb_oauth_manual")
options(stringsAsFactors = FALSE)
#FORMING QUERY FOR TOP 7 FRIENDS INCLUDING THE U... | /ANALYZING_PHOTOS_PIECHART.R | no_license | raunaqrameshporwal/Facebook-Influencer-Identification | R | false | false | 2,329 | r | #ANALYZING PHOTOS AND SAVING LATEST 5 PHOTOS
library(Rfacebook)
library(RCurl)
library(magrittr)
library(httr)
library(RMySQL)
library(jsonlite)
load("my_db_connection")
load("FB_ID_FILE")
load("fb_oauth_auto")
load("fb_oauth_manual")
options(stringsAsFactors = FALSE)
#FORMING QUERY FOR TOP 7 FRIENDS INCLUDING THE U... |
context("sim_ped")
test_that("returns a single ped file dataframe", {
expect_true(is.data.frame(sim_ped(hazard_rates = hazard(AgeSpecific_Hazards),
GRR = 10, carrier_prob = 0.002,
RVfounder = TRUE,
FamID =... | /data/genthat_extracted_code/SimRVPedigree/tests/test_sim_ped.R | no_license | surayaaramli/typeRrh | R | false | false | 2,160 | r | context("sim_ped")
test_that("returns a single ped file dataframe", {
expect_true(is.data.frame(sim_ped(hazard_rates = hazard(AgeSpecific_Hazards),
GRR = 10, carrier_prob = 0.002,
RVfounder = TRUE,
FamID =... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/survival-cch-tidiers.R
\name{glance.cch}
\alias{glance.cch}
\title{Glance at a(n) cch object}
\usage{
\method{glance}{cch}(x, ...)
}
\arguments{
\item{x}{An \code{cch} object returned from \code{\link[survival:cch]{survival::cch()}}.}
\item{... | /man/glance.cch.Rd | permissive | tidymodels/broom | R | false | true | 4,082 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/survival-cch-tidiers.R
\name{glance.cch}
\alias{glance.cch}
\title{Glance at a(n) cch object}
\usage{
\method{glance}{cch}(x, ...)
}
\arguments{
\item{x}{An \code{cch} object returned from \code{\link[survival:cch]{survival::cch()}}.}
\item{... |
#' ACAPS secondary effects of COVID-19
#'
#' The objective of the dataset is to provide information for decision makers to improve their efforts in addressing the wider effects of the COVID-19 pandemic.
#'
#' @details
#'
#' The ACAPS COVID-19 Analytical Framework, together with the data collected for the Government ... | /R/acaps_secondary_impact_data.R | permissive | RichardMN/sars2pack | R | false | false | 2,165 | r | #' ACAPS secondary effects of COVID-19
#'
#' The objective of the dataset is to provide information for decision makers to improve their efforts in addressing the wider effects of the COVID-19 pandemic.
#'
#' @details
#'
#' The ACAPS COVID-19 Analytical Framework, together with the data collected for the Government ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iot_operations.R
\name{iot_update_ca_certificate}
\alias{iot_update_ca_certificate}
\title{Updates a registered CA certificate}
\usage{
iot_update_ca_certificate(certificateId, newStatus,
newAutoRegistrationStatus, registrationConfig, remov... | /cran/paws.internet.of.things/man/iot_update_ca_certificate.Rd | permissive | paws-r/paws | R | false | true | 1,247 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/iot_operations.R
\name{iot_update_ca_certificate}
\alias{iot_update_ca_certificate}
\title{Updates a registered CA certificate}
\usage{
iot_update_ca_certificate(certificateId, newStatus,
newAutoRegistrationStatus, registrationConfig, remov... |
#' @title Two-Sample T-Test for Equality of Variability Mesures
#'
#' @description Two-sample t-test for comparing variability measures.
#' @export
#' @param x A vector specifying the first sample.
#' @param y A vector specifying the second sample.
#' @param alternative A character string specifying the alternative hyp... | /R/two.sample.var.R | no_license | cran/intervcomp | R | false | false | 6,688 | r | #' @title Two-Sample T-Test for Equality of Variability Mesures
#'
#' @description Two-sample t-test for comparing variability measures.
#' @export
#' @param x A vector specifying the first sample.
#' @param y A vector specifying the second sample.
#' @param alternative A character string specifying the alternative hyp... |
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
check.drf.grid.cars.negative <- function() {
cars <- h2o.uploadFile(locate("smalldata/junit/cars_20mpg.csv"))
seed <- sample(1:1000000, 1)
Log.info(paste0("runif seed: ",seed))
r <- h2o.runif(... | /h2o-r/tests/testdir_algos/randomforest/runit_RF_grid_cars_negative.R | permissive | h2oai/h2o-3 | R | false | false | 5,483 | r | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../../scripts/h2o-r-test-setup.R")
check.drf.grid.cars.negative <- function() {
cars <- h2o.uploadFile(locate("smalldata/junit/cars_20mpg.csv"))
seed <- sample(1:1000000, 1)
Log.info(paste0("runif seed: ",seed))
r <- h2o.runif(... |
### R code from vignette source 'embedding.Rnw'
###################################################
### code chunk number 1: embedding.Rnw:11-12
###################################################
options(width=80, digits=4, useFancyQuotes=FALSE, prompt=" ", continue=" ")
####################################... | /R/lib/car/doc/embedding.R | no_license | BRICOMATA/Bricomata_ | R | false | false | 6,295 | r | ### R code from vignette source 'embedding.Rnw'
###################################################
### code chunk number 1: embedding.Rnw:11-12
###################################################
options(width=80, digits=4, useFancyQuotes=FALSE, prompt=" ", continue=" ")
####################################... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zwater_xml_water_demand_primary.R
\name{module_water_water_demand_primary_xml}
\alias{module_water_water_demand_primary_xml}
\title{module_water_water_demand_primary_xml}
\usage{
module_water_water_demand_primary_xml(command, ...)
}
\argument... | /input/gcamdata/man/module_water_water_demand_primary_xml.Rd | permissive | JGCRI/gcam-core | R | false | true | 807 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zwater_xml_water_demand_primary.R
\name{module_water_water_demand_primary_xml}
\alias{module_water_water_demand_primary_xml}
\title{module_water_water_demand_primary_xml}
\usage{
module_water_water_demand_primary_xml(command, ...)
}
\argument... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SCESet-methods.R
\name{newSCESet}
\alias{newSCESet}
\title{Create a new SCESet object.}
\usage{
newSCESet(exprsData = NULL, countData = NULL, tpmData = NULL,
fpkmData = NULL, cpmData = NULL, phenoData = NULL, featureData = NULL,
experimen... | /man/newSCESet.Rd | permissive | dynverse/scaterlegacy | R | false | true | 4,842 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SCESet-methods.R
\name{newSCESet}
\alias{newSCESet}
\title{Create a new SCESet object.}
\usage{
newSCESet(exprsData = NULL, countData = NULL, tpmData = NULL,
fpkmData = NULL, cpmData = NULL, phenoData = NULL, featureData = NULL,
experimen... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model.comparison.R
\name{sensitivity.table}
\alias{sensitivity.table}
\title{Compute sensitivity/specificity/etc.}
\usage{
sensitivity.table(object)
}
\arguments{
\item{object}{an object that can be predicted (e.g., glm). Note the thing to be... | /man/sensitivity.table.Rd | no_license | daniloap/flexplot | R | false | true | 575 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/model.comparison.R
\name{sensitivity.table}
\alias{sensitivity.table}
\title{Compute sensitivity/specificity/etc.}
\usage{
sensitivity.table(object)
}
\arguments{
\item{object}{an object that can be predicted (e.g., glm). Note the thing to be... |
context("Testing the trawl autocorrelation functions in TrawlCorrelationFunctions.R")
test_that("Function acf_Exp works",{
expect_equal(acf_Exp(0,0.1),1)
expect_equal(acf_Exp(1,0.1),base::exp(-1*0.1))
expect_equal(acf_Exp(10,0.1),base::exp(-10*0.1))
expect_equal(acf_Exp(0,0.01),1)
expect_equal(acf_Exp... | /tests/testthat/test_TrawlCorrelationFunctions.R | no_license | cran/trawl | R | false | false | 1,312 | r | context("Testing the trawl autocorrelation functions in TrawlCorrelationFunctions.R")
test_that("Function acf_Exp works",{
expect_equal(acf_Exp(0,0.1),1)
expect_equal(acf_Exp(1,0.1),base::exp(-1*0.1))
expect_equal(acf_Exp(10,0.1),base::exp(-10*0.1))
expect_equal(acf_Exp(0,0.01),1)
expect_equal(acf_Exp... |
#automation webscrape of the greenwich new buildings site
#Run in 64 bit to do arcgis binding with armap pto
#clear all variables
rm(list=ls())
library(purrr, lib = "C:/Program Files/R/R-3.4.1/library")
library(httr, lib = "C:/Program Files/R/R-3.4.1/library")
library(rvest,lib = "C:/Program Files/R/R-3.4.1/library")... | /greenwich_webscrape_DataCakesExample.R | no_license | seanolondon/WebScrape-Greenwich | R | false | false | 4,087 | r | #automation webscrape of the greenwich new buildings site
#Run in 64 bit to do arcgis binding with armap pto
#clear all variables
rm(list=ls())
library(purrr, lib = "C:/Program Files/R/R-3.4.1/library")
library(httr, lib = "C:/Program Files/R/R-3.4.1/library")
library(rvest,lib = "C:/Program Files/R/R-3.4.1/library")... |
set.seed(100)
source('metalsimuestimationholdout2WR.R')
# metalsimuestimation('c4')
# metalsimuestimation('c5')
metalsimuestimationholdout2WR('c5',filenamess='SA150'); metalsimuestimationholdout2WR('c5',filenamess='SA180'); metalsimuestimationholdout2WR('c5',filenamess='SA210');metalsimuestimationholdout2WR... | /runestimationSIMUholdoutWRcase3.R | no_license | blue6896/ggm3 | R | false | false | 1,301 | r |
set.seed(100)
source('metalsimuestimationholdout2WR.R')
# metalsimuestimation('c4')
# metalsimuestimation('c5')
metalsimuestimationholdout2WR('c5',filenamess='SA150'); metalsimuestimationholdout2WR('c5',filenamess='SA180'); metalsimuestimationholdout2WR('c5',filenamess='SA210');metalsimuestimationholdout2WR... |
#
# code: YamdenaTechnical Report Datasets
#
# github: WWF-ConsEvidence/MPAMystery/2_Social/TechnicalReports/SBS
# --- Duplicate all code from "2_Social" onward, to maintain file structure for sourced code
#
# author: Kelly Claborn, clabornkelly@gmail.com
# created: November 2016
# modified: November 2017
#
#
# -... | /xx_Archive/3_Products/Status_trends/SBS_Koon/Koon_TechReport_Datasets_Updated.R | no_license | WWF-ConsEvidence/MPAMystery | R | false | false | 23,232 | r | #
# code: YamdenaTechnical Report Datasets
#
# github: WWF-ConsEvidence/MPAMystery/2_Social/TechnicalReports/SBS
# --- Duplicate all code from "2_Social" onward, to maintain file structure for sourced code
#
# author: Kelly Claborn, clabornkelly@gmail.com
# created: November 2016
# modified: November 2017
#
#
# -... |
#!/usr/bin/env Rscript
# Generates a random vector following a normal distribution.
# Values for 'n', 'mean', 'sd' are expected (in that order).
# reading arguments ('n', 'mean', 'sd')
args <- commandArgs(trailingOnly = TRUE)
n <- as.numeric(args[1])
mean <- as.numeric(args[2])
sd <- as.numeric(args[3])
x <- rnorm(... | /scripts/normal-vector.txt | permissive | gastonstat/tutorial-R-noninteractive | R | false | false | 346 | txt | #!/usr/bin/env Rscript
# Generates a random vector following a normal distribution.
# Values for 'n', 'mean', 'sd' are expected (in that order).
# reading arguments ('n', 'mean', 'sd')
args <- commandArgs(trailingOnly = TRUE)
n <- as.numeric(args[1])
mean <- as.numeric(args[2])
sd <- as.numeric(args[3])
x <- rnorm(... |
bddp <-
function(y, X, alpha = 1, m, S, nu, psi, a, b, nsim, L, scale = TRUE) {
yt <- y
if (scale==TRUE) {yt <- y/sd(y)}
n <- length(y)
k <- ncol(X)
p <- ns <- rep(0,L)
v <- rep(1/L,L)
v[L] <- 1
beta <- matrix(0, nrow = L, ncol = k)
aux <- try(solve(t(X)%*%X)%*%t(X)%*%yt, silent = TRUE)
if(!inherits(aux... | /R/bddp.R | no_license | cran/AROC | R | false | false | 2,383 | r | bddp <-
function(y, X, alpha = 1, m, S, nu, psi, a, b, nsim, L, scale = TRUE) {
yt <- y
if (scale==TRUE) {yt <- y/sd(y)}
n <- length(y)
k <- ncol(X)
p <- ns <- rep(0,L)
v <- rep(1/L,L)
v[L] <- 1
beta <- matrix(0, nrow = L, ncol = k)
aux <- try(solve(t(X)%*%X)%*%t(X)%*%yt, silent = TRUE)
if(!inherits(aux... |
library(IAPWS95)
### Name: sCrit
### Title: Water Critical Entropy
### Aliases: sCrit
### ** Examples
sC <- sCrit()
sC
| /data/genthat_extracted_code/IAPWS95/examples/sCrit.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 127 | r | library(IAPWS95)
### Name: sCrit
### Title: Water Critical Entropy
### Aliases: sCrit
### ** Examples
sC <- sCrit()
sC
|
testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704... | /myTAI/inst/testfiles/cpp_bootMatrix/AFL_cpp_bootMatrix/cpp_bootMatrix_valgrind_files/1615764739-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 1,803 | r | testlist <- list(AgeVector = c(-4.73074171454048e-167, 2.2262381097027e-76, -9.12990429452974e-204, 5.97087417427845e-79, 4.7390525269307e-300, 6.58361441690132e-121, 3.58611068565168e-154, -2.94504776827523e-186, 2.62380314702636e-116, -6.78950518864266e+23, 6.99695749856012e-167, 86485.676793021, 1.11271562183704... |
# mergeUSandCanadaPolygons.R
# This script gets US and canada shapefiles and merges them for easy access to
# all political borders in North America.
library(stringr)
library(maps)
library(sp)
library(rgdal)
library(maptools)
library(rgeos)
library(raster)
Canada <- getData('GADM', country='CAN', level=1)
Canada_... | /R/mergeUSandCanadaPolygons.R | permissive | stevenjoelbrey/PMFutures | R | false | false | 1,182 | r | # mergeUSandCanadaPolygons.R
# This script gets US and canada shapefiles and merges them for easy access to
# all political borders in North America.
library(stringr)
library(maps)
library(sp)
library(rgdal)
library(maptools)
library(rgeos)
library(raster)
Canada <- getData('GADM', country='CAN', level=1)
Canada_... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RenderSql.R
\name{renderSql}
\alias{renderSql}
\title{renderSql}
\usage{
renderSql(sql = "", ...)
}
\arguments{
\item{sql}{The parameterized SQL}
\item{...}{Parameter values}
}
\value{
A list containing the following elements: ... | /man/renderSql.Rd | permissive | hajarhomayouni/SqlRender | R | false | true | 1,778 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RenderSql.R
\name{renderSql}
\alias{renderSql}
\title{renderSql}
\usage{
renderSql(sql = "", ...)
}
\arguments{
\item{sql}{The parameterized SQL}
\item{...}{Parameter values}
}
\value{
A list containing the following elements: ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/progressList.R
\name{progressList}
\alias{progressList}
\title{Create a new progressList}
\usage{
progressList(inputId, label, status)
}
\arguments{
\item{inputId}{The input id of the widget}
\item{label}{A list of labels - one for each step... | /man/progressList.Rd | no_license | harveyl888/progressList | R | false | true | 456 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/progressList.R
\name{progressList}
\alias{progressList}
\title{Create a new progressList}
\usage{
progressList(inputId, label, status)
}
\arguments{
\item{inputId}{The input id of the widget}
\item{label}{A list of labels - one for each step... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.