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 |
|---|---|---|---|---|---|---|---|---|---|
#!/usr/bin/env Rscript
library(here)
library(data.table)
library(grid)
library(ggplot2)
library(ggcyto)
library(plyr)
library(flowWorkspace)
library(extrafont)
library(cowplot)
library(svglite)
library(coin)
library(COMPASS)
library(grDevices)
library(stringr)
library(tidyr)
library(ggsignif)
projectDir <- here::here(... | /scripts/6_PostCompassPlots_NonTBAgs.R | no_license | seshadrilab/ResisterCOMPASSAnalysis | R | false | false | 6,423 | r | #!/usr/bin/env Rscript
library(here)
library(data.table)
library(grid)
library(ggplot2)
library(ggcyto)
library(plyr)
library(flowWorkspace)
library(extrafont)
library(cowplot)
library(svglite)
library(coin)
library(COMPASS)
library(grDevices)
library(stringr)
library(tidyr)
library(ggsignif)
projectDir <- here::here(... |
\name{mlply}
\alias{mlply}
\title{Call function with arguments in array or data frame, returning a list.}
\usage{
mlply(.data, .fun = NULL, ..., .expand = TRUE,
.progress = "none", .parallel = FALSE)
}
\arguments{
\item{.data}{matrix or data frame to use as source of
arguments}
\item{.fun}{function to be c... | /man/mlply.Rd | no_license | vspinu/plyr | R | false | false | 1,758 | rd | \name{mlply}
\alias{mlply}
\title{Call function with arguments in array or data frame, returning a list.}
\usage{
mlply(.data, .fun = NULL, ..., .expand = TRUE,
.progress = "none", .parallel = FALSE)
}
\arguments{
\item{.data}{matrix or data frame to use as source of
arguments}
\item{.fun}{function to be c... |
if (!require("data.table")){
install.packages("data.table", repos="http://cran.rstudio.com/")
library("data.table")
}
file_name <- "/home/matt/thesis/ros_ws/src/cwru_turtlebot/src/cwru_turtlebot/odom_noise_test.csv"
odom <- fread(file_name, header=T, sep=",")
plot(odom$x, odom$y, main="Sampled Odom Particles"... | /analysis/odom_noise.R | no_license | mwswartwout/thesis | R | false | false | 400 | r | if (!require("data.table")){
install.packages("data.table", repos="http://cran.rstudio.com/")
library("data.table")
}
file_name <- "/home/matt/thesis/ros_ws/src/cwru_turtlebot/src/cwru_turtlebot/odom_noise_test.csv"
odom <- fread(file_name, header=T, sep=",")
plot(odom$x, odom$y, main="Sampled Odom Particles"... |
# REMEMBER to restart R after you modify and save this file!
# First, execute the global .Rprofile if it exists. You may configure blogdown
# options there, too, so they apply to any blogdown projects. Feel free to
# ignore this part if it sounds too complicated to you.
if (file.exists("~/.Rprofile")) {
base::sys.so... | /.Rprofile | no_license | Karuitha/karuitha_website | R | false | false | 1,049 | rprofile | # REMEMBER to restart R after you modify and save this file!
# First, execute the global .Rprofile if it exists. You may configure blogdown
# options there, too, so they apply to any blogdown projects. Feel free to
# ignore this part if it sounds too complicated to you.
if (file.exists("~/.Rprofile")) {
base::sys.so... |
# bind global variables
utils::globalVariables(c("fit", "vars", "stdbeta", "x", "ydiff", "y", "grp", ".stdresid", ".resid", ".fitted", "V1", "V2"))
#' @title Plot estimates, predictions or effects of linear models
#' @name sjp.lm
#'
#' @seealso \href{http://www.strengejacke.de/sjPlot/sjp.lm}{sjPlot manual: sjp.lm} fo... | /R/sjPlotLinreg.R | no_license | kjklauder/sjPlot | R | false | false | 46,719 | r | # bind global variables
utils::globalVariables(c("fit", "vars", "stdbeta", "x", "ydiff", "y", "grp", ".stdresid", ".resid", ".fitted", "V1", "V2"))
#' @title Plot estimates, predictions or effects of linear models
#' @name sjp.lm
#'
#' @seealso \href{http://www.strengejacke.de/sjPlot/sjp.lm}{sjPlot manual: sjp.lm} fo... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(matObj = matrix()) #Function taking a square matrix
{
matInvserse = NULL
setValues = function(matEnv) #Set 'in - environment' values for the ... | /cachematrix.R | no_license | rowanmcnitt/ProgrammingAssignment2 | R | false | false | 1,350 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(matObj = matrix()) #Function taking a square matrix
{
matInvserse = NULL
setValues = function(matEnv) #Set 'in - environment' values for the ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/r_truncated_multivariate_normal.R
\name{r_truncated_multivariate_normal}
\alias{r_truncated_multivariate_normal}
\title{Simulate from a truncated multivariate normal distribution}
\usage{
r_truncated_multivariate_normal(
n = 1,
alpha,
b... | /man/r_truncated_multivariate_normal.Rd | no_license | bomarkussen/probit | R | false | true | 1,439 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/r_truncated_multivariate_normal.R
\name{r_truncated_multivariate_normal}
\alias{r_truncated_multivariate_normal}
\title{Simulate from a truncated multivariate normal distribution}
\usage{
r_truncated_multivariate_normal(
n = 1,
alpha,
b... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/UpdateWaterBudget.R
\name{UpdateWaterBudget}
\alias{UpdateWaterBudget}
\title{Update Water Budget}
\usage{
UpdateWaterBudget(
dir.run,
id,
qa.tables = c("none", "si", "english"),
ss.interval = NULL,
iwelcb = ifelse(interactive(), 50... | /man/UpdateWaterBudget.Rd | permissive | jfisher-usgs/wrv | R | false | true | 8,264 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/UpdateWaterBudget.R
\name{UpdateWaterBudget}
\alias{UpdateWaterBudget}
\title{Update Water Budget}
\usage{
UpdateWaterBudget(
dir.run,
id,
qa.tables = c("none", "si", "english"),
ss.interval = NULL,
iwelcb = ifelse(interactive(), 50... |
library(shiny)
library(ggplot2)
shinyServer(
function(input, output) {
output$plot1<-renderPlot({
mns = NULL
mean=NULL
var=NULL
#extract input values
lambda <- input$lambda
n <- input$n
sim_num <- input$sim_num
set.seed(500)
#create expone... | /server.R | no_license | superpapper/Developing-Data-Products | R | false | false | 1,802 | r | library(shiny)
library(ggplot2)
shinyServer(
function(input, output) {
output$plot1<-renderPlot({
mns = NULL
mean=NULL
var=NULL
#extract input values
lambda <- input$lambda
n <- input$n
sim_num <- input$sim_num
set.seed(500)
#create expone... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/captr.R
\name{captr_GET}
\alias{captr_GET}
\title{GET}
\usage{
captr_GET(path = "", query = NULL, ...)
}
\arguments{
\item{path}{path to specific API request URL}
\item{query}{query list}
\item{\dots}{Additional arguments passe... | /man/captr_GET.Rd | permissive | cran/captr | R | false | true | 410 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/captr.R
\name{captr_GET}
\alias{captr_GET}
\title{GET}
\usage{
captr_GET(path = "", query = NULL, ...)
}
\arguments{
\item{path}{path to specific API request URL}
\item{query}{query list}
\item{\dots}{Additional arguments passe... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{use_data}
\alias{use_data}
\title{Use data in a package.}
\usage{
use_data(..., pkg = ".", internal = FALSE, overwrite = FALSE,
compress = "bzip2")
}
\arguments{
\item{...}{Unquoted names of existing objects to save.}
\item{pkg}{Package where to store data. ... | /man/use_data.Rd | no_license | stevensurgnier/devtools | R | false | false | 1,714 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{use_data}
\alias{use_data}
\title{Use data in a package.}
\usage{
use_data(..., pkg = ".", internal = FALSE, overwrite = FALSE,
compress = "bzip2")
}
\arguments{
\item{...}{Unquoted names of existing objects to save.}
\item{pkg}{Package where to store data. ... |
testlist <- list(x = c(5.21813059839958e+279, -2.94449594579902e+47, NaN, NaN, 4.82164143450209e+279, -1.03749859902717e-176, -3.55667588114786e-136, -2.88981979862237e+48, -2.94449594579902e+47, -3.62182293347261e+307, -7.72435253122699e-84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0... | /blorr/inst/testfiles/blr_pairs_cpp/libFuzzer_blr_pairs_cpp/blr_pairs_cpp_valgrind_files/1609956261-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 403 | r | testlist <- list(x = c(5.21813059839958e+279, -2.94449594579902e+47, NaN, NaN, 4.82164143450209e+279, -1.03749859902717e-176, -3.55667588114786e-136, -2.88981979862237e+48, -2.94449594579902e+47, -3.62182293347261e+307, -7.72435253122699e-84, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0... |
# CIGARETTE USAGE
# Profiles of interest:
# 1) Smokers with high risk behavior
# 2) Smoker's daily cigarette consumption
# 3) Smoker initiation age
# a) first-time use
# b) first-time of daily use
library(dplyr)
library(tidyr)
View(cigarettes)
cig <- cigarettes %>% mutate_each(funs(as.numeric(substr(.,2,2))))
#Adding ... | /source/cigarette.R | no_license | haridecoded/DigitalPatch | R | false | false | 2,442 | r | # CIGARETTE USAGE
# Profiles of interest:
# 1) Smokers with high risk behavior
# 2) Smoker's daily cigarette consumption
# 3) Smoker initiation age
# a) first-time use
# b) first-time of daily use
library(dplyr)
library(tidyr)
View(cigarettes)
cig <- cigarettes %>% mutate_each(funs(as.numeric(substr(.,2,2))))
#Adding ... |
### The data used is the sample dataset "simul_full.csv"###
##ICC's can be calculated using the following command "ICCbare" from the ICC package.
We need to first install it, then run the package before we can use it. The ICCbare command
provides the intraclass correlation between a variable and the cluster. In... | /Calculating_ICC.R | no_license | jarethodges/Duke_TIP | R | false | false | 2,148 | r | ### The data used is the sample dataset "simul_full.csv"###
##ICC's can be calculated using the following command "ICCbare" from the ICC package.
We need to first install it, then run the package before we can use it. The ICCbare command
provides the intraclass correlation between a variable and the cluster. In... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dfSummary.R
\name{format_number}
\alias{format_number}
\title{format_number}
\usage{
format_number(x, round.digits, ...)
}
\arguments{
\item{x}{A numerical value to be formatted.}
\item{round.digits}{Numerical. Number of decimals to show. Us... | /man/format_number.Rd | no_license | dcomtois/summarytools | R | false | true | 870 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dfSummary.R
\name{format_number}
\alias{format_number}
\title{format_number}
\usage{
format_number(x, round.digits, ...)
}
\arguments{
\item{x}{A numerical value to be formatted.}
\item{round.digits}{Numerical. Number of decimals to show. Us... |
#' Update a related item
#'
#' @export
#'
#' @inheritParams related_create
#' @param id (character) id of related item to update. This should be an
#' alphanumeric string. Required.
#' @examples \dontrun{
#' # Setup
#' ckanr_setup(url = "https://demo.ckan.org/", key = getOption("ckan_demo_key"))
#'
#' # create a packag... | /R/related_update.R | permissive | HawaDawa/ckanr | R | false | false | 1,238 | r | #' Update a related item
#'
#' @export
#'
#' @inheritParams related_create
#' @param id (character) id of related item to update. This should be an
#' alphanumeric string. Required.
#' @examples \dontrun{
#' # Setup
#' ckanr_setup(url = "https://demo.ckan.org/", key = getOption("ckan_demo_key"))
#'
#' # create a packag... |
#' Processx connections
#'
#' These functions are currently experimental and will change
#' in the future. Note that processx connections are _not_
#' compatible with R's built-in connection system.
#'
#' `conn_create_fd()` creates a connection from a file descriptor.
#'
#' @param fd Integer scalar, a Unix file descr... | /R/connections.R | permissive | takewiki/processx | R | false | false | 7,960 | r |
#' Processx connections
#'
#' These functions are currently experimental and will change
#' in the future. Note that processx connections are _not_
#' compatible with R's built-in connection system.
#'
#' `conn_create_fd()` creates a connection from a file descriptor.
#'
#' @param fd Integer scalar, a Unix file descr... |
source("readData.R")
source("plots.R")
par(mfcol=c(2,2), ps = 12)
#subplot 1
plot2()
#subplot 2
plot3()
#subplot 3
with(data, plot(DateTime, Voltage, type="n", xlab = "datetime", ylab = "Voltage"))
with(data, lines(DateTime, Voltage))
#subplot 4
with(data, plot(DateTime, Global_reactive_power, type="n", xlab = "da... | /plot4.R | no_license | Guta000/ExData_Plotting1 | R | false | false | 541 | r | source("readData.R")
source("plots.R")
par(mfcol=c(2,2), ps = 12)
#subplot 1
plot2()
#subplot 2
plot3()
#subplot 3
with(data, plot(DateTime, Voltage, type="n", xlab = "datetime", ylab = "Voltage"))
with(data, lines(DateTime, Voltage))
#subplot 4
with(data, plot(DateTime, Global_reactive_power, type="n", xlab = "da... |
/PCoA_MaxN_FishCommunity.R | no_license | Sara-FH/BRUVS_ETP | R | false | false | 15,319 | r | ||
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/idr.R
\name{calculateIDR}
\alias{calculateIDR}
\title{Calculate irreproducibly discovery rate}
\usage{
calculateIDR(chipSamples, inputSamples, org, assembly, version,
readLength = NULL, shiftRange = c(-500, 1500), binSize = 5,
cro... | /man/calculateIDR.Rd | no_license | ua0/encodeChIPqc | R | false | false | 3,496 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/idr.R
\name{calculateIDR}
\alias{calculateIDR}
\title{Calculate irreproducibly discovery rate}
\usage{
calculateIDR(chipSamples, inputSamples, org, assembly, version,
readLength = NULL, shiftRange = c(-500, 1500), binSize = 5,
cro... |
\name{MGRASTAPI}
\alias{MGRASTAPI}
\alias{.MGRAST}
\alias{build.MGRAST}
\alias{load.MGRAST}
\title{
Local Representation of MG-RAST API
}
\description{
The session copy of the documentation tree of the MG-RAST API, and tools for
dynamic update.
}
\usage{
.MGRAST
load.MGRAST(ff=API.file())
build.MGRAST(ff=API.filenam... | /man/MGRASTAPI.Rd | no_license | cran/MGRASTer | R | false | false | 2,127 | rd | \name{MGRASTAPI}
\alias{MGRASTAPI}
\alias{.MGRAST}
\alias{build.MGRAST}
\alias{load.MGRAST}
\title{
Local Representation of MG-RAST API
}
\description{
The session copy of the documentation tree of the MG-RAST API, and tools for
dynamic update.
}
\usage{
.MGRAST
load.MGRAST(ff=API.file())
build.MGRAST(ff=API.filenam... |
library(glmmTMB)
library(maps)
library(raster)
library(plotrix)
library(emmeans)
library(boot)
library(MonoPoly)
#setwd('path_to_your_repository')
dat<-read.csv('data/combined_africa_olfac.csv')
dat<-dat[!is.na(dat$N),]
dat$pref<-(dat$N_Hu-dat$N_Alt)/(dat$N_Hu+dat$N_Alt)
dat$NR<-(dat$N_Hu+dat$N_Alt)
dat$N0<-dat$N-dat... | /R_scripts/Figure1_2.R | no_license | noahrose/aaeg_adaptation_human_hosts | R | false | false | 26,419 | r | library(glmmTMB)
library(maps)
library(raster)
library(plotrix)
library(emmeans)
library(boot)
library(MonoPoly)
#setwd('path_to_your_repository')
dat<-read.csv('data/combined_africa_olfac.csv')
dat<-dat[!is.na(dat$N),]
dat$pref<-(dat$N_Hu-dat$N_Alt)/(dat$N_Hu+dat$N_Alt)
dat$NR<-(dat$N_Hu+dat$N_Alt)
dat$N0<-dat$N-dat... |
render_exercise <- function(exercise_df, tmp = TRUE){
# compute parameters
tmp_rmd <- tempfile(fileext = ".Rmd")
# file.copy("preamble.tex", "/tmp/RtmpjU0wYL/preamble.tex")
# build source document
writeLines(glue::glue('---
output:
pdf_document:
highlight: default
geometry: "left=1cm, right=1cm, top=1c... | /fun_render_exercise.R | no_license | henningsway/advanced_r_solutions_BOT | R | false | false | 1,452 | r | render_exercise <- function(exercise_df, tmp = TRUE){
# compute parameters
tmp_rmd <- tempfile(fileext = ".Rmd")
# file.copy("preamble.tex", "/tmp/RtmpjU0wYL/preamble.tex")
# build source document
writeLines(glue::glue('---
output:
pdf_document:
highlight: default
geometry: "left=1cm, right=1cm, top=1c... |
# Make a sequence of 100 x-values going from -4*sigma to 4*sigma
xvals <- seq(from = -4 * sigma, to = 4 * sigma, length.out = 100)
# Compute the density of a N(mu, sigma^2) distribution at xvals
ndens <- dnorm(xvals, mean = mu, sd = sigma)
# Plot ndens against xvals
plot(xvals, ndens, type = "l")
# Compute the 99% V... | /quantative.risk/04 - value.at.risk/01 - risk.factors.R | no_license | aliawaischeema/DataCamp | R | false | false | 1,422 | r | # Make a sequence of 100 x-values going from -4*sigma to 4*sigma
xvals <- seq(from = -4 * sigma, to = 4 * sigma, length.out = 100)
# Compute the density of a N(mu, sigma^2) distribution at xvals
ndens <- dnorm(xvals, mean = mu, sd = sigma)
# Plot ndens against xvals
plot(xvals, ndens, type = "l")
# Compute the 99% V... |
Y<-read.csv(file.choose(),sep=',')
summary(Y)
#remove lables
dataY<-Y[c(2:55)] # here I have OTUs in rows and samples in colums
summary(dataY)
#transpose
tY<-t(dataY) # I will have here OTUs in colums and samples in row. This is how you should have your file to start with, but check how it goes with the labels... | /16S_amplicon/Script final bo de S, H i Xtemp_RP_4152.r | no_license | RJ333/R_scripts | R | false | false | 2,938 | r | Y<-read.csv(file.choose(),sep=',')
summary(Y)
#remove lables
dataY<-Y[c(2:55)] # here I have OTUs in rows and samples in colums
summary(dataY)
#transpose
tY<-t(dataY) # I will have here OTUs in colums and samples in row. This is how you should have your file to start with, but check how it goes with the labels... |
\name{printParam2}
\alias{printParam2}
\alias{removeParam2}
\alias{replaceParam2}
\alias{renameParam2}
\alias{appendParam2}
\title{
Accessories function to modify the Command-line Version 2
}
\description{
Accessories function to modify the Command-line Version 2
}
\usage{
printParam2(sysargs, base = FALSE, args = FAL... | /man/ParamFiles2.Rd | no_license | tgirke/systemPipeR | R | false | false | 5,578 | rd | \name{printParam2}
\alias{printParam2}
\alias{removeParam2}
\alias{replaceParam2}
\alias{renameParam2}
\alias{appendParam2}
\title{
Accessories function to modify the Command-line Version 2
}
\description{
Accessories function to modify the Command-line Version 2
}
\usage{
printParam2(sysargs, base = FALSE, args = FAL... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ApplyLongitudinalSet.R
\name{ApplyLongitudinalSet}
\alias{ApplyLongitudinalSet}
\title{Forming the Longitudinal Data Set}
\usage{
ApplyLongitudinalSet(Data)
}
\arguments{
\item{Data}{A data chunk that must have an org identifier and a timesta... | /man/ApplyLongitudinalSet.Rd | no_license | duartegomes/SamplePackage | R | false | true | 1,153 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ApplyLongitudinalSet.R
\name{ApplyLongitudinalSet}
\alias{ApplyLongitudinalSet}
\title{Forming the Longitudinal Data Set}
\usage{
ApplyLongitudinalSet(Data)
}
\arguments{
\item{Data}{A data chunk that must have an org identifier and a timesta... |
#No tests since this is an exported class that is never directly called.
| /tests/testthat/test-epiModel_Class.R | permissive | mrc-ide/excalibur | R | false | false | 73 | r | #No tests since this is an exported class that is never directly called.
|
#######################################################
# 2018-01-29 - by Alex Gorbach
# DB Datensatz Carsharing - Flinkster
# Buchungen Carsharing
# http://data.deutschebahn.com/dataset/data-flinkster
#######################################################
# Function: Saving the best predictors
source("my_... | /30_function.R | no_license | asiebel1/my_funktion | R | false | false | 1,236 | r | #######################################################
# 2018-01-29 - by Alex Gorbach
# DB Datensatz Carsharing - Flinkster
# Buchungen Carsharing
# http://data.deutschebahn.com/dataset/data-flinkster
#######################################################
# Function: Saving the best predictors
source("my_... |
#Evan Newell 2015, Ming 2016, Etienne Becht 2016, Evan 2017,2018
## PARAMETERS TO EDIT:
#Choose functions to run
RunAlgorithms = T
RunMeaningPlot = T
RunFileHeatplots = T
#IF TRUE ... In progress
DoClusters=T
clustParam="Phenograph" ## e.g., "Phenograph"
#Main Parameters
sourceFcsFolder = "WongTraffick... | /Wong/RunFCStSNEone TraffickTNK 10k.R | permissive | QichenFU/DR_benchmark | R | false | false | 5,025 | r | #Evan Newell 2015, Ming 2016, Etienne Becht 2016, Evan 2017,2018
## PARAMETERS TO EDIT:
#Choose functions to run
RunAlgorithms = T
RunMeaningPlot = T
RunFileHeatplots = T
#IF TRUE ... In progress
DoClusters=T
clustParam="Phenograph" ## e.g., "Phenograph"
#Main Parameters
sourceFcsFolder = "WongTraffick... |
library(nlme)
library(foreign)
library(psych)
library(mgcv)
library(reshape)
#create CV table
cvtable <- data.frame(type=character(17), r2000=numeric(17),r2001=numeric(17),r2002=numeric(17),r2003=numeric(17),r2004=numeric(17),r2005=numeric(17),r2006=numeric(17),r2007=numeric(17),r2008=numeric(17))
cvtable... | /Uni/Projects/code/P001_NE_PM_MODELS/c020_mod1_LPM.r | no_license | zeltak/org | R | false | false | 40,796 | r | library(nlme)
library(foreign)
library(psych)
library(mgcv)
library(reshape)
#create CV table
cvtable <- data.frame(type=character(17), r2000=numeric(17),r2001=numeric(17),r2002=numeric(17),r2003=numeric(17),r2004=numeric(17),r2005=numeric(17),r2006=numeric(17),r2007=numeric(17),r2008=numeric(17))
cvtable... |
#################################################
# Joint Space Map #
#################################################
library("shiny")
#library("foreign")
shinyUI(fluidPage(
tags$head(includeScript("google_analytics.js")),
# Header:
titlePanel(title=div(img(src="logo.png",al... | /ui.R | no_license | sudhir-voleti/jsm-shinyapp | R | false | false | 5,071 | r | #################################################
# Joint Space Map #
#################################################
library("shiny")
#library("foreign")
shinyUI(fluidPage(
tags$head(includeScript("google_analytics.js")),
# Header:
titlePanel(title=div(img(src="logo.png",al... |
library(GenEst)
### Name: averageSS
### Title: Tabulate an average search schedule from a multi-unit SS data
### table
### Aliases: averageSS
### ** Examples
data(mock)
avgSS <- averageSS(mock$SS)
| /data/genthat_extracted_code/GenEst/examples/averageSS.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 211 | r | library(GenEst)
### Name: averageSS
### Title: Tabulate an average search schedule from a multi-unit SS data
### table
### Aliases: averageSS
### ** Examples
data(mock)
avgSS <- averageSS(mock$SS)
|
#http://www.bioconductor.org/packages/release/bioc/vignettes/Guitar/inst/doc/Guitar-Overview.R
library(Guitar)
stBedFiles=list(system.file("extdata","ipcom_col_vs_ipcom_ww.hyper.bed.bed", package="Guitar"))
txdb=makeTxDbFromGFF("/home/l/backup1/refgenome/Arabidopsis/Arabidopsis_thaliana.TAIR10.42.gff3")
#Ara_transc... | /metagene_all.R | no_license | joybio/custom_scripts | R | false | false | 669 | r | #http://www.bioconductor.org/packages/release/bioc/vignettes/Guitar/inst/doc/Guitar-Overview.R
library(Guitar)
stBedFiles=list(system.file("extdata","ipcom_col_vs_ipcom_ww.hyper.bed.bed", package="Guitar"))
txdb=makeTxDbFromGFF("/home/l/backup1/refgenome/Arabidopsis/Arabidopsis_thaliana.TAIR10.42.gff3")
#Ara_transc... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get-index-filename.R
\name{get_index_filename}
\alias{get_index_filename}
\title{Extract the index filename from the YAML file (usually index.Rmd)}
\usage{
get_index_filename(yaml_fn = "_bookdown.yml", verbose = FALSE)
}
\arguments{
\item{yam... | /man/get_index_filename.Rd | permissive | pbs-assess/csasdown | R | false | true | 789 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get-index-filename.R
\name{get_index_filename}
\alias{get_index_filename}
\title{Extract the index filename from the YAML file (usually index.Rmd)}
\usage{
get_index_filename(yaml_fn = "_bookdown.yml", verbose = FALSE)
}
\arguments{
\item{yam... |
intcox.breslow <-
function (formula, data, covar) # Breslow-Estimator
{
lokal.cens <- data$cens/3
formula.covar <- formula[[3]]
formula <- as.formula(Surv(data$mix, lokal.cens) ~ .)
formula[[3]] <- formula.covar
fit <- coxph(formula, data)$coef # Cox-regression coefficient
... | /intcox/R/intcox.breslow.R | no_license | ingted/R-Examples | R | false | false | 651 | r | intcox.breslow <-
function (formula, data, covar) # Breslow-Estimator
{
lokal.cens <- data$cens/3
formula.covar <- formula[[3]]
formula <- as.formula(Surv(data$mix, lokal.cens) ~ .)
formula[[3]] <- formula.covar
fit <- coxph(formula, data)$coef # Cox-regression coefficient
... |
#' Harmonic analysis for time series
#'
#' Fits harmonic regression (\code{harmR}) model, that is, computes amplitudes and phase angles
#' in the typical harmonic regression framework. Based on these estimates a harmonic regression
#' function is fitted. Also fits \code{hants}, a popular iterative algorithm that com... | /R/haRmonics.R | no_license | inder-tg/geoTS | R | false | false | 8,708 | r | #' Harmonic analysis for time series
#'
#' Fits harmonic regression (\code{harmR}) model, that is, computes amplitudes and phase angles
#' in the typical harmonic regression framework. Based on these estimates a harmonic regression
#' function is fitted. Also fits \code{hants}, a popular iterative algorithm that com... |
#Basic Assumption
#The R code in run_analysis. It is assumed that that the zip file available at https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip is downloaded and extracted in the R Home Directory.
#Libraries Used :
#The libraries used in this operation are data.table and dplyr.... | /run_analysis.R | no_license | sambitda/Getting-and-Cleaning-Data-Course-Project | R | false | false | 14,843 | r | #Basic Assumption
#The R code in run_analysis. It is assumed that that the zip file available at https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip is downloaded and extracted in the R Home Directory.
#Libraries Used :
#The libraries used in this operation are data.table and dplyr.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotting.R
\name{plotMultipleCal}
\alias{plotMultipleCal}
\title{Plot a calibration plot for multiple models}
\usage{
plotMultipleCal(runPlpList, names, type = "test", ncol = 2)
}
\arguments{
\item{runPlpList}{An object of class 'runPlp' or l... | /man/plotMultipleCal.Rd | permissive | ABMI/PredictionComparison | R | false | true | 945 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotting.R
\name{plotMultipleCal}
\alias{plotMultipleCal}
\title{Plot a calibration plot for multiple models}
\usage{
plotMultipleCal(runPlpList, names, type = "test", ncol = 2)
}
\arguments{
\item{runPlpList}{An object of class 'runPlp' or l... |
\name{filter.site}
\alias{filter.site}
\title{
Selection of visual meteor data by observing site
}
\description{
Selects data for a given visual meteor dataset and specified observing site.
}
\usage{
filter.site(data, site)
}
\arguments{
\item{data}{
data frame consisting of visual meteor data (rate or m... | /man/filter.site.Rd | no_license | arturochian/MetFns | R | false | false | 1,287 | rd | \name{filter.site}
\alias{filter.site}
\title{
Selection of visual meteor data by observing site
}
\description{
Selects data for a given visual meteor dataset and specified observing site.
}
\usage{
filter.site(data, site)
}
\arguments{
\item{data}{
data frame consisting of visual meteor data (rate or m... |
#' S2 dataset
#'
#' This dataset contains 5000 two-dimensional vectors grouped in 15 Gaussian clusters.
#'
#' @docType data
#'
#' @usage data(s2)
#'
#' @format A matrix with 5000 rows and two columns.
#'
#' @keywords datasets
#'
#' @references
#' P. Franti and O. Virmajoki. Iterative shrinking method for clustering pro... | /R/s2-data.R | no_license | cran/evclust | R | false | false | 882 | r | #' S2 dataset
#'
#' This dataset contains 5000 two-dimensional vectors grouped in 15 Gaussian clusters.
#'
#' @docType data
#'
#' @usage data(s2)
#'
#' @format A matrix with 5000 rows and two columns.
#'
#' @keywords datasets
#'
#' @references
#' P. Franti and O. Virmajoki. Iterative shrinking method for clustering pro... |
# Read this data set into R and report the sum of the numbers in the fourth of the nine columns.
#
# https://d396qusza40orc.cloudfront.net/getdata%2Fwksst8110.for
#
# Original source of the data: http://www.cpc.ncep.noaa.gov/data/indices/wksst8110.for
#
# (Hint this is a fixed width file format)
require(data.tab... | /Reading .for Files.R | no_license | sebollin/GettingAndCleaningData2015 | R | false | false | 680 | r | # Read this data set into R and report the sum of the numbers in the fourth of the nine columns.
#
# https://d396qusza40orc.cloudfront.net/getdata%2Fwksst8110.for
#
# Original source of the data: http://www.cpc.ncep.noaa.gov/data/indices/wksst8110.for
#
# (Hint this is a fixed width file format)
require(data.tab... |
\name{word_list}
\alias{word_list}
\title{Raw Word Lists/Frequency Counts}
\usage{
word_list(text.var, grouping.var = NULL,
stopwords = NULL, alphabetical = FALSE, cut.n = 20,
cap = TRUE, cap.list = NULL, cap.I = TRUE,
rm.bracket = TRUE, char.keep = NULL,
apostrophe.remove = FALSE, ...)
}
\arguments{
... | /man/word_list.Rd | no_license | trinker/qdap2 | R | false | false | 2,439 | rd | \name{word_list}
\alias{word_list}
\title{Raw Word Lists/Frequency Counts}
\usage{
word_list(text.var, grouping.var = NULL,
stopwords = NULL, alphabetical = FALSE, cut.n = 20,
cap = TRUE, cap.list = NULL, cap.I = TRUE,
rm.bracket = TRUE, char.keep = NULL,
apostrophe.remove = FALSE, ...)
}
\arguments{
... |
## ----setup, include = FALSE---------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
library(RJafroc)
library(ggplot2)
## -----------------------------------------------------------------------------
lesDistr <- c(0.7, 0.2, 0.1)
frocNhData <- DfExtractDataset(datase... | /vignettes/Ch19Vig2FrocSampleSize.R | no_license | pwep/RJafroc | R | false | false | 2,870 | r | ## ----setup, include = FALSE---------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
library(RJafroc)
library(ggplot2)
## -----------------------------------------------------------------------------
lesDistr <- c(0.7, 0.2, 0.1)
frocNhData <- DfExtractDataset(datase... |
# Install and load packages
package_names <- c("survey","dplyr","foreign","devtools")
lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x))
lapply(package_names, require, character.only=T)
install_github("e-mitchell/meps_r_pkg/MEPS")
library(MEPS)
options(survey.lonely.ps... | /mepstrends/hc_care/json/code/r/pctPOP__sex__adult_time__.r | permissive | RandomCriticalAnalysis/MEPS-summary-tables | R | false | false | 1,380 | r | # Install and load packages
package_names <- c("survey","dplyr","foreign","devtools")
lapply(package_names, function(x) if(!x %in% installed.packages()) install.packages(x))
lapply(package_names, require, character.only=T)
install_github("e-mitchell/meps_r_pkg/MEPS")
library(MEPS)
options(survey.lonely.ps... |
areaName <- c("Madagascar_east", "Madagascar_west", "Africa_west", "Africa_central", "Africa_south_east",
"America_central", "America_south_north", "America_south_south",
"Asia_west", "Asia_central_east", "Asia_south", "Asia_island")
library(RColorBrewer)
colourArea <- brewer.pal(n = 1... | /Scripts/OLD/Rscript.R | no_license | benjaminrobira/Meta_analysis_cognition_primates | R | false | false | 172,955 | r |
areaName <- c("Madagascar_east", "Madagascar_west", "Africa_west", "Africa_central", "Africa_south_east",
"America_central", "America_south_north", "America_south_south",
"Asia_west", "Asia_central_east", "Asia_south", "Asia_island")
library(RColorBrewer)
colourArea <- brewer.pal(n = 1... |
\name{bfrmModel-class}
\Rdversion{1.1}
\docType{class}
\alias{bfrmModel}
\alias{bfrmModel-class}
\title{Class \code{"bfrmModel"}}
\description{
Class is the created from the call to the \code{bfrm} or \code{evolve} methods and is included as an output in \code{bfrmResult}
}
\section{Objects from the Class}{
Obje... | /man/bfrmModel-class.Rd | no_license | Sage-Bionetworks/bfrm | R | false | false | 1,290 | rd | \name{bfrmModel-class}
\Rdversion{1.1}
\docType{class}
\alias{bfrmModel}
\alias{bfrmModel-class}
\title{Class \code{"bfrmModel"}}
\description{
Class is the created from the call to the \code{bfrm} or \code{evolve} methods and is included as an output in \code{bfrmResult}
}
\section{Objects from the Class}{
Obje... |
# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.1
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
## Generated via the command line invocation:
## swig -c++ -Isrc -module ChemmineR -o src/r_wrap.cc -r -outdir R s... | /R/ChemmineR.R | no_license | girke-lab/ChemmineR | R | false | false | 9,530 | r | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.1
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
## Generated via the command line invocation:
## swig -c++ -Isrc -module ChemmineR -o src/r_wrap.cc -r -outdir R s... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 3813
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 3813
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query44_query15_1344/query44_query15_1344.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 708 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 3813
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 3813
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q... |
#
# ESEUR-config.r, 23 Mar 20
# Assume the current directory unless told otherwise
ESEUR_dir=Sys.getenv("ESEUR_dir")
if (ESEUR_dir == "")
ESEUR_dir=getwd()
ESEUR_dir=paste0(ESEUR_dir, "/")
library("colorspace")
# Outer Margin Area, default: par(oma=c(3, 3, 3, 3))
# Figure Margin, default: par(mar=c(5, 4, 4, 2)+... | /ESEUR_config.r | no_license | sebastianBIanalytics/ESEUR-code-data | R | false | false | 3,327 | r | #
# ESEUR-config.r, 23 Mar 20
# Assume the current directory unless told otherwise
ESEUR_dir=Sys.getenv("ESEUR_dir")
if (ESEUR_dir == "")
ESEUR_dir=getwd()
ESEUR_dir=paste0(ESEUR_dir, "/")
library("colorspace")
# Outer Margin Area, default: par(oma=c(3, 3, 3, 3))
# Figure Margin, default: par(mar=c(5, 4, 4, 2)+... |
#This function reads in multiple files, cleans the data, merges the data, and
#then groups the data to calculate the mean of the various fields
run_analysis <- function(){
#Read the files
activities <- read.csv("activity_labels.txt", sep = "", header = FALSE)
features <- read.csv("features.txt", sep = "", header = FAL... | /run_analysis.R | no_license | kbohara/Getting-and-Cleaning-Data | R | false | false | 1,869 | r | #This function reads in multiple files, cleans the data, merges the data, and
#then groups the data to calculate the mean of the various fields
run_analysis <- function(){
#Read the files
activities <- read.csv("activity_labels.txt", sep = "", header = FALSE)
features <- read.csv("features.txt", sep = "", header = FAL... |
## ----include=FALSE-------------------------------------------------------
library(knitr)
render_sweave()
opts_chunk$set(engine='R', tidy=FALSE)
options(scipen = 1, digits = 3)
## ----preliminaries, echo=FALSE, results='hide'----------------------
options(prompt = "R> ", continue = "+ ", width = 70, useFancyQuotes =... | /inst/doc/article.R | no_license | janrajczak/scoringRules | R | false | false | 9,857 | r | ## ----include=FALSE-------------------------------------------------------
library(knitr)
render_sweave()
opts_chunk$set(engine='R', tidy=FALSE)
options(scipen = 1, digits = 3)
## ----preliminaries, echo=FALSE, results='hide'----------------------
options(prompt = "R> ", continue = "+ ", width = 70, useFancyQuotes =... |
###################################################
## Testing basic model
###################################################
library(FLBEIA)
## Load in all files
lapply(list.files(file.path("..", "model_inputs"), full.names = TRUE), load, .GlobalEnv)
## Change the effort share model
fleets.ctrl[['IE_Ot... | /model/code/05_Run_FLBEIA_Gravity.R | no_license | pdolder/FleetDyn_FLBEIA | R | false | false | 2,126 | r | ###################################################
## Testing basic model
###################################################
library(FLBEIA)
## Load in all files
lapply(list.files(file.path("..", "model_inputs"), full.names = TRUE), load, .GlobalEnv)
## Change the effort share model
fleets.ctrl[['IE_Ot... |
#' Read the weather data
#'
#' @param project_path String. Path to the TxtInOut folder of the SWAT project
#' @param version String that indicates what SWAT version the project is.
#' @param t0 date time object storing initial start of initialization
#'
#' @keywords internal
#'
#'
read_hru_attributes <- function(projec... | /R/read_hru_attributes.R | no_license | chrisschuerz/SWATfarmR | R | false | false | 9,033 | r | #' Read the weather data
#'
#' @param project_path String. Path to the TxtInOut folder of the SWAT project
#' @param version String that indicates what SWAT version the project is.
#' @param t0 date time object storing initial start of initialization
#'
#' @keywords internal
#'
#'
read_hru_attributes <- function(projec... |
titanic = read.csv("train.csv")
#Predict that the people with a higher probability of survival included
#people who were younger, female, and of a higher class.
titanic = titanic[c(1,2,3,5,6)]
titanic = na.omit(titanic)
titanic_regression = glm(Survived~Pclass+Sex+Age, data = titanic, family = "binomial")
summary... | /HW2Titanic.R | no_license | alejandrayllon/HW2Titanic | R | false | false | 1,859 | r | titanic = read.csv("train.csv")
#Predict that the people with a higher probability of survival included
#people who were younger, female, and of a higher class.
titanic = titanic[c(1,2,3,5,6)]
titanic = na.omit(titanic)
titanic_regression = glm(Survived~Pclass+Sex+Age, data = titanic, family = "binomial")
summary... |
# Make map showing all storms that pass through the region. Facet by year.
library(maps)
library(ggplot2)
library(sf)
global_ar <- read.csv('Data/globalAR_1980-2019.csv', header=TRUE) #read AR global data (csv file modified from Bin Guan's txt file)
colnames(global_ar)[10] = "Equatorwd_end_lat" #correct mispelled colu... | /Code/2_ar_map.R | no_license | PRitt842/CADeltav2 | R | false | false | 1,333 | r | # Make map showing all storms that pass through the region. Facet by year.
library(maps)
library(ggplot2)
library(sf)
global_ar <- read.csv('Data/globalAR_1980-2019.csv', header=TRUE) #read AR global data (csv file modified from Bin Guan's txt file)
colnames(global_ar)[10] = "Equatorwd_end_lat" #correct mispelled colu... |
library(tidyverse)
library(stringr)
test <- "Arunachalam, Escovar, Hansen, & Waxman, (2013) - 1a"
str_count(test,",")
abbreviate_label <- function(original_label){
label_vec <- unlist(strsplit(original_label, ","))
# get the first label
first_author_name <- label_vec[[1]]
year <- gsub("(-).*","",tail(label_... | /writeups/paper/scripts/forest_plot_helper.R | no_license | anjiecao/SyntacticBootstrappingMA | R | false | false | 5,405 | r | library(tidyverse)
library(stringr)
test <- "Arunachalam, Escovar, Hansen, & Waxman, (2013) - 1a"
str_count(test,",")
abbreviate_label <- function(original_label){
label_vec <- unlist(strsplit(original_label, ","))
# get the first label
first_author_name <- label_vec[[1]]
year <- gsub("(-).*","",tail(label_... |
ncbiPubmed<-function(term, abstract=FALSE)
{
if(length(term) > 1){ term <- paste(term, collapse = ",") }
# CHECK if IDs (and skip esearch)
if( grepl("^[0-9, ]*$", term)){
x <- efetch(term, "pubmed", retmode="xml")
}else{
x <- efetch(esearch(term, "pubmed") , retmode="xml" )
}
doc <-... | /R/ncbiPubmed.R | no_license | cstubben/genomes2 | R | false | false | 2,060 | r | ncbiPubmed<-function(term, abstract=FALSE)
{
if(length(term) > 1){ term <- paste(term, collapse = ",") }
# CHECK if IDs (and skip esearch)
if( grepl("^[0-9, ]*$", term)){
x <- efetch(term, "pubmed", retmode="xml")
}else{
x <- efetch(esearch(term, "pubmed") , retmode="xml" )
}
doc <-... |
library(adiv)
### Name: dsimcom
### Title: Functional or Phylogenetic Similarity between Species and
### Communities
### Aliases: dsimcom SQ dsimTaxo dsimFun dsimTree
### Keywords: models
### ** Examples
data(macroloire, package="ade4")
Ssokalsneath <- dsimcom(t(macroloire$fau), method=1, option=c("relative"))
... | /data/genthat_extracted_code/adiv/examples/dsimcom.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 6,133 | r | library(adiv)
### Name: dsimcom
### Title: Functional or Phylogenetic Similarity between Species and
### Communities
### Aliases: dsimcom SQ dsimTaxo dsimFun dsimTree
### Keywords: models
### ** Examples
data(macroloire, package="ade4")
Ssokalsneath <- dsimcom(t(macroloire$fau), method=1, option=c("relative"))
... |
######################### 06 - XGBoost #########################
#Borramos la memoria
rm(list=ls())
#Cargamos las librerías
library(xgboost)
library(Matrix)
library(caret)
library(pROC)
#Establezco el directorio de la BD
setwd("/home/usuario/Documentos/R/TFM/")
#Establecemos una semilla
set.seed(1000)
#Para cargar ... | /complete_code/06 - XGBoost.R | no_license | mrverde/msc_dissertation_santander | R | false | false | 13,086 | r | ######################### 06 - XGBoost #########################
#Borramos la memoria
rm(list=ls())
#Cargamos las librerías
library(xgboost)
library(Matrix)
library(caret)
library(pROC)
#Establezco el directorio de la BD
setwd("/home/usuario/Documentos/R/TFM/")
#Establecemos una semilla
set.seed(1000)
#Para cargar ... |
mod1_2_v3.jags <- "
Data{
for (i in 1:NN) {
for (r in 1:p) {
Y_tp[r, tind[i], ind[i]] <- y_tp[i,r]
Y_fp[r, tind[i], ind[i]] <- y_fp[i,r]
}
X[tind[i], ind[i], 1:q] <- x[i,1:q]
}
}
model{
for (j in 1:N) {
# Random effects -----------------------------------------------------------
u[... | /mod1_2_v3.R | no_license | slzhang-fd/files | R | false | false | 2,736 | r | mod1_2_v3.jags <- "
Data{
for (i in 1:NN) {
for (r in 1:p) {
Y_tp[r, tind[i], ind[i]] <- y_tp[i,r]
Y_fp[r, tind[i], ind[i]] <- y_fp[i,r]
}
X[tind[i], ind[i], 1:q] <- x[i,1:q]
}
}
model{
for (j in 1:N) {
# Random effects -----------------------------------------------------------
u[... |
#'@title Lotame Hierachies
#'@description
#'This function returns a data frame of hierarchies for the requested client.
#'
#'@export
lotame_hierarchy <- function(hierarchy_id,
client_id,
depth = 0,
inc_stats = "true",
... | /R/lotame_hierarchy.R | no_license | jackpalmer/LotameR | R | false | false | 819 | r | #'@title Lotame Hierachies
#'@description
#'This function returns a data frame of hierarchies for the requested client.
#'
#'@export
lotame_hierarchy <- function(hierarchy_id,
client_id,
depth = 0,
inc_stats = "true",
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/html.R
\name{html_H6}
\alias{html_H6}
\title{Create a \sQuote{H6} tag}
\usage{
html_H6(x, ...)
}
\arguments{
\item{x}{the content to display.}
\item{...}{tag attributes.}
}
\value{
an \code{html_object}.
}
\description{
Create a \sQuote{H6} ... | /man/html_H6.Rd | no_license | trosendal/hlt | R | false | true | 326 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/html.R
\name{html_H6}
\alias{html_H6}
\title{Create a \sQuote{H6} tag}
\usage{
html_H6(x, ...)
}
\arguments{
\item{x}{the content to display.}
\item{...}{tag attributes.}
}
\value{
an \code{html_object}.
}
\description{
Create a \sQuote{H6} ... |
library(Renvlp)
### Name: pred.genv
### Title: Estimation or prediction for genv
### Aliases: pred.genv
### ** Examples
data(fiberpaper)
X <- fiberpaper[ , c(5, 7)]
Y <- fiberpaper[ , 1:3]
Z <- as.numeric(fiberpaper[ , 6] > mean(fiberpaper[ , 6]))
u <- u.genv(X, Y, Z)
u
m <- genv(X, Y, Z, 2)
m
X <- as.matrix(X)
p... | /data/genthat_extracted_code/Renvlp/examples/pred.genv.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 371 | r | library(Renvlp)
### Name: pred.genv
### Title: Estimation or prediction for genv
### Aliases: pred.genv
### ** Examples
data(fiberpaper)
X <- fiberpaper[ , c(5, 7)]
Y <- fiberpaper[ , 1:3]
Z <- as.numeric(fiberpaper[ , 6] > mean(fiberpaper[ , 6]))
u <- u.genv(X, Y, Z)
u
m <- genv(X, Y, Z, 2)
m
X <- as.matrix(X)
p... |
.fitch.data = function(data, levs, ambig)
{
if (missing(levs)) {
if (is.factor(data)) {
stopifnot(nlevels(data) < 32)
f = bitwShiftL(1L, match(data, levels(data))-1L)
} else {
stopifnot(is.integer(data))
stopifnot(all(data > 0L))
stopifnot(... | /R/fitch.R | no_license | blueraleigh/parsimony | R | false | false | 3,768 | r | .fitch.data = function(data, levs, ambig)
{
if (missing(levs)) {
if (is.factor(data)) {
stopifnot(nlevels(data) < 32)
f = bitwShiftL(1L, match(data, levels(data))-1L)
} else {
stopifnot(is.integer(data))
stopifnot(all(data > 0L))
stopifnot(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilities.R
\name{group_additional_claims}
\alias{group_additional_claims}
\title{Group Additional Claims}
\usage{
group_additional_claims(data_df, to_group_df, threshold)
}
\arguments{
\item{data_df}{the already present admission dataframe}
... | /man/group_additional_claims.Rd | no_license | jfontestad/hospital-readmission | R | false | true | 687 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utilities.R
\name{group_additional_claims}
\alias{group_additional_claims}
\title{Group Additional Claims}
\usage{
group_additional_claims(data_df, to_group_df, threshold)
}
\arguments{
\item{data_df}{the already present admission dataframe}
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/molecule.R
\docType{data}
\name{mol}
\alias{mol}
\alias{molecule_single}
\alias{as_molecule_single}
\alias{as_mol}
\alias{as.mol}
\alias{as_molecule_single.molecule_single}
\alias{as_molecule_single.list}
\alias{as_molecule_single.mol}
\alias... | /man/mol.Rd | no_license | paleolimbot/chemr | R | false | true | 2,183 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/molecule.R
\docType{data}
\name{mol}
\alias{mol}
\alias{molecule_single}
\alias{as_molecule_single}
\alias{as_mol}
\alias{as.mol}
\alias{as_molecule_single.molecule_single}
\alias{as_molecule_single.list}
\alias{as_molecule_single.mol}
\alias... |
library(energy)
### Name: disco
### Title: distance components (DISCO)
### Aliases: disco disco.between print.disco
### Keywords: htest multivariate
### ** Examples
## warpbreaks one-way decompositions
data(warpbreaks)
attach(warpbreaks)
disco(breaks, factors=wool, R=99)
## When index... | /data/genthat_extracted_code/energy/examples/disco.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 1,590 | r | library(energy)
### Name: disco
### Title: distance components (DISCO)
### Aliases: disco disco.between print.disco
### Keywords: htest multivariate
### ** Examples
## warpbreaks one-way decompositions
data(warpbreaks)
attach(warpbreaks)
disco(breaks, factors=wool, R=99)
## When index... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/applicationdiscoveryservice_operations.R
\name{applicationdiscoveryservice_start_import_task}
\alias{applicationdiscoveryservice_start_import_task}
\title{Starts an import task, which allows you to import details of your
on-premises environme... | /paws/man/applicationdiscoveryservice_start_import_task.Rd | permissive | peoplecure/paws | R | false | true | 3,230 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/applicationdiscoveryservice_operations.R
\name{applicationdiscoveryservice_start_import_task}
\alias{applicationdiscoveryservice_start_import_task}
\title{Starts an import task, which allows you to import details of your
on-premises environme... |
################################################################################
# compare estimates from two samples
library(vegan)
div.dat <- merge(template_dat, pcr_dat, by = c('templates.id', 'species'))
div.dat[ , seq.prop := seq.count/sum(seq.count), by = pcr.id ]
div.dat[ , tem.prop := templates/sum(templates... | /analysis/2_diversity.R | no_license | jimmyodonnell/pcr_bias | R | false | false | 1,199 | r | ################################################################################
# compare estimates from two samples
library(vegan)
div.dat <- merge(template_dat, pcr_dat, by = c('templates.id', 'species'))
div.dat[ , seq.prop := seq.count/sum(seq.count), by = pcr.id ]
div.dat[ , tem.prop := templates/sum(templates... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/df2json.R
\name{df2json}
\alias{df2json}
\title{Converts data frame to hierarchical JSON}
\usage{
df2json(d)
}
\arguments{
\item{d}{A length 1 character vector contain the name of the data frame to be converted}
}
\value{
Hierarchical... | /man/df2json.Rd | no_license | bmewing/df2hjson | R | false | false | 755 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/df2json.R
\name{df2json}
\alias{df2json}
\title{Converts data frame to hierarchical JSON}
\usage{
df2json(d)
}
\arguments{
\item{d}{A length 1 character vector contain the name of the data frame to be converted}
}
\value{
Hierarchical... |
#require("infercnv")
load("/lustre/scratch117/cellgen/team218/TA/LiverOrganoids/Analysis_Pipeline_Output/CNVAnalysis/inferCNVRes/run.final.infercnv_obj")
G <- readRDS("/lustre/scratch117/cellgen/team218/TA/LiverOrganoids/Analysis_Pipeline_Output/Global_SCE.rds")
### Plot variants by XXXX ###
All_Calls <- readRDS("/lu... | /CNVs_Exomes/inferCNV_vs_Type_Plots.R | no_license | tallulandrews/LiverTumouroidsScripts | R | false | false | 8,598 | r | #require("infercnv")
load("/lustre/scratch117/cellgen/team218/TA/LiverOrganoids/Analysis_Pipeline_Output/CNVAnalysis/inferCNVRes/run.final.infercnv_obj")
G <- readRDS("/lustre/scratch117/cellgen/team218/TA/LiverOrganoids/Analysis_Pipeline_Output/Global_SCE.rds")
### Plot variants by XXXX ###
All_Calls <- readRDS("/lu... |
# Functions used by Yiming
get_protein_coding<-function(df, spe){
if (spe=="mouse"){
ds_name<-"mmusculus_gene_ensembl"
} else if (spe=="human"){
ds_name<-"hsapiens_gene_ensembl"
} else if (spe=="opossum"){
ds_name<-"mdomestica_gene_ensembl"
}
ensembl_mart = useMart("ENSEMBL_... | /code/Functions_Cheng.R | no_license | daskelly/ProFAT | R | false | false | 27,954 | r | # Functions used by Yiming
get_protein_coding<-function(df, spe){
if (spe=="mouse"){
ds_name<-"mmusculus_gene_ensembl"
} else if (spe=="human"){
ds_name<-"hsapiens_gene_ensembl"
} else if (spe=="opossum"){
ds_name<-"mdomestica_gene_ensembl"
}
ensembl_mart = useMart("ENSEMBL_... |
# LEARNING CLASSES
# example from the book R Object-Oriented Programming.pdf p99
oneDie <- list(trials=character(0))
class(oneDie) <- "Die"
oneCoin <- list(trials=character(0))
class(oneCoin) <- "Coin"
reset <- function(theObject)
{
UseMethod("reset",theObject)
print("Reset the Trials")
}
reset.default <- function... | /help_scripts/tutorials/scripts_tutorials/object_oriented_programming.R | no_license | IsaFG/vcf_pk | R | false | false | 641 | r | # LEARNING CLASSES
# example from the book R Object-Oriented Programming.pdf p99
oneDie <- list(trials=character(0))
class(oneDie) <- "Die"
oneCoin <- list(trials=character(0))
class(oneCoin) <- "Coin"
reset <- function(theObject)
{
UseMethod("reset",theObject)
print("Reset the Trials")
}
reset.default <- function... |
rm(list = ls())
#### PRELIMINARIES #############################################################################################
#*Uploads the needed libraries --------------------------------------------------------------------------------
require(DESeq2)
require(ggplot2)
require(data.table)
require(plotly)
re... | /DESEQ2_Group_1_vs_Group_2.R | no_license | IMS-Bio2/BulkRNAseq | R | false | false | 33,226 | r | rm(list = ls())
#### PRELIMINARIES #############################################################################################
#*Uploads the needed libraries --------------------------------------------------------------------------------
require(DESeq2)
require(ggplot2)
require(data.table)
require(plotly)
re... |
##Exploratory Data Analysis
##Week 4 Course Project
##Plot 3
##By Mike Dunlap
##Load Libraries
library(dplyr)
library(ggplot2)
##Download Data
fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip"
temp <- tempfile()
download.file(fileURL, temp, method="curl")
unzip(temp)
##upload data to se... | /ExData_Project_Plot3.R | no_license | michaelpdunlap/ExData_Plotting2 | R | false | false | 1,099 | r | ##Exploratory Data Analysis
##Week 4 Course Project
##Plot 3
##By Mike Dunlap
##Load Libraries
library(dplyr)
library(ggplot2)
##Download Data
fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip"
temp <- tempfile()
download.file(fileURL, temp, method="curl")
unzip(temp)
##upload data to se... |
#utils
is.empty <- function(x) {
length(x) == 0
}
| /other/MIST_utils.R | no_license | ptompalski/MISTR | R | false | false | 55 | r | #utils
is.empty <- function(x) {
length(x) == 0
}
|
\name{ntyped}
\alias{ntyped}
\title{Number of genotypes}
\description{
Count the number of genotypes for each individual or each marker
in a cross.
}
\usage{ntyped(cross, what=c("ind","mar"))}
\arguments{
\item{cross}{An object of class \code{cross}. See
\code{\link[qtl]{read.cross}} for details.}
\item{w... | /man/ntyped.Rd | no_license | pjotrp/rqtl | R | false | false | 900 | rd | \name{ntyped}
\alias{ntyped}
\title{Number of genotypes}
\description{
Count the number of genotypes for each individual or each marker
in a cross.
}
\usage{ntyped(cross, what=c("ind","mar"))}
\arguments{
\item{cross}{An object of class \code{cross}. See
\code{\link[qtl]{read.cross}} for details.}
\item{w... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Rcript.R
\name{AND}
\alias{AND}
\title{AND}
\usage{
AND(x, y)
}
\arguments{
\item{x}{A posit8, posit16, posit32 or posit_2 object.}
\item{y}{A posit8, posit16, posit32 or posit_2 object.}
}
\value{
posit8, posit16, posit32 or posit_2 object.... | /man/AND.Rd | no_license | HPCC-UNUM/SoftPosit | R | false | true | 394 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Rcript.R
\name{AND}
\alias{AND}
\title{AND}
\usage{
AND(x, y)
}
\arguments{
\item{x}{A posit8, posit16, posit32 or posit_2 object.}
\item{y}{A posit8, posit16, posit32 or posit_2 object.}
}
\value{
posit8, posit16, posit32 or posit_2 object.... |
#ハイパーパラメータの事前分布を半コーシー分布に変えてみるモデル
library(rstan); rstan_options(auto_write = TRUE); options(mc.cores = parallel::detectCores())
#モデル作成
model2 <- stan_model(file='model2.stan')
#Stanをキック
fit2 <- sampling(model2, data, iter = 11000, warmup = 1000, thin = 10, seed=1)
#収束診断
print(fit2, digits = 1)
plot(fit2) + ggtitle("... | /scriptKickStanModel2.R | no_license | iypod/macBookAir | R | false | false | 1,381 | r | #ハイパーパラメータの事前分布を半コーシー分布に変えてみるモデル
library(rstan); rstan_options(auto_write = TRUE); options(mc.cores = parallel::detectCores())
#モデル作成
model2 <- stan_model(file='model2.stan')
#Stanをキック
fit2 <- sampling(model2, data, iter = 11000, warmup = 1000, thin = 10, seed=1)
#収束診断
print(fit2, digits = 1)
plot(fit2) + ggtitle("... |
#' fileMap
#'
#' Maps figures to various source file types.
#'
#' @name fileMap
#' @rdname fileMap
#' @aliases fileMap
#' @param type, character; The type of source file to map. Can be Rmd, pdf, or
#' rds, txt, or png.
#' @return list.
#' @author Jason T. Serviss
#' @examples
#'
#' fileMap()
#'
NULL
#' @rdname fil... | /R/utils.R | no_license | GranderLab/miR34a_asRNA_project | R | false | false | 8,365 | r |
#' fileMap
#'
#' Maps figures to various source file types.
#'
#' @name fileMap
#' @rdname fileMap
#' @aliases fileMap
#' @param type, character; The type of source file to map. Can be Rmd, pdf, or
#' rds, txt, or png.
#' @return list.
#' @author Jason T. Serviss
#' @examples
#'
#' fileMap()
#'
NULL
#' @rdname fil... |
library(rapport)
### Name: extract.meta
### Title: Extract Template Metadata
### Aliases: extract.meta
### ** Examples
## Not run:
##D rapport:::extract.meta("Name: John Smith", "Name", "[[:alpha:]]+( [[:alpha:]]+)?")
##D ## $name
##D ## [1] "John Smith"
##D
##D rapport:::extract.meta("Name: John"... | /data/genthat_extracted_code/rapport/examples/extract.meta.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 420 | r | library(rapport)
### Name: extract.meta
### Title: Extract Template Metadata
### Aliases: extract.meta
### ** Examples
## Not run:
##D rapport:::extract.meta("Name: John Smith", "Name", "[[:alpha:]]+( [[:alpha:]]+)?")
##D ## $name
##D ## [1] "John Smith"
##D
##D rapport:::extract.meta("Name: John"... |
#' Simulation of ecological data structured by two ecological gradients
#' @author David Zeleny (zeleny.david@@gmail.com) - based on the script of Jason Fridley (Fridley et al. 2007, Appendix S2), modified for two dimensions
#' @param totS total number of species in simulation
#' @param gr1.length,gr2.length length o... | /R/simul.comm.2.r | no_license | zdealveindy/genspe | R | false | false | 14,680 | r | #' Simulation of ecological data structured by two ecological gradients
#' @author David Zeleny (zeleny.david@@gmail.com) - based on the script of Jason Fridley (Fridley et al. 2007, Appendix S2), modified for two dimensions
#' @param totS total number of species in simulation
#' @param gr1.length,gr2.length length o... |
library(tidyverse)
library(here)
library(feather)
library(RMySQL)
library(glue)
| /utils/load_packages.R | no_license | aedobbyn/twitch | R | false | false | 80 | r | library(tidyverse)
library(here)
library(feather)
library(RMySQL)
library(glue)
|
#Loading required packages
library(mlr)
library(glmnet)
#loading data
housing <- read.table("http://archive.ics.uci.edu/ml/machine-learning-databases/housing/housing.data")
#checking data names
names(housing)
#replacing data names
names(housing) <- c("crim","zn","indus","chas","nox","rm","age","dis... | /ProblemSets/PS9/PS9_Tayebi.R | permissive | amirtayebi/DScourseS19 | R | false | false | 6,645 | r |
#Loading required packages
library(mlr)
library(glmnet)
#loading data
housing <- read.table("http://archive.ics.uci.edu/ml/machine-learning-databases/housing/housing.data")
#checking data names
names(housing)
#replacing data names
names(housing) <- c("crim","zn","indus","chas","nox","rm","age","dis... |
# Import Packages
# if (!require("pacman")) install.packages("evaluate")
# pacman::p_load(tidyverse, skimr, GGally, plotly, viridis, caret, randomForest, e1071, rpart,
# xgboost, h2o, corrplot, rpart.plot, corrgram, ggplot2, highcharter,
# ggthemes, psych, scales, treemap, treemapi... | /Avocado-ARIMA/Avocado_ARIMA.R | no_license | Monica-Kulkarni/Avocado-pricing-forecast | R | false | false | 5,974 | r | # Import Packages
# if (!require("pacman")) install.packages("evaluate")
# pacman::p_load(tidyverse, skimr, GGally, plotly, viridis, caret, randomForest, e1071, rpart,
# xgboost, h2o, corrplot, rpart.plot, corrgram, ggplot2, highcharter,
# ggthemes, psych, scales, treemap, treemapi... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SAAndSPSynDataOneCAType.R
\name{SAAndSPSynDataOneCAType}
\alias{SAAndSPSynDataOneCAType}
\title{Generate parallel synthetic exposures from real SA and SP exposures and signatures}
\usage{
SAAndSPSynDataOneCAType(
sa.real.exp,
sp.real.exp,... | /man/SAAndSPSynDataOneCAType.Rd | no_license | steverozen/SynSigGen | R | false | true | 2,054 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/SAAndSPSynDataOneCAType.R
\name{SAAndSPSynDataOneCAType}
\alias{SAAndSPSynDataOneCAType}
\title{Generate parallel synthetic exposures from real SA and SP exposures and signatures}
\usage{
SAAndSPSynDataOneCAType(
sa.real.exp,
sp.real.exp,... |
#!/usr/common/graphics/R/R-3.1.1/bin/Rscript --no-save
# Pressures and temperatures from 20CR2c for 1815-17
# Show 24-hour running mean temperatures (avoids diurnal cycle problem).
library(GSDF.TWCR)
library(GSDF.WeatherMap)
library(parallel)
library(getopt)
opt = getopt(c(
'year', 'y', 2, "integer",
'month', ... | /videos/volcano.dailyT.R | no_license | oldweather/Tambora | R | false | false | 8,580 | r | #!/usr/common/graphics/R/R-3.1.1/bin/Rscript --no-save
# Pressures and temperatures from 20CR2c for 1815-17
# Show 24-hour running mean temperatures (avoids diurnal cycle problem).
library(GSDF.TWCR)
library(GSDF.WeatherMap)
library(parallel)
library(getopt)
opt = getopt(c(
'year', 'y', 2, "integer",
'month', ... |
#######################################
#
# Format Douglas-filtered
# location data
#
# Michaela A. Kratofil
# April 28, 2020
#
#######################################
# load packages
library(tidyverse)
library(lubridate)
# define species batch
spp = "Gm"
tag_range = ... | /FormatDAF_batch.R | no_license | jordkl/crc-hawaii-tags | R | false | false | 5,255 | r | #######################################
#
# Format Douglas-filtered
# location data
#
# Michaela A. Kratofil
# April 28, 2020
#
#######################################
# load packages
library(tidyverse)
library(lubridate)
# define species batch
spp = "Gm"
tag_range = ... |
# global
FILESEP <- .Platform$file.sep
# monitor functions
readgonio <- function(gfile) {
g <- readLines(gfile)
g_nprf <- g[grep("NPRF", g)]
g_npr <- g[grep("NPR,", g)]
# make new files out of these greped vectors
if(length(g_nprf) != 0) {
nprf_file <- tempfile()
writeLines(g_nprf, nprf_file)
... | /inst/shiny-guts/global.R | no_license | williamcioffi/monitorgonio | R | false | false | 1,455 | r | # global
FILESEP <- .Platform$file.sep
# monitor functions
readgonio <- function(gfile) {
g <- readLines(gfile)
g_nprf <- g[grep("NPRF", g)]
g_npr <- g[grep("NPR,", g)]
# make new files out of these greped vectors
if(length(g_nprf) != 0) {
nprf_file <- tempfile()
writeLines(g_nprf, nprf_file)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CLASS_exstra_tsum.R
\name{exstra_tsum_new_}
\alias{exstra_tsum_new_}
\title{Create a new exstra_tsum object.}
\usage{
exstra_tsum_new_(strscore, tsum, p.values = NULL, qmats = NULL,
xecs = NULL, args = NULL, correction = c("bf", "locus", "u... | /man/exstra_tsum_new_.Rd | no_license | a113n/exSTRa | R | false | true | 422 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/CLASS_exstra_tsum.R
\name{exstra_tsum_new_}
\alias{exstra_tsum_new_}
\title{Create a new exstra_tsum object.}
\usage{
exstra_tsum_new_(strscore, tsum, p.values = NULL, qmats = NULL,
xecs = NULL, args = NULL, correction = c("bf", "locus", "u... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mesh.R
\name{pixels}
\alias{pixels}
\title{Generate \code{SpatialPixels} covering an \code{inla.mesh}}
\usage{
pixels(mesh, nx = 150, ny = 150, mask = TRUE)
}
\arguments{
\item{mesh}{An \code{inla.mesh} object}
\item{nx}{Number of pixels in ... | /inlabru/man/pixels.Rd | no_license | albrizre/spatstat.revdep | R | false | true | 840 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mesh.R
\name{pixels}
\alias{pixels}
\title{Generate \code{SpatialPixels} covering an \code{inla.mesh}}
\usage{
pixels(mesh, nx = 150, ny = 150, mask = TRUE)
}
\arguments{
\item{mesh}{An \code{inla.mesh} object}
\item{nx}{Number of pixels in ... |
plot(small.model, w = 1:2)
| /inst/snippets/small.R | no_license | klaassenj/Lock5withR | R | false | false | 28 | r | plot(small.model, w = 1:2)
|
#' @title Minimum and maximum value of continous variables
#'
#' @description
#' Compute the minimum and maximum of continous variables.
#'
#' @usage
#' minmax(x, k = 1)
#'
#' @param x
#' Vector of the continous variable.
#' @param k
#' Number of decimal places.
#' If not specified, the number of decimal places is 1 or... | /R/minmax.R | no_license | vanLunteren/DescrTab | R | false | false | 714 | r | #' @title Minimum and maximum value of continous variables
#'
#' @description
#' Compute the minimum and maximum of continous variables.
#'
#' @usage
#' minmax(x, k = 1)
#'
#' @param x
#' Vector of the continous variable.
#' @param k
#' Number of decimal places.
#' If not specified, the number of decimal places is 1 or... |
library(dplyr)
library(ggplot2)
#Set new working directory
setwd("~/work/datasciencecoursera/Exploratory Data Analysis/week4/")
NEI <- readRDS("summarySCC_PM25.rds")
baltimore <- NEI[NEI$fips == "24510",]
s <- summarise(group_by(baltimore, year), Emissions = sum(Emissions))
png("plot2.png", width=480, height=480)
... | /Exploratory Data Analysis/week4/plot2.R | no_license | kronik/datasciencecoursera | R | false | false | 525 | r | library(dplyr)
library(ggplot2)
#Set new working directory
setwd("~/work/datasciencecoursera/Exploratory Data Analysis/week4/")
NEI <- readRDS("summarySCC_PM25.rds")
baltimore <- NEI[NEI$fips == "24510",]
s <- summarise(group_by(baltimore, year), Emissions = sum(Emissions))
png("plot2.png", width=480, height=480)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Multirobu.R
\name{covRobRocke}
\alias{covRobRocke}
\alias{RockeMulti}
\title{Rocke's robust multivariate location and scatter estimator}
\usage{
covRobRocke(
X,
initial = "K",
maxsteps = 5,
propmin = 2,
qs = 2,
maxit = 50,
tol =... | /man/RockeMulti.Rd | no_license | Gakkilovemath/RobStatTM | R | false | true | 2,350 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Multirobu.R
\name{covRobRocke}
\alias{covRobRocke}
\alias{RockeMulti}
\title{Rocke's robust multivariate location and scatter estimator}
\usage{
covRobRocke(
X,
initial = "K",
maxsteps = 5,
propmin = 2,
qs = 2,
maxit = 50,
tol =... |
\name{tl3}
\alias{tl3}
\title{Function to return the TL3 hydrologic indicator statistic for a given data frame}
\usage{
tl3(qfiletempf)
}
\arguments{
\item{qfiletempf}{data frame containing a "discharge"
column containing daily flow values}
}
\value{
tl3 numeric containing the max low flow events in a
period ... | /R/RProjects/HITHATStats/man/tl3.Rd | no_license | jlthomps/EflowStats | R | false | false | 718 | rd | \name{tl3}
\alias{tl3}
\title{Function to return the TL3 hydrologic indicator statistic for a given data frame}
\usage{
tl3(qfiletempf)
}
\arguments{
\item{qfiletempf}{data frame containing a "discharge"
column containing daily flow values}
}
\value{
tl3 numeric containing the max low flow events in a
period ... |
#Enjoy the joy of Copulas
install.packages("scatterplot3d")
library(copula)
library(mvtnorm)
library(scatterplot3d)
set.seed(1)
#classes
myCop.norm <- ellipCopula(family = "normal", dim = 3, dispstr = "ex", param = 0.4)
myCop.t <- ellipCopula(family = "t", dim = 3, dispstr = "toep", param = c(0.8, 0.5), df = ... | /enjoy_the_joy_of_copula.R | no_license | MasanoriMatsuura/enjoythecopula | R | false | false | 3,304 | r | #Enjoy the joy of Copulas
install.packages("scatterplot3d")
library(copula)
library(mvtnorm)
library(scatterplot3d)
set.seed(1)
#classes
myCop.norm <- ellipCopula(family = "normal", dim = 3, dispstr = "ex", param = 0.4)
myCop.t <- ellipCopula(family = "t", dim = 3, dispstr = "toep", param = c(0.8, 0.5), df = ... |
# Script com o objetivo de replicar os modelos econometricos da CP apresentados no
# wp01 do bcb, intitulado "Implementing Inflation Target in Brazil".
#
# Autor: @gustavoovital
# Data: 17/03/2020
# Pacotes necessários ----
source('getExpectations.R')
library(BETS)
library(sidrar)
API <- '/t/1737/n1/all/v/2266/p/... | /Implementing Inflation Targeting in Brazil/CP.R | no_license | gustavovital/Macroeconomics-Models | R | false | false | 467 | r | # Script com o objetivo de replicar os modelos econometricos da CP apresentados no
# wp01 do bcb, intitulado "Implementing Inflation Target in Brazil".
#
# Autor: @gustavoovital
# Data: 17/03/2020
# Pacotes necessários ----
source('getExpectations.R')
library(BETS)
library(sidrar)
API <- '/t/1737/n1/all/v/2266/p/... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/io.R
\name{query_civis_file}
\alias{query_civis_file}
\alias{query_civis_file.character}
\alias{query_civis_file.sql}
\alias{query_civis_file.numeric}
\title{Export results from a query to S3 and return a file id.}
\usage{
query_civis_file(x,... | /man/query_civis_file.Rd | no_license | JosiahParry/civis-r | R | false | true | 2,304 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/io.R
\name{query_civis_file}
\alias{query_civis_file}
\alias{query_civis_file.character}
\alias{query_civis_file.sql}
\alias{query_civis_file.numeric}
\title{Export results from a query to S3 and return a file id.}
\usage{
query_civis_file(x,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.