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 |
|---|---|---|---|---|---|---|---|---|---|
#
# Developing Data Products Week 4 Assignment
#
library(shiny)
# Define UI for application that plots Apple Inc. Stock price
shinyUI(fluidPage(
# Application title
h1("My First Application"),
p("Author: Ng Kah Earn"),
p("Date: 15 April 2017"),
# Sidebar with a slider input for number of years and checkbo... | /ui.R | no_license | kahearn/Developing-Data-Products-Assignment | R | false | false | 1,814 | r | #
# Developing Data Products Week 4 Assignment
#
library(shiny)
# Define UI for application that plots Apple Inc. Stock price
shinyUI(fluidPage(
# Application title
h1("My First Application"),
p("Author: Ng Kah Earn"),
p("Date: 15 April 2017"),
# Sidebar with a slider input for number of years and checkbo... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\name{pbinomGC}
\alias{pbinomGC}
\title{Graphical Calculator for Binomial Curve Probabilities}
\usage{
pbinomGC(bound,region="below",size=100,prob=0.5,graph=FALSE)
}
\arguments{
\item{bound}{A numerical vector of length 1 or 2, range of shaded rectangles}
\item{regi... | /man/pbinomGC.Rd | no_license | arturochian/tigerstats | R | false | false | 1,304 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\name{pbinomGC}
\alias{pbinomGC}
\title{Graphical Calculator for Binomial Curve Probabilities}
\usage{
pbinomGC(bound,region="below",size=100,prob=0.5,graph=FALSE)
}
\arguments{
\item{bound}{A numerical vector of length 1 or 2, range of shaded rectangles}
\item{regi... |
`DynamicList` <-
function(C,B,D) {
L <- PathList(C,D) + 1
bounds <- B[L]
return(bounds)
}
| /R/DynamicList.R | no_license | thmild/histogram | R | false | false | 110 | r | `DynamicList` <-
function(C,B,D) {
L <- PathList(C,D) + 1
bounds <- B[L]
return(bounds)
}
|
\name{assoc_ZiY.ZjY}
\alias{assoc_ZiY.ZjY}
\title{
Association between variable \eqn{Z_{iY}} and \eqn{Z_{jY}}.
}
\description{
Finding association between variable \eqn{Z_{Y}} at \eqn{i^{th}}{i^th} position and \eqn{Z_{Y}} at \eqn{j^{th}}{j^th} position.
Here, the standard normal variable \eqn{Z_{Y}} reprsents... | /man/assoc_ZiY.ZjY.Rd | no_license | cran/corrDNA | R | false | false | 1,623 | rd | \name{assoc_ZiY.ZjY}
\alias{assoc_ZiY.ZjY}
\title{
Association between variable \eqn{Z_{iY}} and \eqn{Z_{jY}}.
}
\description{
Finding association between variable \eqn{Z_{Y}} at \eqn{i^{th}}{i^th} position and \eqn{Z_{Y}} at \eqn{j^{th}}{j^th} position.
Here, the standard normal variable \eqn{Z_{Y}} reprsents... |
# timing utilities for ff and bit
# (c) 2012 Jens Oehlschlägel
# Licence: GPL2
# Provided 'as is', use at your own risk
# Created: 2012-05-28
#' Adaptive timer
#'
#' Repeats timing expr until minSec is reached
#'
#'
#' @param expr Valid expression to be timed.
#' @param gcFirst Logical - should a garbage collection... | /R/timeutil.R | no_license | cran/bit | R | false | false | 1,505 | r | # timing utilities for ff and bit
# (c) 2012 Jens Oehlschlägel
# Licence: GPL2
# Provided 'as is', use at your own risk
# Created: 2012-05-28
#' Adaptive timer
#'
#' Repeats timing expr until minSec is reached
#'
#'
#' @param expr Valid expression to be timed.
#' @param gcFirst Logical - should a garbage collection... |
#Association Rules
install.packages('arules')
library(arules)
Titanic<-read.csv("/Volumes/E/Excelr/Course Content/Data Science/A.Rules/Titanic.csv")
Titanic<-Titanic[,-c(1)]
rules <- apriori(Titanic)
arules::inspect(rules)
rules.sorted <- sort(rules, by="lift")
arules::inspect(rules.sorted)
# rules with rh... | /association_rules_codes[1].r | no_license | karunesh1997/datascience-code | R | false | false | 601 | r | #Association Rules
install.packages('arules')
library(arules)
Titanic<-read.csv("/Volumes/E/Excelr/Course Content/Data Science/A.Rules/Titanic.csv")
Titanic<-Titanic[,-c(1)]
rules <- apriori(Titanic)
arules::inspect(rules)
rules.sorted <- sort(rules, by="lift")
arules::inspect(rules.sorted)
# rules with rh... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/avengers_movies.R
\name{avengers_movies}
\alias{avengers_movies}
\title{This function provides the list of all the Avengers movies to the user.}
\usage{
avengers_movies()
}
\value{
A dataframe that contains information of all the Avengers mov... | /man/avengers_movies.Rd | permissive | naveen-chalasani/R.vengers | R | false | true | 556 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/avengers_movies.R
\name{avengers_movies}
\alias{avengers_movies}
\title{This function provides the list of all the Avengers movies to the user.}
\usage{
avengers_movies()
}
\value{
A dataframe that contains information of all the Avengers mov... |
## Put comments here that give an overall description of what your
## functions do
## creates a special 'matrix'
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setInverse <- function(solve) m <<- solve
getInverse <- function() m... | /cachematrix.R | no_license | TerenceTanah/ProgrammingAssignment2 | R | false | false | 717 | r | ## Put comments here that give an overall description of what your
## functions do
## creates a special 'matrix'
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
x <<- y
m <<- NULL
}
get <- function() x
setInverse <- function(solve) m <<- solve
getInverse <- function() m... |
testlist <- list(doy = c(4.62595082430429e-312, 3.64097969159734e-277, -0.427429395728637, 2.09887675795476e-104, 1.55322770574539e-47, 1.45474215376015e+135, 3.56441595774554e+114, -2.64525441665141e+303, -9.52682579807939e+139, -3.98397314603138e+183, -1.77863325536183e+126, 6.42851301544252e-310, 1.6601383076532... | /meteor/inst/testfiles/Photoperiod/AFL_Photoperiod/Photoperiod_valgrind_files/1615768950-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 683 | r | testlist <- list(doy = c(4.62595082430429e-312, 3.64097969159734e-277, -0.427429395728637, 2.09887675795476e-104, 1.55322770574539e-47, 1.45474215376015e+135, 3.56441595774554e+114, -2.64525441665141e+303, -9.52682579807939e+139, -3.98397314603138e+183, -1.77863325536183e+126, 6.42851301544252e-310, 1.6601383076532... |
#' @title makeWAR
#' @aliases makeWAR.GameDayPlays
#'
#' @description Computes runs above average (RAA) for each player involved in each play of the 'GameDayPlays' object.
#'
#' @details Within a 'GameDayPlays' object, each row consists of a single plate appearance and contains information about the batter, all of t... | /R/makeWAR.R | no_license | erichilarysmithsr/openWAR | R | false | false | 23,347 | r | #' @title makeWAR
#' @aliases makeWAR.GameDayPlays
#'
#' @description Computes runs above average (RAA) for each player involved in each play of the 'GameDayPlays' object.
#'
#' @details Within a 'GameDayPlays' object, each row consists of a single plate appearance and contains information about the batter, all of t... |
#'
#' Extract copy-number signals from aroma files. It requires to have executed the normalization process suggested by aroma packages, by using
#' \link{signalPreProcess} for example.
#'
#' @title Extract copy-number signal from aroma files
#' @param dataSetName The name of the data-set folder (it must correspond to... | /R/getCNSignal.R | no_license | sblanck/MPAgenomics | R | false | false | 19,406 | r | #'
#' Extract copy-number signals from aroma files. It requires to have executed the normalization process suggested by aroma packages, by using
#' \link{signalPreProcess} for example.
#'
#' @title Extract copy-number signal from aroma files
#' @param dataSetName The name of the data-set folder (it must correspond to... |
# prep. .txt files named as genotype_number
# eg. wt_01.txt, wt_02.txt, ... e5_08.txt
#roi name for analysis
targetroiname<-"RIM"
#rois for anteroposterioraxis
#anterior
roiname1<-"nr"
#postrior
roiname2<-"RIM"
#colorrane for heatmap etc
#colorrange<-c(3,8)
#colorrange<-c(2,9)
#GCaMP3
colorrange<-c(0,0.5)
#range fo... | /image_processing/speed_analysis/preparedatalist6.R | no_license | zhen-lab/Beta_Function_Analysis | R | false | false | 21,587 | r | # prep. .txt files named as genotype_number
# eg. wt_01.txt, wt_02.txt, ... e5_08.txt
#roi name for analysis
targetroiname<-"RIM"
#rois for anteroposterioraxis
#anterior
roiname1<-"nr"
#postrior
roiname2<-"RIM"
#colorrane for heatmap etc
#colorrange<-c(3,8)
#colorrange<-c(2,9)
#GCaMP3
colorrange<-c(0,0.5)
#range fo... |
## 'directory' is a character vector of length 1 indicating
## the location of the CSV files
## 'id' is an integer vector indicating the monitor ID numbers
## to be used
## Return a data frame of the form:
## id nobs
## 1 117
## 2 1041
## ...
## where 'id' is the monitor ID number and 'nobs' is the
## number of com... | /R Programming Course/complete.R | no_license | shauncollett/datasciencecoursera | R | false | false | 1,841 | r | ## 'directory' is a character vector of length 1 indicating
## the location of the CSV files
## 'id' is an integer vector indicating the monitor ID numbers
## to be used
## Return a data frame of the form:
## id nobs
## 1 117
## 2 1041
## ...
## where 'id' is the monitor ID number and 'nobs' is the
## number of com... |
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../scripts/h2o-r-test-setup.R")
# Test to make sure that you do not lose a RTMP frame in H2O when you execute an erroneous line of R code
# R behavior: Reports an error but keeps the frame as is
test.pubdev.2386 <- function(conn){
# I... | /h2o-r/tests/testdir_jira/runit_NOPASS_pubdev_2386_missing_rtmp.R | permissive | h2oai/h2o-3 | R | false | false | 882 | r | setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f")))
source("../../scripts/h2o-r-test-setup.R")
# Test to make sure that you do not lose a RTMP frame in H2O when you execute an erroneous line of R code
# R behavior: Reports an error but keeps the frame as is
test.pubdev.2386 <- function(conn){
# I... |
# Cleaner fish tank delousing
# Adam Brooker 29th August 2019
library(ggplot2)
library(plyr)
library(dplyr)
library(reshape2)
library(data.table)
library(stringr)
library(colorspace)
#library(grImport)
#library(grImport2)
library(devtools)
library(cowplot)
#library(Cairo)
library(magick)
library(colorRamps)
library(f... | /Delousing-initiate.R | no_license | adamaki/DelouseR | R | false | false | 21,128 | r | # Cleaner fish tank delousing
# Adam Brooker 29th August 2019
library(ggplot2)
library(plyr)
library(dplyr)
library(reshape2)
library(data.table)
library(stringr)
library(colorspace)
#library(grImport)
#library(grImport2)
library(devtools)
library(cowplot)
#library(Cairo)
library(magick)
library(colorRamps)
library(f... |
gates <- haven::read_dta(paste0(path_gtml_redcap_data,"/Gates_data_2019-07-12.dta"))
alive2018 <- gates %>%
dplyr::filter(edo_vida2018 %in% c(1,4,6)) %>%
dplyr::select(iduni) %>%
pull()
alive2016 <- gates %>%
dplyr::filter(edo_vida2015 %in% c(1,4,6)) %>%
dplyr::select(iduni) %>%
pull()
ses_cs <- read... | /descriptives/supplementary table 1.R | no_license | lsempe77/incap-social-mobility | R | false | false | 2,357 | r | gates <- haven::read_dta(paste0(path_gtml_redcap_data,"/Gates_data_2019-07-12.dta"))
alive2018 <- gates %>%
dplyr::filter(edo_vida2018 %in% c(1,4,6)) %>%
dplyr::select(iduni) %>%
pull()
alive2016 <- gates %>%
dplyr::filter(edo_vida2015 %in% c(1,4,6)) %>%
dplyr::select(iduni) %>%
pull()
ses_cs <- read... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/oce.R
\name{oce-deprecated}
\alias{oce-defunct}
\alias{oce-deprecated}
\title{Deprecated and Defunct Elements of package \sQuote{oce}}
\description{
Certain functions and function arguments are still provided for
compatibility with older vers... | /man/oce-deprecated.Rd | no_license | AnneMTreasure/oce | R | false | true | 2,378 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/oce.R
\name{oce-deprecated}
\alias{oce-defunct}
\alias{oce-deprecated}
\title{Deprecated and Defunct Elements of package \sQuote{oce}}
\description{
Certain functions and function arguments are still provided for
compatibility with older vers... |
#' Get Power Estimates from EB functions
#'
#' @param pp_fun A power prior function from [binom.PP.EB()] with `mix=FALSE`)
#'
#' @return A `data.frame` containing the power prior weights
#' @export
#'
#' @examples
#' pp_eb <- binom.PP.EB(x = c(24,35), n = c(50,50), X = 0:50, N=50, mix = FALSE)
#' get_eb_powers(pp_eb)
... | /StudyPrior/R/get_eb_powers.R | no_license | igrave/StudyPrior | R | false | false | 626 | r | #' Get Power Estimates from EB functions
#'
#' @param pp_fun A power prior function from [binom.PP.EB()] with `mix=FALSE`)
#'
#' @return A `data.frame` containing the power prior weights
#' @export
#'
#' @examples
#' pp_eb <- binom.PP.EB(x = c(24,35), n = c(50,50), X = 0:50, N=50, mix = FALSE)
#' get_eb_powers(pp_eb)
... |
# =========== getting out and plotting specific phylotypes ===========
# NOTE this is using 0.005% trimmed OTU table.
# as recommended by Bokulvich et al.
yy <- read.csv("Trimmed.0.05.phyloSeq.csv", header = TRUE)
head(yy)
# run setFactorFunction.R
# function for this saved in github R basics folder
yy[["t... | /Plotting AOA AOB copio and oligos.R | no_license | CamEJ/WP3-data-analysis | R | false | false | 14,115 | r |
# =========== getting out and plotting specific phylotypes ===========
# NOTE this is using 0.005% trimmed OTU table.
# as recommended by Bokulvich et al.
yy <- read.csv("Trimmed.0.05.phyloSeq.csv", header = TRUE)
head(yy)
# run setFactorFunction.R
# function for this saved in github R basics folder
yy[["t... |
Groc <- read.transactions("~/dlr/okplease.csv", sep=",")
Groc
summary(Groc)
inspect(Groc[1:3])
itemFrequency(Groc[,1:6])
itemFrequencyPlot(Groc, support=0.3)
m1<-apriori(Groc, parameter = list(support =0.007, confidence =0.25, minlen=2))
m1
summary(m1)
inspect(m1[1:2])
inspect(sort(m1, by="lift")[1:15])
m2 <... | /apriori.R | no_license | rajshreeee/events-association | R | false | false | 471 | r | Groc <- read.transactions("~/dlr/okplease.csv", sep=",")
Groc
summary(Groc)
inspect(Groc[1:3])
itemFrequency(Groc[,1:6])
itemFrequencyPlot(Groc, support=0.3)
m1<-apriori(Groc, parameter = list(support =0.007, confidence =0.25, minlen=2))
m1
summary(m1)
inspect(m1[1:2])
inspect(sort(m1, by="lift")[1:15])
m2 <... |
# Created by Oleksandr Sorochynskyi
# On 17 08 18
source('~/IdV/R/conditional.R')
n0 <- 25
n1 <- 10
m0 <- bin_fullfield(1:n0,cell.type= 1);
m1 <- bin_fullfield(1:n1,cell.type= 6);
m <- array(NA, dim=c(n1+n0,dim(m0)[2],dim(m0)[3]))
m[1:n0,,] <- m0;
m[-(1:n0),,] <- m1;
n.rep <- 1000;
filename <- "cov/condi... | /cond_estim_cov_on_off.R | no_license | Chirurgus/discrete_copula | R | false | false | 2,688 | r | # Created by Oleksandr Sorochynskyi
# On 17 08 18
source('~/IdV/R/conditional.R')
n0 <- 25
n1 <- 10
m0 <- bin_fullfield(1:n0,cell.type= 1);
m1 <- bin_fullfield(1:n1,cell.type= 6);
m <- array(NA, dim=c(n1+n0,dim(m0)[2],dim(m0)[3]))
m[1:n0,,] <- m0;
m[-(1:n0),,] <- m1;
n.rep <- 1000;
filename <- "cov/condi... |
library(secr)
load("inputs.RData")
# is density affected by site
mClosedD2 <- secr.fit(cptr_hst, model=list(D~session, g0~session), mask=maskClosed, detectfn=1, CL=FALSE)
saveRDS(mClosedD2, file = "mClosedD2.rds") | /hpc18.R | no_license | samual-williams/Hyaena-density | R | false | false | 216 | r | library(secr)
load("inputs.RData")
# is density affected by site
mClosedD2 <- secr.fit(cptr_hst, model=list(D~session, g0~session), mask=maskClosed, detectfn=1, CL=FALSE)
saveRDS(mClosedD2, file = "mClosedD2.rds") |
##########################################################################################
# Generate plots
#
# - data set: AML-sim
# - plot type: performance metrics
# - method: diffcyt-DA-voom
#
# - supplementary results: varying random seeds for clustering
#
# Lukas Weber, May 2018
###############################... | /AML_sim/3_generate_plots/supp_random_seeds_clustering/plots_AML_sim_diffcyt_DA_voom_supp_random_seeds_clustering.R | permissive | lmweber/diffcyt-evaluations | R | false | false | 7,056 | r | ##########################################################################################
# Generate plots
#
# - data set: AML-sim
# - plot type: performance metrics
# - method: diffcyt-DA-voom
#
# - supplementary results: varying random seeds for clustering
#
# Lukas Weber, May 2018
###############################... |
test_that("system v semaphores work", {
skip_on_os("windows")
sid <- semv_open(1)
semv_wait(sid)
semv_post(sid)
semv_wait(sid)
semv_unlink(sid)
expect_error(semv_wait(sid))
expect_error(semv_post(sid))
expect_error(semv_unlink(sid))
expect_error(semv_open(-1))
})
test_that("undo works for system v... | /tests/testthat/test-semv.R | permissive | jfontestad/bettermc | R | false | false | 1,057 | r | test_that("system v semaphores work", {
skip_on_os("windows")
sid <- semv_open(1)
semv_wait(sid)
semv_post(sid)
semv_wait(sid)
semv_unlink(sid)
expect_error(semv_wait(sid))
expect_error(semv_post(sid))
expect_error(semv_unlink(sid))
expect_error(semv_open(-1))
})
test_that("undo works for system v... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_old.R
\docType{data}
\name{methData_Mvalues_CODAM_F2_cleaned}
\alias{methData_Mvalues_CODAM_F2_cleaned}
\title{DNA methylation data (M-values) for the CODAM cohort (Outdated)}
\format{
An object of class \code{"SummarizedExperiment"}; se... | /BBMRIomics/man/methData_Mvalues_CODAM_F2_cleaned.Rd | no_license | bbmri-nl/BBMRIomics | R | false | true | 2,291 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_old.R
\docType{data}
\name{methData_Mvalues_CODAM_F2_cleaned}
\alias{methData_Mvalues_CODAM_F2_cleaned}
\title{DNA methylation data (M-values) for the CODAM cohort (Outdated)}
\format{
An object of class \code{"SummarizedExperiment"}; se... |
#Linear Model and Strip Plot
dat <- read.csv("../data/mal.fem.comp.csv")
disp <- c(dat$males, dat$females)
sex <- rep(c("Male", "Female"), each = 23)
line <- rep(dat$X, times = 2)
dat <- data.frame(disp, sex, line)
#Linear Model of dispersal, sex, and line
library(nlme)
fit <- lme(disp ~ sex, random = list(... | /rscripts/plot.lm.strip.R | no_license | coleoguy/dispersal | R | false | false | 1,776 | r | #Linear Model and Strip Plot
dat <- read.csv("../data/mal.fem.comp.csv")
disp <- c(dat$males, dat$females)
sex <- rep(c("Male", "Female"), each = 23)
line <- rep(dat$X, times = 2)
dat <- data.frame(disp, sex, line)
#Linear Model of dispersal, sex, and line
library(nlme)
fit <- lme(disp ~ sex, random = list(... |
testlist <- list(b = c(-16711936L, NA, 0L, -1L, -1610547456L, 16722688L, 2883328L, -16776961L, 3932159L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -24576L, -16776961L, 721420543L, 3866879L, -1L, -1L, -1610547456L, 16722688L, 16711739L, NA, 16713904L, -174476... | /mcga/inst/testfiles/ByteVectorToDoubles/libFuzzer_ByteVectorToDoubles/ByteVectorToDoubles_valgrind_files/1612761163-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 986 | r | testlist <- list(b = c(-16711936L, NA, 0L, -1L, -1610547456L, 16722688L, 2883328L, -16776961L, 3932159L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -1L, -24576L, -16776961L, 721420543L, 3866879L, -1L, -1L, -1610547456L, 16722688L, 16711739L, NA, 16713904L, -174476... |
# -------------------------------------
# UI for the NBA simulation app
#
# By: alberto.sanchez.rodelgo@gmail.com
# -------------------------------------
library(shinythemes)
library(shinyBS)
# use javascript
library(shinyjs)
library(V8)
# load functions and global data
source("global_utils.R", local = TRUE)
tagList(... | /ui.R | no_license | asRodelgo/NBA | R | false | false | 2,248 | r | # -------------------------------------
# UI for the NBA simulation app
#
# By: alberto.sanchez.rodelgo@gmail.com
# -------------------------------------
library(shinythemes)
library(shinyBS)
# use javascript
library(shinyjs)
library(V8)
# load functions and global data
source("global_utils.R", local = TRUE)
tagList(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/applyGroupCountThreshold.R
\name{applyGroupCountThreshold}
\alias{applyGroupCountThreshold}
\title{Utility function to check for minimum group membership in a dataframe}
\usage{
applyGroupCountThreshold(.data, ..., threshold = 10)
}
\argument... | /man/applyGroupCountThreshold.Rd | no_license | cusom/CUSOM.ShinyHelpers | R | false | true | 794 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/applyGroupCountThreshold.R
\name{applyGroupCountThreshold}
\alias{applyGroupCountThreshold}
\title{Utility function to check for minimum group membership in a dataframe}
\usage{
applyGroupCountThreshold(.data, ..., threshold = 10)
}
\argument... |
### Generate Data for Simulation - BMDS, BMDL ###
### Date - 06/20/19 ###
### Written by SL ###
# N_i is fixed as 50
# Four Dose level - 0, 25, 50, 75
# Logistic model ~ Parameter estimates with smallest AIC
rm(list=ls())
getwd()
setwd('/Users/sooyeonglim/Desktop/r_temp')
# Set Seed
set.seed(1234)
d_ori... | /sim_data_generation.R | no_license | Sooyeong/Bayesian_BMD | R | false | false | 2,744 | r | ### Generate Data for Simulation - BMDS, BMDL ###
### Date - 06/20/19 ###
### Written by SL ###
# N_i is fixed as 50
# Four Dose level - 0, 25, 50, 75
# Logistic model ~ Parameter estimates with smallest AIC
rm(list=ls())
getwd()
setwd('/Users/sooyeonglim/Desktop/r_temp')
# Set Seed
set.seed(1234)
d_ori... |
bias_corrected_logit =
function(
Y_0, ## response in controll group
Y_1, ## response in treatment group
T_0, ## time in controll group dim -- matrix
T_1 ## time in treatment group dim -- matrix
)
{
## sample sizes
n_0 = NROW(Y_0)
n_1 = NROW(Y_1)
## estimated quanities
Sigma_0 = var(T_0) ... | /TrendUtilities/R/bias_corrected_logit.R | no_license | rMassimiliano/TimeChangingPopulation | R | false | false | 1,092 | r | bias_corrected_logit =
function(
Y_0, ## response in controll group
Y_1, ## response in treatment group
T_0, ## time in controll group dim -- matrix
T_1 ## time in treatment group dim -- matrix
)
{
## sample sizes
n_0 = NROW(Y_0)
n_1 = NROW(Y_1)
## estimated quanities
Sigma_0 = var(T_0) ... |
CompanyBill=read.table("/Users/skitimoon/Dropbox/2018_1SP/MATH454/Lab/Lab03/CompanyBill.txt",header = TRUE)
dim(CompanyBill)
CompanyBill = CompanyBill[-which(CompanyBill==0),]
dim(CompanyBill)
colnames(CompanyBill) = c("V1","V2","V3","V4","V5","V6","V7")
#############################################################... | /Lab03/Lab03.R | no_license | skitimo/MATH454_Lab | R | false | false | 3,454 | r |
CompanyBill=read.table("/Users/skitimoon/Dropbox/2018_1SP/MATH454/Lab/Lab03/CompanyBill.txt",header = TRUE)
dim(CompanyBill)
CompanyBill = CompanyBill[-which(CompanyBill==0),]
dim(CompanyBill)
colnames(CompanyBill) = c("V1","V2","V3","V4","V5","V6","V7")
#############################################################... |
#'Visualize distance object
#'
#'Plot the result of \code{\link{RED_dist}} (or any dist object) in a variety of ways. For scatter plots, Multidimensional scaling (\code{link{cmdscale}}) is used to summarize the distance matrix in 2, or 3 dimenions. For dendrograms, Ward's clustering is used \code{link{hclust}} (method ... | /R/RED_plot.R | no_license | ehrlichd/RED | R | false | false | 1,886 | r | #'Visualize distance object
#'
#'Plot the result of \code{\link{RED_dist}} (or any dist object) in a variety of ways. For scatter plots, Multidimensional scaling (\code{link{cmdscale}}) is used to summarize the distance matrix in 2, or 3 dimenions. For dendrograms, Ward's clustering is used \code{link{hclust}} (method ... |
# Preliminary analysis for Pauline study comparing TECSE and TRC
# DVM Bishop, 24th April 2017
# Updated the plots and consolidated into one plot. - p.thompson 05/06/2017
# set working directory for Mac;
#setwd("c://Users//pthompson//Dropbox/Pauline_TECSE_TRC")
#setwd("~/Dropbox/Pauline_TECSE_TRC")
#You will n... | /DB_prelim_analysis_PT updated plots.R | no_license | oscci/TECSE | R | false | false | 5,212 | r | # Preliminary analysis for Pauline study comparing TECSE and TRC
# DVM Bishop, 24th April 2017
# Updated the plots and consolidated into one plot. - p.thompson 05/06/2017
# set working directory for Mac;
#setwd("c://Users//pthompson//Dropbox/Pauline_TECSE_TRC")
#setwd("~/Dropbox/Pauline_TECSE_TRC")
#You will n... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dfareporting_objects.R
\name{CreativeField}
\alias{CreativeField}
\title{CreativeField Object}
\usage{
CreativeField(accountId = NULL, advertiserId = NULL,
advertiserIdDimensionValue = NULL, id = NULL, name = NULL,
subaccountId = NULL)
}
... | /googledfareportingv27.auto/man/CreativeField.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 1,010 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dfareporting_objects.R
\name{CreativeField}
\alias{CreativeField}
\title{CreativeField Object}
\usage{
CreativeField(accountId = NULL, advertiserId = NULL,
advertiserIdDimensionValue = NULL, id = NULL, name = NULL,
subaccountId = NULL)
}
... |
# Shiny UI logic
suppressWarnings(library(shiny))
suppressWarnings(library(markdown))
set.seed(12345)
shinyUI(navbarPage("Coursera's Data Science (Capstone) - NextGEN NLP word predictor",
tabPanel("Predict the Next Word",
HTML("<strong>Author: Hariharan D</st... | /ui.R | no_license | coolfox0407/capstone | R | false | false | 2,144 | r |
# Shiny UI logic
suppressWarnings(library(shiny))
suppressWarnings(library(markdown))
set.seed(12345)
shinyUI(navbarPage("Coursera's Data Science (Capstone) - NextGEN NLP word predictor",
tabPanel("Predict the Next Word",
HTML("<strong>Author: Hariharan D</st... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sf_to_raster.R
\name{sf_to_raster}
\alias{sf_to_raster}
\title{SF to Raster}
\usage{
sf_to_raster(sf, resolution)
}
\arguments{
\item{sf}{and sf object}
\item{resolution}{a numeric defining the resolution of the output raster}
}
\value{
a ra... | /man/sf_to_raster.Rd | permissive | MatthewJWhittle/spatialutils | R | false | true | 508 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sf_to_raster.R
\name{sf_to_raster}
\alias{sf_to_raster}
\title{SF to Raster}
\usage{
sf_to_raster(sf, resolution)
}
\arguments{
\item{sf}{and sf object}
\item{resolution}{a numeric defining the resolution of the output raster}
}
\value{
a ra... |
#' phenology_MHmcmc_p generates set of parameters to be used with phenology_MHmcmc()
#' @title Generates set of parameters to be used with phenology_MHmcmc()
#' @author Marc Girondot
#' @return A matrix with the parameters
#' @param result An object obtained after a fit_phenology() fit
#' @param default.density The def... | /R/phenology_MHmcmc_p.R | no_license | cran/phenology | R | false | false | 21,818 | r | #' phenology_MHmcmc_p generates set of parameters to be used with phenology_MHmcmc()
#' @title Generates set of parameters to be used with phenology_MHmcmc()
#' @author Marc Girondot
#' @return A matrix with the parameters
#' @param result An object obtained after a fit_phenology() fit
#' @param default.density The def... |
#Formacao Cientista de Dados - Fernando Amaral
install.packages("arules")
library(arules)
transacoes <-read.transactions(file.choose(),format="basket",sep=",")
transacoes
inspect(transacoes)
image(transacoes)
regras <- apriori(transacoes, parameter= list(supp=0.5, conf=0.5))
regras
summary(regras)
insp... | /Udemy/Formacao Cientista de Dados/Resources/scripts 06/6.1.Apriori.R | permissive | tarsoqueiroz/Rlang | R | false | false | 615 | r | #Formacao Cientista de Dados - Fernando Amaral
install.packages("arules")
library(arules)
transacoes <-read.transactions(file.choose(),format="basket",sep=",")
transacoes
inspect(transacoes)
image(transacoes)
regras <- apriori(transacoes, parameter= list(supp=0.5, conf=0.5))
regras
summary(regras)
insp... |
# Using boosting with XGBoost (best model)
# 20 predictors used in this best model
# This resulted in lowest test RMSE of 60.47 (private) and 53.19 (public)
# Setting up inputs to tune model
trt <- designTreatmentsZ(dframe=train_reduced,
varlist=names(train_reduced)[2:21])
newvars <- ... | /R/model13_xgboost_bestmodel.R | no_license | markielokie/predict-airbnb-prices-nyc | R | false | false | 1,834 | r | # Using boosting with XGBoost (best model)
# 20 predictors used in this best model
# This resulted in lowest test RMSE of 60.47 (private) and 53.19 (public)
# Setting up inputs to tune model
trt <- designTreatmentsZ(dframe=train_reduced,
varlist=names(train_reduced)[2:21])
newvars <- ... |
setwd("~/Dropbox/Univ/masterThesis/analysis/20181106/")
silent = res$amplitude1 < 10
glut = res$nbqx < 0.1 & !silent
nonglut = !silent & !glut
cc = read.csv("cumtrapz.csv", sep = " ")
cellid = gsub("(.*)/cell_", "\\1/", as.character(cc$FILENAME))
cc$DATE = gsub("(\\d+)[AB]?/(\\d+)_\\d{4}.abf$", "\\1", cellid)
cc$CE... | /20181106/figure8.R | no_license | HippocampusGirl/MasterThesis | R | false | false | 20,474 | r | setwd("~/Dropbox/Univ/masterThesis/analysis/20181106/")
silent = res$amplitude1 < 10
glut = res$nbqx < 0.1 & !silent
nonglut = !silent & !glut
cc = read.csv("cumtrapz.csv", sep = " ")
cellid = gsub("(.*)/cell_", "\\1/", as.character(cc$FILENAME))
cc$DATE = gsub("(\\d+)[AB]?/(\\d+)_\\d{4}.abf$", "\\1", cellid)
cc$CE... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/setters.R
\name{set_dependent_variable}
\alias{set_dependent_variable}
\title{Set dependent variable.}
\usage{
set_dependent_variable(.data, dependent_variable)
}
\arguments{
\item{.data}{A data.frame; the data to be analyzed.}
\item{depende... | /R/man/set_dependent_variable.Rd | permissive | youngahn/easyml | R | false | true | 1,156 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/setters.R
\name{set_dependent_variable}
\alias{set_dependent_variable}
\title{Set dependent variable.}
\usage{
set_dependent_variable(.data, dependent_variable)
}
\arguments{
\item{.data}{A data.frame; the data to be analyzed.}
\item{depende... |
###################################################################
# Data Visualization Final Project: NOAA Buoy Station EDA
# Version 1.0
# See ui.R for updates and todo list
###################################################################
library(shiny)
library(shinydashboard)
library(shinyWidgets)
librar... | /2_Shiny/server.R | no_license | kclt/JHU_Data_Visualization_Project | R | false | false | 24,663 | r | ###################################################################
# Data Visualization Final Project: NOAA Buoy Station EDA
# Version 1.0
# See ui.R for updates and todo list
###################################################################
library(shiny)
library(shinydashboard)
library(shinyWidgets)
librar... |
## Programming Assignment 2: create nonsingular matrix --> cache;
## compute inverse of cached matrix
## creates a special "matrix" object that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
# sets matrix value, clears any prev matrix
set <- function(y) {
... | /cachematrix.R | no_license | alittlestats/ProgrammingAssignment2 | R | false | false | 1,299 | r | ## Programming Assignment 2: create nonsingular matrix --> cache;
## compute inverse of cached matrix
## creates a special "matrix" object that can cache its inverse
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
# sets matrix value, clears any prev matrix
set <- function(y) {
... |
# Testing all models at same time -----------------------------------
models <- c("rf","Rborist","lda",'naive_bayes','kknn','loclda',
'wsrf','avNNet','monmlp','adaboost','gbm', 'hda')
train_set <- train_data_playoffs %>% select(-year,-champ,-runner, -team,-rank,-pts_perc,-gp,-year,-pk_perc,-pp_per... | /playoffs-function.R | no_license | psdupvi/nhl-analysis | R | false | false | 2,220 | r | # Testing all models at same time -----------------------------------
models <- c("rf","Rborist","lda",'naive_bayes','kknn','loclda',
'wsrf','avNNet','monmlp','adaboost','gbm', 'hda')
train_set <- train_data_playoffs %>% select(-year,-champ,-runner, -team,-rank,-pts_perc,-gp,-year,-pk_perc,-pp_per... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/elg.R
\name{warning_empty}
\alias{warning_empty}
\title{Produces warning for an empty field}
\usage{
warning_empty(field)
}
\arguments{
\item{field}{The proper name of the field - gets passed to output string to better read}
}
\description{
C... | /man/warning_empty.Rd | no_license | benharden27/sea | R | false | true | 439 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/elg.R
\name{warning_empty}
\alias{warning_empty}
\title{Produces warning for an empty field}
\usage{
warning_empty(field)
}
\arguments{
\item{field}{The proper name of the field - gets passed to output string to better read}
}
\description{
C... |
library(ggplot2)
cov_met <- read.csv("/home/lucas/ISGlobal/Chip_Seq/DATA/Aligns/q5/10G_me_sort_q5_fullcoverage.bed", header = FALSE, sep ="\t", quote = "", row.names = NULL, stringsAsFactors = FALSE)
cov_ac <- read.csv("/home/lucas/ISGlobal/Chip_Seq/DATA/Aligns/q5/10G_ac_sort_q5_fullcoverage.bed", header = FALSE, se... | /plot_met_ac2.R | no_license | LucasMichelTodo/Old_Scripts | R | false | false | 2,496 | r | library(ggplot2)
cov_met <- read.csv("/home/lucas/ISGlobal/Chip_Seq/DATA/Aligns/q5/10G_me_sort_q5_fullcoverage.bed", header = FALSE, sep ="\t", quote = "", row.names = NULL, stringsAsFactors = FALSE)
cov_ac <- read.csv("/home/lucas/ISGlobal/Chip_Seq/DATA/Aligns/q5/10G_ac_sort_q5_fullcoverage.bed", header = FALSE, se... |
print.inpoOutput <-
function (x,...) {
res.inpoOutput <- x
if (!inherits(res.inpoOutput, "inpoOutput")) stop ("no convenient data")
cat("**InPosition output data**\n")
cat("*Contains the following objects:\n\n")
res <- array("", c(2, 2), list(1:2, c("name", "description")))
res[1,] <- c("$Fixed.Data","A... | /InPosition/R/print.inpoOutput.R | no_license | LukeMoraglia/ExPosition1 | R | false | false | 509 | r | print.inpoOutput <-
function (x,...) {
res.inpoOutput <- x
if (!inherits(res.inpoOutput, "inpoOutput")) stop ("no convenient data")
cat("**InPosition output data**\n")
cat("*Contains the following objects:\n\n")
res <- array("", c(2, 2), list(1:2, c("name", "description")))
res[1,] <- c("$Fixed.Data","A... |
\name{print.rapport.meta}
\alias{print.rapport.meta}
\title{Print Template Metadata}
\usage{
\method{print}{rapport.meta}(x, ...)
}
\arguments{
\item{x}{object of class \code{rapport.meta}. See
\code{\link{rapport.meta}} for details.}
\item{...}{ignored}
}
\description{
Prints out the contents of template metada... | /man/print.rapport.meta.Rd | no_license | abhik1368/rapport | R | false | false | 352 | rd | \name{print.rapport.meta}
\alias{print.rapport.meta}
\title{Print Template Metadata}
\usage{
\method{print}{rapport.meta}(x, ...)
}
\arguments{
\item{x}{object of class \code{rapport.meta}. See
\code{\link{rapport.meta}} for details.}
\item{...}{ignored}
}
\description{
Prints out the contents of template metada... |
#!/usr/bin/env Rscript
########################################
## filename: figure-predict-literature.R
## author: Dylan Morris <dhmorris@princeton.edu>
## predict exact literature half-lives
## using SARS-CoV-2 mechanistic parameters
#######################################
suppressPackageStartupMessages(library(dpl... | /src/figures/figure-predict-literature.R | permissive | dylanhmorris/sars-cov-2-temp-humidity | R | false | false | 12,612 | r | #!/usr/bin/env Rscript
########################################
## filename: figure-predict-literature.R
## author: Dylan Morris <dhmorris@princeton.edu>
## predict exact literature half-lives
## using SARS-CoV-2 mechanistic parameters
#######################################
suppressPackageStartupMessages(library(dpl... |
library(testthat)
library(oshcba)
context("Test obter_parametros()")
inputs = carregar_inputs("Dados.xlsx")
parametros = obter_parametros(inputs)
n_cenarios = nrow(obter_cenarios(inputs))
n_linhas_parametros = inputs$Configs$AnosaSeremSimulados * inputs$Configs$Replicacoes * n_cenarios
test_that("obter_parametros ret... | /tests/testthat/testobter_parametros.R | no_license | pedroliman/oshcba | R | false | false | 743 | r | library(testthat)
library(oshcba)
context("Test obter_parametros()")
inputs = carregar_inputs("Dados.xlsx")
parametros = obter_parametros(inputs)
n_cenarios = nrow(obter_cenarios(inputs))
n_linhas_parametros = inputs$Configs$AnosaSeremSimulados * inputs$Configs$Replicacoes * n_cenarios
test_that("obter_parametros ret... |
#' @title add_annual_peak_flow
#'
#' @description Calculate annual peak flow
#'
#' @param flow.ts numeric USGS flow time series
#'
#' @importFrom dplyr group_by
#' @importFrom plyr mutate
#'
#' @export
#'
#' @return flow.ts.pk numeric USGS annual peak flow
#'
#' @examples
#' \dontrun{library(dataRetrieval)
#' si... | /R/flow_stats.R | permissive | aappling-usgs/trainR | R | false | false | 1,626 | r | #' @title add_annual_peak_flow
#'
#' @description Calculate annual peak flow
#'
#' @param flow.ts numeric USGS flow time series
#'
#' @importFrom dplyr group_by
#' @importFrom plyr mutate
#'
#' @export
#'
#' @return flow.ts.pk numeric USGS annual peak flow
#'
#' @examples
#' \dontrun{library(dataRetrieval)
#' si... |
#------------------------------------------------------------------------------------------#
#------------------------------------------------------------------------------------------#
# This function plots the map for the Amazon forest. #
#----------------------------------------... | /tower_gapfilling_preproc/Rsc/amazonmap.r | no_license | mpaiao/ED2_Support_Files | R | false | false | 2,900 | r | #------------------------------------------------------------------------------------------#
#------------------------------------------------------------------------------------------#
# This function plots the map for the Amazon forest. #
#----------------------------------------... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nodeFilling.R
\name{nodeFilling}
\alias{nodeFilling}
\title{Produces a grid of locations inside the region boundary.}
\usage{
nodeFilling(poly, node_spacing, hole_list = NULL)
}
\arguments{
\item{poly}{A matrix that contains the vertices of t... | /man/nodeFilling.Rd | no_license | cran/latticeDensity | R | false | true | 1,847 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nodeFilling.R
\name{nodeFilling}
\alias{nodeFilling}
\title{Produces a grid of locations inside the region boundary.}
\usage{
nodeFilling(poly, node_spacing, hole_list = NULL)
}
\arguments{
\item{poly}{A matrix that contains the vertices of t... |
if(!file.exists("exdata-data-household_power_consumption.zip")) {
temp <- tempfile()
download.file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",temp)
file <- unzip(temp)
unlink(temp)
}
power <- read.table(file, header=T, sep=";")
power$Date <- as.Date(power$Date, format... | /plot3.R | no_license | rvaldivieso/ExData_Plotting1 | R | false | false | 1,367 | r | if(!file.exists("exdata-data-household_power_consumption.zip")) {
temp <- tempfile()
download.file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",temp)
file <- unzip(temp)
unlink(temp)
}
power <- read.table(file, header=T, sep=";")
power$Date <- as.Date(power$Date, format... |
\name{murchison}
\alias{murchison}
\docType{data}
\title{
Murchison gold deposits
}
\description{
Data recording the spatial locations of gold deposits and associated
geological features in the Murchison area of Western Australia.
Extracted from a large scale (1:500,000) study of the
Murchison area by the Geo... | /man/murchison.Rd | no_license | Geoany/spatstat | R | false | false | 4,473 | rd | \name{murchison}
\alias{murchison}
\docType{data}
\title{
Murchison gold deposits
}
\description{
Data recording the spatial locations of gold deposits and associated
geological features in the Murchison area of Western Australia.
Extracted from a large scale (1:500,000) study of the
Murchison area by the Geo... |
rankall <- function(outcome, num = "best") {
## Read outcome data
data <- list.files("rprog_data_ProgAssignment3-data",
full.names = TRUE, pattern = ".csv")
data <- read.csv(data[2])[c(2,7,11,17,23)]
## Coerces data columns to numeric, suppress warning... | /1-r-programming/week4/rankall.R | no_license | ryancey1/datascience-coursera | R | false | false | 2,521 | r | rankall <- function(outcome, num = "best") {
## Read outcome data
data <- list.files("rprog_data_ProgAssignment3-data",
full.names = TRUE, pattern = ".csv")
data <- read.csv(data[2])[c(2,7,11,17,23)]
## Coerces data columns to numeric, suppress warning... |
#install.packages("MASS")
library(MASS)
data("Cars93") # we will be using this dataset
#######################################
# Data Massaging
#######################################
#1 - How to convert character variable to numeric?
unique(Cars93$Origin) # checking unique values in origin variable
Cars93$originbin... | /coding_session_1.R | no_license | PalakKaur/R-coding-sessions | R | false | false | 2,578 | r | #install.packages("MASS")
library(MASS)
data("Cars93") # we will be using this dataset
#######################################
# Data Massaging
#######################################
#1 - How to convert character variable to numeric?
unique(Cars93$Origin) # checking unique values in origin variable
Cars93$originbin... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 45842
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 45650
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 45650
c
c Input Parameter (command line, ... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/reachqu_query60_1344/reachqu_query60_1344.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 822 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 45842
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 45650
c
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 45650
c
c Input Parameter (command line, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dsl.R
\name{splash_plugins}
\alias{splash_plugins}
\title{Enable or disable browser plugins (e.g. Flash).}
\usage{
splash_plugins(splash_obj, enable = FALSE)
}
\arguments{
\item{splash_obj}{splashr object}
\item{enable}{logical}
}
\descripti... | /man/splash_plugins.Rd | permissive | hrbrmstr/splashr | R | false | true | 783 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dsl.R
\name{splash_plugins}
\alias{splash_plugins}
\title{Enable or disable browser plugins (e.g. Flash).}
\usage{
splash_plugins(splash_obj, enable = FALSE)
}
\arguments{
\item{splash_obj}{splashr object}
\item{enable}{logical}
}
\descripti... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.glue_package.R
\docType{package}
\name{paws.glue-package}
\alias{paws.glue}
\alias{paws.glue-package}
\title{paws.glue: AWS Glue}
\description{
Defines the public endpoint for the AWS Glue
service.
}
\author{
\strong{Maintainer}: Dav... | /service/paws.glue/man/paws.glue-package.Rd | permissive | CR-Mercado/paws | R | false | true | 534 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.glue_package.R
\docType{package}
\name{paws.glue-package}
\alias{paws.glue}
\alias{paws.glue-package}
\title{paws.glue: AWS Glue}
\description{
Defines the public endpoint for the AWS Glue
service.
}
\author{
\strong{Maintainer}: Dav... |
if (!require("devtools")) install.packages("devtools")
devtools::install_github("ChiHangChen/KeyboardSimulator")
library(KeyboardSimulator)
mouse.move(412,885)
mouse.click("right")
mouse.move(392,729,duration = 0.5)
mouse.click()
Sys.sleep(1)
keybd.press("N+A+V+E+R")
Sys.sleep(0.5)
keybd.press("enter")
Sys.sleep(1)
... | /R_RPA/RPA_naver_web.R | permissive | momo3574/R_AIRIM | R | false | false | 650 | r | if (!require("devtools")) install.packages("devtools")
devtools::install_github("ChiHangChen/KeyboardSimulator")
library(KeyboardSimulator)
mouse.move(412,885)
mouse.click("right")
mouse.move(392,729,duration = 0.5)
mouse.click()
Sys.sleep(1)
keybd.press("N+A+V+E+R")
Sys.sleep(0.5)
keybd.press("enter")
Sys.sleep(1)
... |
library(rms)
library(tidyverse)
library(zeligverse)
library(nycflights13)
###
flights2 <- flights %>% filter(!is.na(dep_delay) & !is.na(dep_time) & !is.na(origin))
model1 <- flights2 %>% zelig(dep_delay~dep_time + origin,data=.,model="ls")
summary(model1)
model_ols <- flights2 %>% ols(dep_delay~dep_time + origin,dat... | /clustered_SE_zelig_robcov_v4.R | no_license | JonnyPhillips/Curso_R | R | false | false | 6,842 | r | library(rms)
library(tidyverse)
library(zeligverse)
library(nycflights13)
###
flights2 <- flights %>% filter(!is.na(dep_delay) & !is.na(dep_time) & !is.na(origin))
model1 <- flights2 %>% zelig(dep_delay~dep_time + origin,data=.,model="ls")
summary(model1)
model_ols <- flights2 %>% ols(dep_delay~dep_time + origin,dat... |
boxAndWhisker <- function () {
#reading data from csv file
ImpF <- read.csv("C:/Users/GeorgiDanovski/Desktop/RPlot1/RAD1_All.csv")
for(i in 1:ncol(ImpF))
{
#find right columns
if (!i %% 2){
next
}
j <- i+1
#SingleData
df <- ImpF[,c(i,j)]
#name
name <- colnames(df)[2]
... | /Scripts/boxAndWhiskerPlot.R | permissive | GDanovski/R-scripts | R | false | false | 652 | r | boxAndWhisker <- function () {
#reading data from csv file
ImpF <- read.csv("C:/Users/GeorgiDanovski/Desktop/RPlot1/RAD1_All.csv")
for(i in 1:ncol(ImpF))
{
#find right columns
if (!i %% 2){
next
}
j <- i+1
#SingleData
df <- ImpF[,c(i,j)]
#name
name <- colnames(df)[2]
... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
## Taking a Null vector
i <- NULL
## Setting up the matrix
set <- function( matrix ) {
m <<- matrix
i <<- NULL
}
##... | /cachematrix.R | no_license | pkt2/ProgrammingAssignment2 | R | false | false | 1,136 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
## Taking a Null vector
i <- NULL
## Setting up the matrix
set <- function( matrix ) {
m <<- matrix
i <<- NULL
}
##... |
source("adaptconcept2_sFFLHD_R6.R")
library(ggplot2)
base_breaks <- function(n = 10){
function(x) {
axisTicks(log10(range(x, na.rm = TRUE)), log = TRUE, n = n)
}
}
compare.adaptR6 <- R6::R6Class("compare.adaptR6",
public=list(
func = NULL,
D = NULL,
L = NULL,
b = NULL,
batches = NULL,
... | /compare_adaptconceptR6.R | no_license | CollinErickson/DOE-code | R | false | false | 29,496 | r | source("adaptconcept2_sFFLHD_R6.R")
library(ggplot2)
base_breaks <- function(n = 10){
function(x) {
axisTicks(log10(range(x, na.rm = TRUE)), log = TRUE, n = n)
}
}
compare.adaptR6 <- R6::R6Class("compare.adaptR6",
public=list(
func = NULL,
D = NULL,
L = NULL,
b = NULL,
batches = NULL,
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NAcount.R
\name{NA.whole.sums}
\alias{NA.whole.sums}
\title{Sum of missing value in the whole dataframe}
\usage{
NA.whole.sums(data)
}
\arguments{
\item{data}{must be dataframe or matrix}
}
\value{
sum of missing value in the whole dataframe
... | /man/NA.whole.sums.Rd | no_license | cran/do | R | false | true | 484 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/NAcount.R
\name{NA.whole.sums}
\alias{NA.whole.sums}
\title{Sum of missing value in the whole dataframe}
\usage{
NA.whole.sums(data)
}
\arguments{
\item{data}{must be dataframe or matrix}
}
\value{
sum of missing value in the whole dataframe
... |
library(gganimate)
### Name: shadow_trail
### Title: A trail of evenly spaced old frames
### Aliases: shadow_trail
### ** Examples
anim <- ggplot(airquality, aes(Day, Temp, colour = factor(Month))) +
geom_point() +
transition_time(Day)
# Change distance between points
anim1 <- anim +
shadow_trail(0.02)
# St... | /data/genthat_extracted_code/gganimate/examples/shadow_trail.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 486 | r | library(gganimate)
### Name: shadow_trail
### Title: A trail of evenly spaced old frames
### Aliases: shadow_trail
### ** Examples
anim <- ggplot(airquality, aes(Day, Temp, colour = factor(Month))) +
geom_point() +
transition_time(Day)
# Change distance between points
anim1 <- anim +
shadow_trail(0.02)
# St... |
install.packages('reshape2')
install.packages('ggplot2')
install.packages('Hmisc')
install.packages('dplyr') | /requirements.R | no_license | JohnyMay/expert-umbrella | R | false | false | 108 | r | install.packages('reshape2')
install.packages('ggplot2')
install.packages('Hmisc')
install.packages('dplyr') |
# set the working directory and then use the following command to reload
# the data
#load('data.Rd')
d.train <- read.csv('training.csv', stringsAsFactors=F)
str(d.train)
head(d.train)
im.train <- d.train$Image
d.train$Image <- NULL
head(d.train)
# this one shows NA's where there are missing keypoints
summary(d.tr... | /Project/Source/Megan_Jasek_NNBaseline.R | no_license | mjasek114/w207-Kaggle-Facial-Keypoint-Detection | R | false | false | 4,251 | r | # set the working directory and then use the following command to reload
# the data
#load('data.Rd')
d.train <- read.csv('training.csv', stringsAsFactors=F)
str(d.train)
head(d.train)
im.train <- d.train$Image
d.train$Image <- NULL
head(d.train)
# this one shows NA's where there are missing keypoints
summary(d.tr... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TumorEvolution-package.R
\docType{package}
\name{TumorEvolution-package}
\alias{TumorEvolution}
\alias{TumorEvolution-package}
\title{TumorEvolution: What the Package Does (Title Case)}
\description{
More about what it does (maybe more than o... | /man/TumorEvolution-package.Rd | no_license | AxelitoMartin/TumorEvolution | R | false | true | 420 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/TumorEvolution-package.R
\docType{package}
\name{TumorEvolution-package}
\alias{TumorEvolution}
\alias{TumorEvolution-package}
\title{TumorEvolution: What the Package Does (Title Case)}
\description{
More about what it does (maybe more than o... |
rm(list = ls())
graphics.off()
setwd("C:/Users/Marius/Desktop/Simulation")
source("SVRGARCHKDE_Functions/Source_File/Source_SVRGARCHKDE.R")
###############################################################################
# Set parameters
####################################################################... | /Benchmark_Methods/Archive/KDE/KDE_VaR_V2.R | no_license | Marius239/SVR_GARCH_KDE | R | false | false | 1,688 | r | rm(list = ls())
graphics.off()
setwd("C:/Users/Marius/Desktop/Simulation")
source("SVRGARCHKDE_Functions/Source_File/Source_SVRGARCHKDE.R")
###############################################################################
# Set parameters
####################################################################... |
setwd("~/Work/project/data/")
dat <- read.table("enter_geno_family_meta.tab", header = T, stringsAsFactors = F, sep = "\t",row.names = NULL, quote = "")
dim(dat)
head(dat)
res <- read.table("entero_genome.blastn@card_np_homolog_filtered.tab_uniq", header = T, stringsAsFactors = F, sep = "\t")
met <- read.table("... | /Rscript.R | no_license | bougetsu/RepliconAnalysis | R | false | false | 12,315 | r | setwd("~/Work/project/data/")
dat <- read.table("enter_geno_family_meta.tab", header = T, stringsAsFactors = F, sep = "\t",row.names = NULL, quote = "")
dim(dat)
head(dat)
res <- read.table("entero_genome.blastn@card_np_homolog_filtered.tab_uniq", header = T, stringsAsFactors = F, sep = "\t")
met <- read.table("... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pc.R
\name{extract_pcs}
\alias{extract_pcs}
\title{Extract the PCs of a specific set of terms.}
\usage{
extract_pcs(path, terms)
}
\arguments{
\item{path}{Path to PC file.}
\item{terms}{Character vector of terms (or genes) to extract.}
}
\de... | /man/extract_pcs.Rd | permissive | SimonLarsen/higana | R | false | true | 377 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pc.R
\name{extract_pcs}
\alias{extract_pcs}
\title{Extract the PCs of a specific set of terms.}
\usage{
extract_pcs(path, terms)
}
\arguments{
\item{path}{Path to PC file.}
\item{terms}{Character vector of terms (or genes) to extract.}
}
\de... |
################################################################################
# Age Adjustment
################################################################################
rm(list=ls())
load("ModelResults.RData")
all_stuff <- ls()
rm(list=setdiff(all_stuff, c("fitPoly", "P", "N",
"Rival_1", "Rival_2", "MaxEx... | /Code/extrapolate_fits.R | no_license | babeheim/polygyny-puzzle | R | false | false | 3,661 | r | ################################################################################
# Age Adjustment
################################################################################
rm(list=ls())
load("ModelResults.RData")
all_stuff <- ls()
rm(list=setdiff(all_stuff, c("fitPoly", "P", "N",
"Rival_1", "Rival_2", "MaxEx... |
#:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "oil_spill")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "class")
lrn = makeLearner("... | /models/openml_oil_spill/classification_class/860fa858c1e3d1d8feb8b7c474c06f18/code.R | no_license | pysiakk/CaseStudies2019S | R | false | false | 740 | r | #:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "oil_spill")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "class")
lrn = makeLearner("... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/emuR-dataDocs.R
\docType{data}
\name{engassim}
\alias{engassim}
\title{Segment list of a sequence of syllable final n or N preceding k or g ,
isolated words single speaker, Australian English female from database
epgassim.}
\format{
segmentli... | /man/engassim.Rd | no_license | IPS-LMU/emuR | R | false | true | 375 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/emuR-dataDocs.R
\docType{data}
\name{engassim}
\alias{engassim}
\title{Segment list of a sequence of syllable final n or N preceding k or g ,
isolated words single speaker, Australian English female from database
epgassim.}
\format{
segmentli... |
# store_packages.R
#
# stores a list of your currently installed packages
# source: http://hlplab.wordpress.com/2012/06/01/transferring-installed-packages-between-different-installations-of-r/
tmp = installed.packages()
installedpackages = as.vector(tmp[is.na(tmp[,"Priority"]), 1])
save(installedpackages, file="~/.dot... | /admin-tools/store_packages.R | permissive | watchful-cluckets/demo-dotfiles | R | false | false | 353 | r | # store_packages.R
#
# stores a list of your currently installed packages
# source: http://hlplab.wordpress.com/2012/06/01/transferring-installed-packages-between-different-installations-of-r/
tmp = installed.packages()
installedpackages = as.vector(tmp[is.na(tmp[,"Priority"]), 1])
save(installedpackages, file="~/.dot... |
setwd('~/dataviz-fall-2013/bike-crash/')
library(maptools)
# a shape file of neighborghoods.
shapes <- readShapePoly("planning_neighborhoods/planning_neighborhoods.shp")
plot(shapes)
#a shape file of points from source.
crash_map <- readShapePoints("Bike.shp")
plot(crash_map)
map_data <- data.frame(shapes)
#form... | /annotated_chloropleth_map.R | no_license | chelsimoy/bike-crash | R | false | false | 688 | r |
setwd('~/dataviz-fall-2013/bike-crash/')
library(maptools)
# a shape file of neighborghoods.
shapes <- readShapePoly("planning_neighborhoods/planning_neighborhoods.shp")
plot(shapes)
#a shape file of points from source.
crash_map <- readShapePoints("Bike.shp")
plot(crash_map)
map_data <- data.frame(shapes)
#form... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/component.effect.R
\name{series.effect}
\alias{series.effect}
\title{Title}
\usage{
series.effect(
xrange = c(0.98, 1),
yrange = c(0, 1),
ncomp = c(1, 10, 25, 50, 100, 200, 400)
)
}
\arguments{
\item{xrange}{}
\item{yrange}{}
\item{nc... | /man/series.effect.Rd | no_license | anhnguyendepocen/SMRD | R | false | true | 474 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/component.effect.R
\name{series.effect}
\alias{series.effect}
\title{Title}
\usage{
series.effect(
xrange = c(0.98, 1),
yrange = c(0, 1),
ncomp = c(1, 10, 25, 50, 100, 200, 400)
)
}
\arguments{
\item{xrange}{}
\item{yrange}{}
\item{nc... |
##
## BioCro/R/Opc4photo.R by Fernando Ezequiel Miguez Copyright (C) 2007-2014
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 or 3 of the License
## (at your option... | /R/Opc4photo.R | no_license | Karlstefanrehn/biocro-copy | R | false | false | 36,564 | r | ##
## BioCro/R/Opc4photo.R by Fernando Ezequiel Miguez Copyright (C) 2007-2014
##
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
## the Free Software Foundation; either version 2 or 3 of the License
## (at your option... |
#' @title Print method for an object of class \code{orthoProjection}
#' @aliases print.orthoProjection
#' @usage \method{print}{orthoProjection}(x, ...)
#' @param x an object of class \code{orthoProjection} (as returned by the \code{orthoProjection} function).
#' @param ... arguments to be passed to methods (not yet f... | /R/print.orthoProjection.R | no_license | antoinestevens/resemble | R | false | false | 870 | r | #' @title Print method for an object of class \code{orthoProjection}
#' @aliases print.orthoProjection
#' @usage \method{print}{orthoProjection}(x, ...)
#' @param x an object of class \code{orthoProjection} (as returned by the \code{orthoProjection} function).
#' @param ... arguments to be passed to methods (not yet f... |
1+1
save.image("~/Fir.R.RData")
touch HelloWorld.md
library(dplyr)
featureNames <- read.table("UCI HAR Dataset/features.txt")
featureNames <- read.table("C:/Users/Admin/Desktop/Courseera/UCI HAR Dataset/features.txt")
activityLabels <- read.table("C:/Users/Admin/Desktop/Courseera/UCI HAR Dataset/activity_labels.txt", h... | /run_analysis.R | no_license | rama1181/Getting_cleaning_data-week4-assignment | R | false | false | 4,156 | r | 1+1
save.image("~/Fir.R.RData")
touch HelloWorld.md
library(dplyr)
featureNames <- read.table("UCI HAR Dataset/features.txt")
featureNames <- read.table("C:/Users/Admin/Desktop/Courseera/UCI HAR Dataset/features.txt")
activityLabels <- read.table("C:/Users/Admin/Desktop/Courseera/UCI HAR Dataset/activity_labels.txt", h... |
#Genomic Ranges
library(GenomicRanges) #Similar to IRanges with additional abilities to deal with chromosomal information
gr = GRanges(seqnames = c('chr1'), strand = c("+","-","+"), ranges = IRanges(start=c(1,3,5), width =3))
gr #strand can be +,- or * where * indicates either unknown or present on both strands
flank... | /References/GenomicRangesBasics.R | no_license | Nicoming/RNAseq_Pipeline | R | false | false | 1,009 | r | #Genomic Ranges
library(GenomicRanges) #Similar to IRanges with additional abilities to deal with chromosomal information
gr = GRanges(seqnames = c('chr1'), strand = c("+","-","+"), ranges = IRanges(start=c(1,3,5), width =3))
gr #strand can be +,- or * where * indicates either unknown or present on both strands
flank... |
## The following functions allow you to create and manipulate an instance of matrix with it's inverse cached.
##
## makeCacheMatrix creates a vector of methods to access a matrix instance with cached inverse.
makeCacheMatrix <- function(mat = matrix()) {
inv <- NULL
set <- function(x) {
mat <<- x
i... | /cachematrix.R | no_license | masuka/ProgrammingAssignment2 | R | false | false | 946 | r | ## The following functions allow you to create and manipulate an instance of matrix with it's inverse cached.
##
## makeCacheMatrix creates a vector of methods to access a matrix instance with cached inverse.
makeCacheMatrix <- function(mat = matrix()) {
inv <- NULL
set <- function(x) {
mat <<- x
i... |
test_that("rounding works", {
vec <- c(0.1234, 1.234, 12.34, 1234)
expect_equal(adapt_round(vec), c('0.12', '1.23', '12.3', '1,234'))
})
test_that("non-numeric input gets error", {
vec <- c("0.1234", "1.234", "12.34", "1234")
expect_error(adapt_round(vec), regexp = "should be numeric")
})
test_that("a... | /tests/testthat/test-adapt_round.R | no_license | bcjaeger/tibbleOne | R | false | false | 568 | r |
test_that("rounding works", {
vec <- c(0.1234, 1.234, 12.34, 1234)
expect_equal(adapt_round(vec), c('0.12', '1.23', '12.3', '1,234'))
})
test_that("non-numeric input gets error", {
vec <- c("0.1234", "1.234", "12.34", "1234")
expect_error(adapt_round(vec), regexp = "should be numeric")
})
test_that("a... |
# Project 2
# Please download the Data source Zip File
# Unzip the file and copy the files to your desired location
# Then please execute the "setwd()" command for that location as shown in the example below
# Read the source data from the file in the following path
setwd("C:/Users/wa82/Documents/Malleswari/Courser... | /plot2.R | no_license | SubbaiahM/ExData_Project2 | R | false | false | 992 | r | # Project 2
# Please download the Data source Zip File
# Unzip the file and copy the files to your desired location
# Then please execute the "setwd()" command for that location as shown in the example below
# Read the source data from the file in the following path
setwd("C:/Users/wa82/Documents/Malleswari/Courser... |
# Gabriel Hoffman
# March 4, 2015
#' plotCorrStructure
#'
#' Plot correlation structure of a gene based on random effects
#'
#' @param fit linear mixed model fit of a gene produced by lmer() or fitVarPartModel()
#' @param varNames variables in the metadata for which the correlation structure should be shown. Variable... | /R/plotCorrStructure.R | no_license | karawoo/variancePartition | R | false | false | 4,714 | r | # Gabriel Hoffman
# March 4, 2015
#' plotCorrStructure
#'
#' Plot correlation structure of a gene based on random effects
#'
#' @param fit linear mixed model fit of a gene produced by lmer() or fitVarPartModel()
#' @param varNames variables in the metadata for which the correlation structure should be shown. Variable... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/FeatSelResult.R
\name{FeatSelResult}
\alias{FeatSelResult}
\title{Result of feature selection.}
\description{
Container for results of feature selection.
Contains the obtained features, their performance values
and the optimization pa... | /man/FeatSelResult.Rd | no_license | dickoa/mlr | R | false | false | 1,047 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/FeatSelResult.R
\name{FeatSelResult}
\alias{FeatSelResult}
\title{Result of feature selection.}
\description{
Container for results of feature selection.
Contains the obtained features, their performance values
and the optimization pa... |
###############################################
##### Script for "Data manipulation in R" #####
###############################################
##### Preliminary 1: Set up workspace ###########
# Set up a new project in R Studio
# Where is your working directory?
# Are the files you need in your working directory?
#... | /Script/Working_Script.R | permissive | mqRusers/2017_03_DataManipulation | R | false | false | 5,265 | r | ###############################################
##### Script for "Data manipulation in R" #####
###############################################
##### Preliminary 1: Set up workspace ###########
# Set up a new project in R Studio
# Where is your working directory?
# Are the files you need in your working directory?
#... |
#------------------------------------------------------------------
# R defaults to mersenne twister
#------------------------------------------------------------------
set.seed(1)
RNGkind()
#------------------------------------------------------------------
# Dump the full state of the mersenne twister
# Convert R's ... | /lib/pymersennetwister/test_generate.R | permissive | jbjorne/CAMDA2014 | R | false | false | 926 | r | #------------------------------------------------------------------
# R defaults to mersenne twister
#------------------------------------------------------------------
set.seed(1)
RNGkind()
#------------------------------------------------------------------
# Dump the full state of the mersenne twister
# Convert R's ... |
#' @title Runs MI via norm package
#' @description Runs MI via norm package
#' @param dt_in tibble, to be imputed
#' @param num_m numeric, Default: 5, number of imputations
#' @param i numeric, the seed is defined as 666*i
#' @param n_iter numeric, number of iterations to be used in data
#' augmentation procedure
#' @p... | /R/norm_run.R | permissive | yuliasidi/m2imp | R | false | false | 3,559 | r | #' @title Runs MI via norm package
#' @description Runs MI via norm package
#' @param dt_in tibble, to be imputed
#' @param num_m numeric, Default: 5, number of imputations
#' @param i numeric, the seed is defined as 666*i
#' @param n_iter numeric, number of iterations to be used in data
#' augmentation procedure
#' @p... |
#' @title Export the (Differential) Modification Peaks/Sites and their associated Statistics
#' @param sep a \code{\link{SummarizedExomePeak}} object.
#' @param format a \code{character} for the exported format, could be a vector that contains \code{c("CSV", "BED", "RDS")}.
#'
#' \describe{
#' \item{\strong{\code{CSV}... | /R/exportResults.R | no_license | tsjzz/exomePeak2 | R | false | false | 14,755 | r | #' @title Export the (Differential) Modification Peaks/Sites and their associated Statistics
#' @param sep a \code{\link{SummarizedExomePeak}} object.
#' @param format a \code{character} for the exported format, could be a vector that contains \code{c("CSV", "BED", "RDS")}.
#'
#' \describe{
#' \item{\strong{\code{CSV}... |
library(shiny)
library(ggplot2)
data("mtcars")
shinyServer(
function(input, output,session) {
output$myPlot <- renderPlot({
my_parameters <- input$Parameters
formul <- paste("mpg ~ ",my_parameters)
... | /server.R | no_license | takhovski/data_product | R | false | false | 547 | r |
library(shiny)
library(ggplot2)
data("mtcars")
shinyServer(
function(input, output,session) {
output$myPlot <- renderPlot({
my_parameters <- input$Parameters
formul <- paste("mpg ~ ",my_parameters)
... |
`SS3toFLStock` <-
function (dirSS3output, stockname, fbar_amin, fbar_amax)
{
output <- SS_output(dir = dirSS3output, model = "ss3",repfile = "Report.sso", compfile = "CompReport.sso", covarfile = "covar.sso", ncols = 200, forecast = TRUE, warn = TRUE,covar = FALSE, checkcor = TRUE, cormax = 0.95, cormin = 0.01,printh... | /R/SS3toFLStock_v3.30.r | no_license | martinpastoors/wgwide | R | false | false | 18,633 | r | `SS3toFLStock` <-
function (dirSS3output, stockname, fbar_amin, fbar_amax)
{
output <- SS_output(dir = dirSS3output, model = "ss3",repfile = "Report.sso", compfile = "CompReport.sso", covarfile = "covar.sso", ncols = 200, forecast = TRUE, warn = TRUE,covar = FALSE, checkcor = TRUE, cormax = 0.95, cormin = 0.01,printh... |
source('startup.R')
# SA series
#ur_can <- pfetch('STATCAN@14100287|v21581033')
ur_man <- pfetch('STATCAN@14100287|v21581411')
#ur_alb <- pfetch('STATCAN@14100287|v21581519')
ur_qc <- pfetch('STATCAN@14100287|v2065839')
ur_can <- pfetch('STATCAN@14100287|v2064894')
recession = pfetch('U@CANADIAN_RECESSIONS')
pp <- ... | /legacy/R/c20200712_unemployment_manitoba_quebec.R | permissive | brianr747/platform | R | false | false | 745 | r |
source('startup.R')
# SA series
#ur_can <- pfetch('STATCAN@14100287|v21581033')
ur_man <- pfetch('STATCAN@14100287|v21581411')
#ur_alb <- pfetch('STATCAN@14100287|v21581519')
ur_qc <- pfetch('STATCAN@14100287|v2065839')
ur_can <- pfetch('STATCAN@14100287|v2064894')
recession = pfetch('U@CANADIAN_RECESSIONS')
pp <- ... |
################################################################################################
#
# Corselect.r - Simultaneous estimation of selectivity parameters for Gillnets & Cormorants
# Application to European Perch Data from Curonian Lagoon, Lithuania
#
# by Athol Whitten (awhitten@gmail.com)
# Melbourne, A... | /Examples/Corselect_Perch.r | permissive | awhitten/corselect | R | false | false | 2,020 | r | ################################################################################################
#
# Corselect.r - Simultaneous estimation of selectivity parameters for Gillnets & Cormorants
# Application to European Perch Data from Curonian Lagoon, Lithuania
#
# by Athol Whitten (awhitten@gmail.com)
# Melbourne, A... |
#' Broad vs. narrow selectivity data for robustmeta package. Based on
#' in-progress work with a NESCent working group. Not to be considered
#' final data.
#'
#' @name broad
#' @docType data
#' @author Sean Anderson <sean@@seananderson.ca>
#' @keywords data
NULL
| /R/broad.R | no_license | jebyrnes/robustmeta | R | false | false | 265 | r | #' Broad vs. narrow selectivity data for robustmeta package. Based on
#' in-progress work with a NESCent working group. Not to be considered
#' final data.
#'
#' @name broad
#' @docType data
#' @author Sean Anderson <sean@@seananderson.ca>
#' @keywords data
NULL
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pcaplot.R
\name{pcaplot}
\alias{pcaplot}
\title{Sample PCA plot for transformed data}
\usage{
pcaplot(
x,
intgroup = "condition",
ntop = 500,
returnData = FALSE,
title = NULL,
pcX = 1,
pcY = 2,
text_labels = TRUE,
point_size... | /man/pcaplot.Rd | permissive | animesh/pcaExplorer | R | false | true | 1,715 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pcaplot.R
\name{pcaplot}
\alias{pcaplot}
\title{Sample PCA plot for transformed data}
\usage{
pcaplot(
x,
intgroup = "condition",
ntop = 500,
returnData = FALSE,
title = NULL,
pcX = 1,
pcY = 2,
text_labels = TRUE,
point_size... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{evaluate_d_measure_LNA}
\alias{evaluate_d_measure_LNA}
\title{Evaluate the log-density of a possibly time-verying measurement process
by calling measurement process density functions via external Xptr.}
\usage{
evaluate_d_... | /man/evaluate_d_measure_LNA.Rd | no_license | mschauer/stemr | R | false | true | 1,655 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/RcppExports.R
\name{evaluate_d_measure_LNA}
\alias{evaluate_d_measure_LNA}
\title{Evaluate the log-density of a possibly time-verying measurement process
by calling measurement process density functions via external Xptr.}
\usage{
evaluate_d_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.