content large_stringlengths 0 6.46M | path large_stringlengths 3 331 | license_type large_stringclasses 2
values | repo_name large_stringlengths 5 125 | language large_stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.46M | extension large_stringclasses 75
values | text stringlengths 0 6.46M |
|---|---|---|---|---|---|---|---|---|---|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{adverse_events}
\alias{adverse_events}
\title{Adverse events}
\format{A data.table object with one row for each adverse event and with
columns:
\describe{
\item{ae_name}{Name of adverse event.}
\item{ae_abb}{Ab... | /man/adverse_events.Rd | no_license | InnovationValueInitiative/IVI-NSCLC | R | false | true | 502 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{adverse_events}
\alias{adverse_events}
\title{Adverse events}
\format{A data.table object with one row for each adverse event and with
columns:
\describe{
\item{ae_name}{Name of adverse event.}
\item{ae_abb}{Ab... |
###################################################### -*- mode: r -*- #####
## Scenario setup for Iterated Race (irace).
############################################################################
## To use the default value of a parameter of iRace, simply do not set
## the parameter (comment it out in this file, an... | /irace_tuning/scenario.txt | permissive | d6y/CGP.jl | R | false | false | 7,738 | txt | ###################################################### -*- mode: r -*- #####
## Scenario setup for Iterated Race (irace).
############################################################################
## To use the default value of a parameter of iRace, simply do not set
## the parameter (comment it out in this file, an... |
library(tidyverse)
library(leaflet)
#Tri des données
net <- function(data){
museefreq = read_csv(paste('DATA/',data, sep=''), locale=locale())
date = museefreq$year[1]
museefreq <- museefreq %>%
filter(country == 'France', status == 'open') %>%
select(!c(website, phone, fax, description, tags, year))
... | /APP/SCRIPT/rmusee.R | no_license | caillardc/VisuMarineClement | R | false | false | 3,826 | r | library(tidyverse)
library(leaflet)
#Tri des données
net <- function(data){
museefreq = read_csv(paste('DATA/',data, sep=''), locale=locale())
date = museefreq$year[1]
museefreq <- museefreq %>%
filter(country == 'France', status == 'open') %>%
select(!c(website, phone, fax, description, tags, year))
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/biomart.R
\name{getTSS}
\alias{getTSS}
\title{getTSS to fetch GENCODE gene annotation (transcripts level) from Bioconductor package biomaRt
If upstream and downstream are specified in TSS list, promoter regions of GENCODE gene will be generat... | /man/getTSS.Rd | no_license | daniel615212950/TCGAbiolinks | R | false | true | 1,224 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/biomart.R
\name{getTSS}
\alias{getTSS}
\title{getTSS to fetch GENCODE gene annotation (transcripts level) from Bioconductor package biomaRt
If upstream and downstream are specified in TSS list, promoter regions of GENCODE gene will be generat... |
## setting the data folder as Working Directory
#setwd("C:/Users/Americo/Estudos/Coursera/Getting and Cleaning Data/Project/Dados")
#
### Reading the Test Dataset
#
fileConn <- file("X_test.txt")
testX<-read.fwf(fileConn, widths=c(16), sep = "\n")
# > str(testX)
#'data.frame': 2947 obs. of 1 variable:
# $ V1: num 0... | /run_analysis.R | no_license | AmericoKutomi/GetandCleaningProject | R | false | false | 5,402 | r | ## setting the data folder as Working Directory
#setwd("C:/Users/Americo/Estudos/Coursera/Getting and Cleaning Data/Project/Dados")
#
### Reading the Test Dataset
#
fileConn <- file("X_test.txt")
testX<-read.fwf(fileConn, widths=c(16), sep = "\n")
# > str(testX)
#'data.frame': 2947 obs. of 1 variable:
# $ V1: num 0... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ReadPubMed.R
\name{GetPubMedRelated}
\alias{GetPubMedRelated}
\title{Retrieve related articles from PubMed using PubMed ID's}
\usage{
GetPubMedRelated(
id,
database = "pubmed",
batch.mode = TRUE,
max.results = 10,
return.... | /man/GetPubMedRelated.Rd | no_license | cran/RefManageR | R | false | true | 2,518 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ReadPubMed.R
\name{GetPubMedRelated}
\alias{GetPubMedRelated}
\title{Retrieve related articles from PubMed using PubMed ID's}
\usage{
GetPubMedRelated(
id,
database = "pubmed",
batch.mode = TRUE,
max.results = 10,
return.... |
#'Hierachical ordered density clustering (HODC) Algorithm with input generated by DPdensity
#'@param pvalue a vector of p-values obtained from large scale statistical hypothesis testing
#'@param v number of iterations set for DPM fitting by "DPdensity"
#'@param DPM.mcmc list
#'@param DPM.prior list
#'@details Without t... | /R/DPM.HODC.R | no_license | cran/BANFF | R | false | false | 6,608 | r | #'Hierachical ordered density clustering (HODC) Algorithm with input generated by DPdensity
#'@param pvalue a vector of p-values obtained from large scale statistical hypothesis testing
#'@param v number of iterations set for DPM fitting by "DPdensity"
#'@param DPM.mcmc list
#'@param DPM.prior list
#'@details Without t... |
#' printing robotstxt_text
#' @param x character vector aka robotstxt$text to be printed
#' @param ... goes down the sink
#' @export
print.robotstxt_text <- function(x, ...){
# rpint part of the robots.txt file
cat("[robots.txt]\n--------------------------------------\n\n")
tmp <- unlist(strsplit(x, "\n"))
ca... | /R/print_robotstxt_text.R | permissive | ropensci/robotstxt | R | false | false | 911 | r |
#' printing robotstxt_text
#' @param x character vector aka robotstxt$text to be printed
#' @param ... goes down the sink
#' @export
print.robotstxt_text <- function(x, ...){
# rpint part of the robots.txt file
cat("[robots.txt]\n--------------------------------------\n\n")
tmp <- unlist(strsplit(x, "\n"))
ca... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/render.r
\name{render_page}
\alias{render_page}
\alias{data_template}
\title{Render page with template}
\usage{
render_page(pkg = ".", name, data, path = "", depth = NULL, quiet = FALSE)
data_template(pkg = ".", depth = 0L)
}
\arguments{
\it... | /man/render_page.Rd | permissive | isabella232/pkgdown | R | false | true | 1,292 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/render.r
\name{render_page}
\alias{render_page}
\alias{data_template}
\title{Render page with template}
\usage{
render_page(pkg = ".", name, data, path = "", depth = NULL, quiet = FALSE)
data_template(pkg = ".", depth = 0L)
}
\arguments{
\it... |
install.packages('weatherData')
library(weatherData)
# ejemplo temps = getWeatherForDate("SFO", "2014-05-05")
train <- read.csv("train.csv")
current_date = ""
current_temp = 0
z = ""
#descarga la info si no habia sido descargada ya
train$Weather <- sapply(train$Dates, FUN=function(h) {
h <- substr(h, 1... | /agregar temp.R | no_license | jgalloni/tpDatos | R | false | false | 1,073 | r | install.packages('weatherData')
library(weatherData)
# ejemplo temps = getWeatherForDate("SFO", "2014-05-05")
train <- read.csv("train.csv")
current_date = ""
current_temp = 0
z = ""
#descarga la info si no habia sido descargada ya
train$Weather <- sapply(train$Dates, FUN=function(h) {
h <- substr(h, 1... |
library(markovchain)
### Name: name<-
### Title: Method to set name of markovchain object
### Aliases: name<- name<-,markovchain-method
### ** Examples
statesNames <- c("a", "b", "c")
markovB <- new("markovchain", states = statesNames, transitionMatrix =
matrix(c(0.2, 0.5, 0.3, 0, 1, 0, 0.1, 0.8, 0.... | /data/genthat_extracted_code/markovchain/examples/setName.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 489 | r | library(markovchain)
### Name: name<-
### Title: Method to set name of markovchain object
### Aliases: name<- name<-,markovchain-method
### ** Examples
statesNames <- c("a", "b", "c")
markovB <- new("markovchain", states = statesNames, transitionMatrix =
matrix(c(0.2, 0.5, 0.3, 0, 1, 0, 0.1, 0.8, 0.... |
library(dplyr)
library(tidyr)
library(ggplot2)
library(lubridate)
library(rriskDistributions)
library(stringr)
library(greta)
library(greta.gp)
source("./functions_auxiliary.R")
source("./functions_analysis_subreporting.R")
source("./bayesian_subreporting_fitting.R")
minDate <- "2020-10-01"
maxDate <- "2021-01-30"
a... | /age_stratified_subreporting/code/2_estimate_subreporting.R | no_license | dherrera1911/age_stratified_COVID_subreporting | R | false | false | 3,193 | r | library(dplyr)
library(tidyr)
library(ggplot2)
library(lubridate)
library(rriskDistributions)
library(stringr)
library(greta)
library(greta.gp)
source("./functions_auxiliary.R")
source("./functions_analysis_subreporting.R")
source("./bayesian_subreporting_fitting.R")
minDate <- "2020-10-01"
maxDate <- "2021-01-30"
a... |
# ui.r
library(shiny)
fluidPage(
sidebarLayout(
sidebarPanel(
actionButton("sample", label = "Use Sample Data"),
h3("Or use your own data"),
fileInput("image", label = "Upload image file (.nii)"),
fileInput("mask", label = "Upload Mask file (.nii)"),
fileInput("xmat", label = "Uploa... | /inst/shiny_apps/myapp/ui.r | permissive | seonjoo/neurorct | R | false | false | 1,013 | r | # ui.r
library(shiny)
fluidPage(
sidebarLayout(
sidebarPanel(
actionButton("sample", label = "Use Sample Data"),
h3("Or use your own data"),
fileInput("image", label = "Upload image file (.nii)"),
fileInput("mask", label = "Upload Mask file (.nii)"),
fileInput("xmat", label = "Uploa... |
% Generated by roxygen2 (4.0.0): do not edit by hand
\name{annotatedAlignment}
\alias{annotatedAlignment}
\title{Construct an \sQuote{annotatedAlignment}.}
\usage{
annotatedAlignment(alnpath, annopath, type, ...)
}
\arguments{
\item{alnpath}{Path to a directory containing mercator segments,
a single file in mfa (multi ... | /man/annotatedAlignment.Rd | no_license | promodel/genoslideR | R | false | false | 1,010 | rd | % Generated by roxygen2 (4.0.0): do not edit by hand
\name{annotatedAlignment}
\alias{annotatedAlignment}
\title{Construct an \sQuote{annotatedAlignment}.}
\usage{
annotatedAlignment(alnpath, annopath, type, ...)
}
\arguments{
\item{alnpath}{Path to a directory containing mercator segments,
a single file in mfa (multi ... |
Derv1 <- function(penden.env) {
assign("Derv1.pen",matrix(colSums(get("tilde.PSI.d.D",penden.env)/kronecker(get("tilde.PSI.d.D",penden.env)%*%get("ck.val",penden.env), matrix(1,1,dim(get("tilde.PSI.d.D",penden.env))[2]))),get("DD",penden.env),1)-get("DDD.sum",penden.env)%*%get("ck.val",penden.env),penden.env)
}
| /R/Derv1.R | no_license | cran/pencopula | R | false | false | 316 | r | Derv1 <- function(penden.env) {
assign("Derv1.pen",matrix(colSums(get("tilde.PSI.d.D",penden.env)/kronecker(get("tilde.PSI.d.D",penden.env)%*%get("ck.val",penden.env), matrix(1,1,dim(get("tilde.PSI.d.D",penden.env))[2]))),get("DD",penden.env),1)-get("DDD.sum",penden.env)%*%get("ck.val",penden.env),penden.env)
}
|
############################################################
######################## | Data Loading | ##################
############################################################
#Importing de csv downloaded from https://www.kaggle.com/sakshigoyal7/credit-card-customers.
#It will also be provided in my GitHu... | /R Script.R | no_license | damtaba/EDX-Final-Project | R | false | false | 16,578 | r | ############################################################
######################## | Data Loading | ##################
############################################################
#Importing de csv downloaded from https://www.kaggle.com/sakshigoyal7/credit-card-customers.
#It will also be provided in my GitHu... |
library(ggtree)
nwk<- "/Users/ryannguyen/Desktop/Math_127/Phylogenetics/tree2.nwk"
tree<- read.tree(nwk)
ggtree(tree, color="firebrick", lbranch.length='none') + geom_tiplab() +geom_tippoint()
ggsave("plswork.png")
| /Phylogenetics/Make_tree.R | no_license | rynguyen2018/Math127 | R | false | false | 217 | r | library(ggtree)
nwk<- "/Users/ryannguyen/Desktop/Math_127/Phylogenetics/tree2.nwk"
tree<- read.tree(nwk)
ggtree(tree, color="firebrick", lbranch.length='none') + geom_tiplab() +geom_tippoint()
ggsave("plswork.png")
|
library(radiomics)
### Name: discretizeImage
### Title: Image Discretization.
### Aliases: discretizeImage
### ** Examples
image(psf)
image(discretizeImage(psf, n_grey=5, verbose=F))
image(tumor)
image(discretizeImage(tumor, n_grey=8, verbose=F))
| /data/genthat_extracted_code/radiomics/examples/discretizeImage.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 255 | r | library(radiomics)
### Name: discretizeImage
### Title: Image Discretization.
### Aliases: discretizeImage
### ** Examples
image(psf)
image(discretizeImage(psf, n_grey=5, verbose=F))
image(tumor)
image(discretizeImage(tumor, n_grey=8, verbose=F))
|
# data wrangling for eddy data
# version 1.0
# alistair mcconnell
seasons_13 = c(76, 141, 230, 281)
seasons_14 = c(89, 129, 225, 268)
seasons_15 = c(104, 147, 226, 275)
Oesterlien_C_R_2013[Oesterlien_C_R_2013 == -10000] <- NA
Oesterlien_C_R_2013[Oesterlien_C_R_2013 == -9999] <- NA
Oesterlien_C_R_2013[Oesterlien_C_R_... | /data_wrangling_and_tidying.R | no_license | amccnnll/oesterlien | R | false | false | 7,742 | r | # data wrangling for eddy data
# version 1.0
# alistair mcconnell
seasons_13 = c(76, 141, 230, 281)
seasons_14 = c(89, 129, 225, 268)
seasons_15 = c(104, 147, 226, 275)
Oesterlien_C_R_2013[Oesterlien_C_R_2013 == -10000] <- NA
Oesterlien_C_R_2013[Oesterlien_C_R_2013 == -9999] <- NA
Oesterlien_C_R_2013[Oesterlien_C_R_... |
/pointsproblem.R | no_license | kjg612/EDAHomework | R | false | false | 1,898 | r | ||
# ===================================
# Compare spatial summaries across systems
# Load all NHLD pointsummaries data
# Luke Loken, Feb 2018
# ===================================
rm(list = ls())
library(gtools)
library(tidyr)
library(dplyr)
library(ggplot2)
library(gridExtra)
setwd("E:/Git_Repo/NHLDLakes")
asinTrans... | /R/CompareSpatialHeterogeneity_v2.R | no_license | lukeloken/NHLDLakes | R | false | false | 13,763 | r | # ===================================
# Compare spatial summaries across systems
# Load all NHLD pointsummaries data
# Luke Loken, Feb 2018
# ===================================
rm(list = ls())
library(gtools)
library(tidyr)
library(dplyr)
library(ggplot2)
library(gridExtra)
setwd("E:/Git_Repo/NHLDLakes")
asinTrans... |
set.seed(123)
K <- 2; p <- 2
X <- as.matrix(faithful)
# Obtain initial memberships based on the K-means algorithm
id.km <- kmeans(X, K)$cluster
# Run the EM algorithm for a Manly mixture model based on K-means solution
la <- matrix(0.1, K, p)
B <- Manly.EM(X, id.km, la)
Manly.plot(X, model = B, var1 = 1, x.mar = 1... | /demo/DensityPlot.R | no_license | cran/ManlyMix | R | false | false | 363 | r |
set.seed(123)
K <- 2; p <- 2
X <- as.matrix(faithful)
# Obtain initial memberships based on the K-means algorithm
id.km <- kmeans(X, K)$cluster
# Run the EM algorithm for a Manly mixture model based on K-means solution
la <- matrix(0.1, K, p)
B <- Manly.EM(X, id.km, la)
Manly.plot(X, model = B, var1 = 1, x.mar = 1... |
\name{gframe}
\alias{gframe}
\title{gframe is a title-decorated ggroup box container}
\usage{
gframe(text = "", pos = 0, horizontal = TRUE,
spacing = 2, use.scrollwindow = FALSE,
container = NULL, ..., width = NULL, height = NULL,
ext.args = NULL)
}
\arguments{
\item{text}{label text}
\item{pos}{posi... | /man/gframe.Rd | no_license | kecoli/gWidgetsWWW2 | R | false | false | 2,287 | rd | \name{gframe}
\alias{gframe}
\title{gframe is a title-decorated ggroup box container}
\usage{
gframe(text = "", pos = 0, horizontal = TRUE,
spacing = 2, use.scrollwindow = FALSE,
container = NULL, ..., width = NULL, height = NULL,
ext.args = NULL)
}
\arguments{
\item{text}{label text}
\item{pos}{posi... |
######################
# Overfitting and Neural Nets
#######################
library(rgl)
library(NeuralNetTools)
library(ggplot2)
library(readr)
library(dplyr)
library(caret)
library(nnet)
library(doMC)
# Benchmarking function=MAE
mae<-function(a,b){mean(abs(a-b),na.rm=TRUE)}
# Genrating the data
set.seed(1)
n<-200 # ... | /teorica/Overfitting Avoiding With NN ultimo 2019R.R | permissive | DiegoKoz/EEA2019 | R | false | false | 4,737 | r | ######################
# Overfitting and Neural Nets
#######################
library(rgl)
library(NeuralNetTools)
library(ggplot2)
library(readr)
library(dplyr)
library(caret)
library(nnet)
library(doMC)
# Benchmarking function=MAE
mae<-function(a,b){mean(abs(a-b),na.rm=TRUE)}
# Genrating the data
set.seed(1)
n<-200 # ... |
##########################################################################################
############################## HELPER FUNCTIONS ##############################
##########################################################################################
# function foldList sums all the entries in a ... | /instagrowth.R | no_license | evmarts/insta_analytics | R | false | false | 4,383 | r | ##########################################################################################
############################## HELPER FUNCTIONS ##############################
##########################################################################################
# function foldList sums all the entries in a ... |
library(ClusterR)
### Name: Cluster_Medoids
### Title: Partitioning around medoids
### Aliases: Cluster_Medoids
### ** Examples
data(dietary_survey_IBS)
dat = dietary_survey_IBS[, -ncol(dietary_survey_IBS)]
dat = center_scale(dat)
cm = Cluster_Medoids(dat, clusters = 3, distance_metric = 'euclidean', swap_phase... | /data/genthat_extracted_code/ClusterR/examples/Cluster_Medoids.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 333 | r | library(ClusterR)
### Name: Cluster_Medoids
### Title: Partitioning around medoids
### Aliases: Cluster_Medoids
### ** Examples
data(dietary_survey_IBS)
dat = dietary_survey_IBS[, -ncol(dietary_survey_IBS)]
dat = center_scale(dat)
cm = Cluster_Medoids(dat, clusters = 3, distance_metric = 'euclidean', swap_phase... |
#Global Environment
match.score <- 100 #assign operator
match.score #print score
assign("match.score",200) #assign function
match.score #print score
#Custom Environment
match.environment <- new.env() #create custom environment
parent.env(match.environment)
match.environment$'match.score' <- 300 #assign cust env variab... | /R_Learn/R_Operator.R | no_license | durga-nayak/R_Workspace | R | false | false | 824 | r | #Global Environment
match.score <- 100 #assign operator
match.score #print score
assign("match.score",200) #assign function
match.score #print score
#Custom Environment
match.environment <- new.env() #create custom environment
parent.env(match.environment)
match.environment$'match.score' <- 300 #assign cust env variab... |
library(shiny)
library(shinyBS)
source("functions.R")
predButton <- function(id) {
actionButton(id, label = "", width = "100%", style ="background-color: #ffffff; border-color: #2e6da4; height:40px")
}
ui = fluidPage(style ="background-color: #e6f7ff",
tags$script(HTML("$(function(){
... | /app.R | no_license | QLab-Engineering/Computer-Aided-Writing-App | R | false | false | 5,407 | r | library(shiny)
library(shinyBS)
source("functions.R")
predButton <- function(id) {
actionButton(id, label = "", width = "100%", style ="background-color: #ffffff; border-color: #2e6da4; height:40px")
}
ui = fluidPage(style ="background-color: #e6f7ff",
tags$script(HTML("$(function(){
... |
# TODO(AW) make this reproducible!
## a script to investigate the coverage of my confidence set procedure
## HIV dataset
##### first: run bash script
### HIV dataset
setwd("Documents/Phylogenetics/Tree Inference/Tree Inference Analysis/Coverage/")
source("/Users/adw96/Documents/Phylogenetics/Tree Inference/Tree Infe... | /Coverage/hiv/hiv_R.R | no_license | adw96/ConfidenceSets | R | false | false | 11,245 | r | # TODO(AW) make this reproducible!
## a script to investigate the coverage of my confidence set procedure
## HIV dataset
##### first: run bash script
### HIV dataset
setwd("Documents/Phylogenetics/Tree Inference/Tree Inference Analysis/Coverage/")
source("/Users/adw96/Documents/Phylogenetics/Tree Inference/Tree Infe... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllClasses.R
\docType{class}
\name{CountDgeResult-class}
\alias{CountDgeResult-class}
\title{Object that contains count data, dgeTables, and sigFilter}
\description{
Object that contains count data, dgeTables, and sigFilter
}
\section{Slots}{... | /man/CountDgeResult-class.Rd | no_license | bedapub/ribiosNGS | R | false | true | 492 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/AllClasses.R
\docType{class}
\name{CountDgeResult-class}
\alias{CountDgeResult-class}
\title{Object that contains count data, dgeTables, and sigFilter}
\description{
Object that contains count data, dgeTables, and sigFilter
}
\section{Slots}{... |
# Layouts
#' Extracts numeric values
#' @param value Value to be converted to numeric
#' @return Numeric value
get_numeric <- function(value) as.numeric(gsub("([0-9]+).*$", "\\1", value))
#' Creates div containing children elements of sidebar panel
#'
#' @param ... Container's children elements
#' @param width Width ... | /R/layouts.R | permissive | pepecebrian/shiny.semantic | R | false | false | 12,141 | r | # Layouts
#' Extracts numeric values
#' @param value Value to be converted to numeric
#' @return Numeric value
get_numeric <- function(value) as.numeric(gsub("([0-9]+).*$", "\\1", value))
#' Creates div containing children elements of sidebar panel
#'
#' @param ... Container's children elements
#' @param width Width ... |
testlist <- list(x = integer(0), y = c(1768257321L, 676545880L, 1344299887L, 1853060140L, 1668247155L, 1948268086L, -11777024L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, ... | /diffrprojects/inst/testfiles/dist_mat_absolute/libFuzzer_dist_mat_absolute/dist_mat_absolute_valgrind_files/1609963011-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 451 | r | testlist <- list(x = integer(0), y = c(1768257321L, 676545880L, 1344299887L, 1853060140L, 1668247155L, 1948268086L, -11777024L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, ... |
testlist <- list(id = integer(0), x = c(-1.77548498085422e-64, -1.77548498085422e-64, -1.77548498085422e-64, -1.77548498085422e-64, -1.77548498085422e-64, -1.77548498085422e-64, -1.77537878441694e-64, -1.77548498085422e-64, -1.77548498085422e-64, 3.78621301386797e-310, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0... | /ggforce/inst/testfiles/enclose_points/libFuzzer_enclose_points/enclose_points_valgrind_files/1609956136-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 482 | r | testlist <- list(id = integer(0), x = c(-1.77548498085422e-64, -1.77548498085422e-64, -1.77548498085422e-64, -1.77548498085422e-64, -1.77548498085422e-64, -1.77548498085422e-64, -1.77537878441694e-64, -1.77548498085422e-64, -1.77548498085422e-64, 3.78621301386797e-310, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/batchQC.R
\name{batchQC_analyze}
\alias{batchQC_analyze}
\title{Checks for presence of batch effect and reports whether the batch
needs to be adjusted}
\usage{
batchQC_analyze(data.matrix, batch, mod = NULL)
}
\arguments{
\item{data.matrix}{... | /man/batchQC_analyze.Rd | no_license | dfjenkins3/BatchQC | R | false | true | 1,108 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/batchQC.R
\name{batchQC_analyze}
\alias{batchQC_analyze}
\title{Checks for presence of batch effect and reports whether the batch
needs to be adjusted}
\usage{
batchQC_analyze(data.matrix, batch, mod = NULL)
}
\arguments{
\item{data.matrix}{... |
\name{rlbmat}
\alias{rlbmat}
\title{Block Uniform Logical Matrix Deviates}
\description{
Generate a uniform logical matrix deviate with a possibly overlapping
block structure.
}
\usage{
rlbmat(npat = 4, rows = 20, cols = 12, over = 4, noise = 0.01,
prob = 0.8, perfect = FALSE)
}
\arguments{
\item{npat}{n... | /man/rlbmat.Rd | no_license | cran/cba | R | false | false | 1,010 | rd | \name{rlbmat}
\alias{rlbmat}
\title{Block Uniform Logical Matrix Deviates}
\description{
Generate a uniform logical matrix deviate with a possibly overlapping
block structure.
}
\usage{
rlbmat(npat = 4, rows = 20, cols = 12, over = 4, noise = 0.01,
prob = 0.8, perfect = FALSE)
}
\arguments{
\item{npat}{n... |
daily_cases_specimen_state_plot <- function(ds) {
nds <- create_state_specimen_collection(ds)
mov_avg <- seven_day_average(nds$NEW_CASES)
g_title <- paste('Daily COVID-19 Cases by Specimen Collection Date in Tennessee')
fdate <- format(nds$DATE, '%Y-%m-%d')
export <- list(xval = fdate,
... | /plots/state/new_cases_specimen_state.R | no_license | adrianjselva/TN-COVID-19 | R | false | false | 718 | r | daily_cases_specimen_state_plot <- function(ds) {
nds <- create_state_specimen_collection(ds)
mov_avg <- seven_day_average(nds$NEW_CASES)
g_title <- paste('Daily COVID-19 Cases by Specimen Collection Date in Tennessee')
fdate <- format(nds$DATE, '%Y-%m-%d')
export <- list(xval = fdate,
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\name{ChaffClim}
\alias{ChaffClim}
\title{Daily climate data from 1965 to 2012.}
\format{
A data frame with 17,520 rows and 3 variables.
\describe{
\item{Date}{Date when climate was recorded (dd/mm/yyyy).}
\item{Rain}{Average d... | /man/ChaffClim.Rd | no_license | LiamDBailey/climwin | R | false | true | 563 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datasets.R
\name{ChaffClim}
\alias{ChaffClim}
\title{Daily climate data from 1965 to 2012.}
\format{
A data frame with 17,520 rows and 3 variables.
\describe{
\item{Date}{Date when climate was recorded (dd/mm/yyyy).}
\item{Rain}{Average d... |
context("get_kgram_freqs")
test_that("return value has the correct structure", {
f <- get_kgram_freqs(text = "some text",
N = 3,
dict = c("some", "text"),
.preprocess = identity,
EOS = "")
... | /tests/testthat/test-get_kgram_freqs.R | no_license | minghao2016/sbo | R | false | false | 4,429 | r | context("get_kgram_freqs")
test_that("return value has the correct structure", {
f <- get_kgram_freqs(text = "some text",
N = 3,
dict = c("some", "text"),
.preprocess = identity,
EOS = "")
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/igo.R
\name{rebuild_igo_tagger}
\alias{rebuild_igo_tagger}
\title{Rebuild Igo tagger}
\usage{
rebuild_igo_tagger(data_dir = .pkgenv[["igodic"]])
}
\arguments{
\item{data_dir}{Character vector.}
}
\value{
The stored tagger instance is returned... | /man/rebuild_igo_tagger.Rd | permissive | paithiov909/rjavacmecab | R | false | true | 498 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/igo.R
\name{rebuild_igo_tagger}
\alias{rebuild_igo_tagger}
\title{Rebuild Igo tagger}
\usage{
rebuild_igo_tagger(data_dir = .pkgenv[["igodic"]])
}
\arguments{
\item{data_dir}{Character vector.}
}
\value{
The stored tagger instance is returned... |
## A pair of functions that cache the inverse of a matrix
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
inversion <- NULL
set <- function(y) {
x <<- y
inversion <<- NULL
}
get <- function() x
setinverse <- function(solve)... | /cachematrix.R | no_license | osoitzvdf/ProgrammingAssignment2 | R | false | false | 964 | r | ## A pair of functions that cache the inverse of a matrix
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
inversion <- NULL
set <- function(y) {
x <<- y
inversion <<- NULL
}
get <- function() x
setinverse <- function(solve)... |
#' Generic Wrapper function for running dimensionality reduction
#' @details Wrapper function to run one of the available dimensionality
#' reduction algorithms integrated within SCTK from \code{\link{scaterPCA}},
#' \code{\link{runSeuratPCA}}, \code{\link{runSeuratICA}}, \code{\link{runTSNE}},
#' \code{\link{runSeurat... | /R/runDimReduce.R | permissive | mvfki/singleCellTK | R | false | false | 9,510 | r | #' Generic Wrapper function for running dimensionality reduction
#' @details Wrapper function to run one of the available dimensionality
#' reduction algorithms integrated within SCTK from \code{\link{scaterPCA}},
#' \code{\link{runSeuratPCA}}, \code{\link{runSeuratICA}}, \code{\link{runTSNE}},
#' \code{\link{runSeurat... |
# == title
# Empty Annotation
#
# == param
# -which Whether it is a column annotation or a row annotation?
# -border Whether draw borders of the annotation region?
# -zoom If it is true and when the heatmap is split, the empty annotation slices will have
# equal height or width, and you can see the correspondan... | /R/AnnotationFunction-function.R | permissive | j3gu/ComplexHeatmap | R | false | false | 131,093 | r |
# == title
# Empty Annotation
#
# == param
# -which Whether it is a column annotation or a row annotation?
# -border Whether draw borders of the annotation region?
# -zoom If it is true and when the heatmap is split, the empty annotation slices will have
# equal height or width, and you can see the correspondan... |
library(dplyr)
library(data.table)
#downloading files
temp<-tempfile()
download.file("https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip", temp)
unzip(temp,list=TRUE)
#reading files into R, setting column names and labels
Features<-read.table(unzip(temp,"UCI HAR Dataset/fe... | /run_analysis.R | no_license | AnaBayes/Getting-and-Cleaning-Data-Project | R | false | false | 3,944 | r | library(dplyr)
library(data.table)
#downloading files
temp<-tempfile()
download.file("https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip", temp)
unzip(temp,list=TRUE)
#reading files into R, setting column names and labels
Features<-read.table(unzip(temp,"UCI HAR Dataset/fe... |
library(tidyverse)
library(here)
#set working directory
here(setwd("~/PSY6422_Final_Project"))
#load data file
df <- read.csv(here(setwd("~/PSY6422_Final_Project"),"data","disability_degree.csv"))
head(df, 3)
#tidying up the data
#selecting target data for the visualization through -
df <-... | /disability_script_PSY6422.R | no_license | ejbennett/PSY6422-Visualization-Project | R | false | false | 1,755 | r | library(tidyverse)
library(here)
#set working directory
here(setwd("~/PSY6422_Final_Project"))
#load data file
df <- read.csv(here(setwd("~/PSY6422_Final_Project"),"data","disability_degree.csv"))
head(df, 3)
#tidying up the data
#selecting target data for the visualization through -
df <-... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extract_results.R
\name{get_data_names}
\alias{get_data_names}
\title{Get data name out of model name}
\usage{
get_data_names(model_name, model_type = "ts_notselected")
}
\arguments{
\item{model_name}{model name, string to process}
\item{mod... | /man/get_data_names.Rd | permissive | weecology/MATSS-LDATS | R | false | true | 448 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extract_results.R
\name{get_data_names}
\alias{get_data_names}
\title{Get data name out of model name}
\usage{
get_data_names(model_name, model_type = "ts_notselected")
}
\arguments{
\item{model_name}{model name, string to process}
\item{mod... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/puzzle.R
\name{puzzle}
\alias{puzzle}
\title{Demonstrate the chessboard with labeling points.}
\usage{
puzzle()
}
\value{
The chessboard
}
\description{
Demonstrate the chessboard with labeling points.
}
\examples{
puzzle()
}
| /man/puzzle.Rd | permissive | Hochia/orientchessr | R | false | true | 304 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/puzzle.R
\name{puzzle}
\alias{puzzle}
\title{Demonstrate the chessboard with labeling points.}
\usage{
puzzle()
}
\value{
The chessboard
}
\description{
Demonstrate the chessboard with labeling points.
}
\examples{
puzzle()
}
|
x<-100:10
print(x)
#print first element of x
print(x[1])
#Print first and fourth element
print(x[c(1,4)])
| /vectordata4.R | no_license | ashishjsharda/R | R | false | false | 108 | r |
x<-100:10
print(x)
#print first element of x
print(x[1])
#Print first and fourth element
print(x[c(1,4)])
|
##Loading the Data
household <- read.table("household_power_consumption.txt", header=TRUE, sep = ";", na.strings = "?",
colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric','numeric','numeric'))
df <- household
##Transforming the date
df$Date <- as.Date... | /plot2.R | no_license | felipeferraz14/ExData_Plotting1 | R | false | false | 787 | r | ##Loading the Data
household <- read.table("household_power_consumption.txt", header=TRUE, sep = ";", na.strings = "?",
colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric','numeric','numeric'))
df <- household
##Transforming the date
df$Date <- as.Date... |
#' Magic Number: Points to Millimeters
#' @noRd
PT_TO_MM <- 0.352778
charopts <- function(x) {
paste(sprintf("\\code{\"%s\"}", x), collapse = ", ")
}
# copied from ggplot2
"%||%" <- function(a, b) {
if (!is.null(a)) a else b
}
# copied from ggplot2
ggname <- function(prefix, grob) {
grob$name <- grid::grobName... | /R/utils.R | no_license | mnel/ggthemes | R | false | false | 621 | r | #' Magic Number: Points to Millimeters
#' @noRd
PT_TO_MM <- 0.352778
charopts <- function(x) {
paste(sprintf("\\code{\"%s\"}", x), collapse = ", ")
}
# copied from ggplot2
"%||%" <- function(a, b) {
if (!is.null(a)) a else b
}
# copied from ggplot2
ggname <- function(prefix, grob) {
grob$name <- grid::grobName... |
###################
library(igraph)
test1 <- delete.edges (mails.important.g, which (E(mails.important.g)$date > as.Date("2000-01-01")))
test1 <- delete.vertices(test1, which(degree(test1) < 1))
plot(test1, edge.label=NA, vertex.label=NA, vertex.size=6)
test1 <- delete.edges (mails.important.g, which (E(mails.im... | /Empirical/r/doc-R/Social/ergm/divers/dynamic/dynamic.r | no_license | ygtfrdes/Program | R | false | false | 4,157 | r | ###################
library(igraph)
test1 <- delete.edges (mails.important.g, which (E(mails.important.g)$date > as.Date("2000-01-01")))
test1 <- delete.vertices(test1, which(degree(test1) < 1))
plot(test1, edge.label=NA, vertex.label=NA, vertex.size=6)
test1 <- delete.edges (mails.important.g, which (E(mails.im... |
/Tema 2/SMV/SVM(1).R | no_license | Ocnarf2070/AprendizajeComputacional | R | false | false | 11,535 | r | ||
##load libraries needed
library(ggplot2)
library(gridBase)
library(gridExtra)
setwd('/archive/beier_d/dave_data/dave_muga_0420')
##testing on one
hom_data <- read.csv('smo_tens.mm10_2000kb_1000kb.bed', sep = '\t')
goodChrOrder <- paste("chr",c(1:19,"X","Y"),sep="")
hom_data$chr <- factor(hom_data$chr,levels=goodChrO... | /r_scripts/dave_muga_graphing_0420.R | no_license | atimms/ratchet_scripts | R | false | false | 1,210 | r | ##load libraries needed
library(ggplot2)
library(gridBase)
library(gridExtra)
setwd('/archive/beier_d/dave_data/dave_muga_0420')
##testing on one
hom_data <- read.csv('smo_tens.mm10_2000kb_1000kb.bed', sep = '\t')
goodChrOrder <- paste("chr",c(1:19,"X","Y"),sep="")
hom_data$chr <- factor(hom_data$chr,levels=goodChrO... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read.fb.R
\docType{data}
\name{read.fb}
\alias{read.fb}
\alias{char_cols}
\alias{read_header}
\alias{read.fb}
\title{FB file reader}
\format{An object of class \code{list} of length 52.}
\usage{
char_cols
read_header(file_path)
read.fb(file... | /man/read.fb.Rd | permissive | JamesDalrymple/cmhmisc | R | false | true | 1,095 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read.fb.R
\docType{data}
\name{read.fb}
\alias{read.fb}
\alias{char_cols}
\alias{read_header}
\alias{read.fb}
\title{FB file reader}
\format{An object of class \code{list} of length 52.}
\usage{
char_cols
read_header(file_path)
read.fb(file... |
setwd("/home/alejandro/Documents/MsC Bioinformatics/Advanced Bioinformatics/")
# Read all the output files from stringtie
bis1 = read.delim(file = "bis1_t_data.ctab", header = TRUE)
bis2 = read.delim(file = "bis2_t_data.ctab", header = TRUE)
bis3 = read.delim(file = "bis2_t_data.ctab", header = TRUE)
control1 = read.d... | /StringtieToCluster.R | no_license | AlFontal/pyomics | R | false | false | 1,386 | r | setwd("/home/alejandro/Documents/MsC Bioinformatics/Advanced Bioinformatics/")
# Read all the output files from stringtie
bis1 = read.delim(file = "bis1_t_data.ctab", header = TRUE)
bis2 = read.delim(file = "bis2_t_data.ctab", header = TRUE)
bis3 = read.delim(file = "bis2_t_data.ctab", header = TRUE)
control1 = read.d... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/support.R
\name{reorder_rt_ifr}
\alias{reorder_rt_ifr}
\title{Reorder Rt or IFR trajectories}
\usage{
reorder_rt_ifr(x, rank)
}
\arguments{
\item{x}{An \code{Rt_trajectories} or \code{IFR_t_trajectories} object, as returned
by \code{\link[=ca... | /man/reorder_rt_ifr.Rd | permissive | gsarfo-boateng/sircovid | R | false | true | 634 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/support.R
\name{reorder_rt_ifr}
\alias{reorder_rt_ifr}
\title{Reorder Rt or IFR trajectories}
\usage{
reorder_rt_ifr(x, rank)
}
\arguments{
\item{x}{An \code{Rt_trajectories} or \code{IFR_t_trajectories} object, as returned
by \code{\link[=ca... |
# 8/16/2017 Preprocess gse77164
# Results:
# Youngest person is 15, so doesn't cover puberty
# well enough to answer my question
# Excellent coverage of 18-22yo
#....................#
##### Load Stuff #####
#....................#
setwd("/labs/khatrilab/ebongen/sexDifferences2.0/")
source("00_tools/general_GEMfunx.R... | /downloadData/gse77164_preProcess.R | permissive | ebongen/iSEXS_cellReports2019 | R | false | false | 1,386 | r | # 8/16/2017 Preprocess gse77164
# Results:
# Youngest person is 15, so doesn't cover puberty
# well enough to answer my question
# Excellent coverage of 18-22yo
#....................#
##### Load Stuff #####
#....................#
setwd("/labs/khatrilab/ebongen/sexDifferences2.0/")
source("00_tools/general_GEMfunx.R... |
#' Retreive Screenings Available at a Cineplex City
#'
#' @param city_xml an xml nodeset; output of `get_city()`
#'
#' @return data frame with screening details for a given city that can be used as input for `filter_screenings()`.
#' @export
#'
#' @examples
#' my_screenings_details <- get_screenings(city_xml = my_city)... | /R/get_screenings.R | permissive | sowla/kino | R | false | false | 2,421 | r | #' Retreive Screenings Available at a Cineplex City
#'
#' @param city_xml an xml nodeset; output of `get_city()`
#'
#' @return data frame with screening details for a given city that can be used as input for `filter_screenings()`.
#' @export
#'
#' @examples
#' my_screenings_details <- get_screenings(city_xml = my_city)... |
#!/usr/bin/RScript
h <- function(x, theta) {
x %*% t(theta)
}
err <- function(x, y, theta) {
m <- nrow(x)
y.model <- h(x, theta)
error <- sum((y - y.model)^2)*1/m
return(error)
}
grad <- function(x,y,theta) {
m <- nrow(x)
gradient <- 1/m * t(x) %*% ( h(x,theta) - y )
t(gradient)
}
g... | /ml/ex5/grad_desc.R | no_license | alexeyche/alexeyche-junk | R | false | false | 1,445 | r | #!/usr/bin/RScript
h <- function(x, theta) {
x %*% t(theta)
}
err <- function(x, y, theta) {
m <- nrow(x)
y.model <- h(x, theta)
error <- sum((y - y.model)^2)*1/m
return(error)
}
grad <- function(x,y,theta) {
m <- nrow(x)
gradient <- 1/m * t(x) %*% ( h(x,theta) - y )
t(gradient)
}
g... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gaugings_cabecera.R
\docType{data}
\name{gaugings_cabecera}
\alias{gaugings_cabecera}
\title{Gaugings at Cabecera (direct stage discharge measurement)}
\format{
A data.frame with 2 columns:
\describe{
\item{dates}{dates in POSIXct format}
... | /man/gaugings_cabecera.Rd | no_license | rafaelnavas/SanAntonioData | R | false | true | 545 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gaugings_cabecera.R
\docType{data}
\name{gaugings_cabecera}
\alias{gaugings_cabecera}
\title{Gaugings at Cabecera (direct stage discharge measurement)}
\format{
A data.frame with 2 columns:
\describe{
\item{dates}{dates in POSIXct format}
... |
AddCaseButton <- function(label=gettext("Add", domain = "R-RQDA")){
AddCasB <- gbutton(label,handler=function(h,...) {
CaseName <- ginput(gettext("Enter new Case Name. ", domain = "R-RQDA"), icon="info")
if (!is.na(CaseName)) {
Encoding(CaseName) <- "UTF-8"
AddCase(CaseName)
CaseNamesUpdate(... | /R/CaseButton.R | no_license | Proloy2018/RQDA | R | false | false | 20,677 | r | AddCaseButton <- function(label=gettext("Add", domain = "R-RQDA")){
AddCasB <- gbutton(label,handler=function(h,...) {
CaseName <- ginput(gettext("Enter new Case Name. ", domain = "R-RQDA"), icon="info")
if (!is.na(CaseName)) {
Encoding(CaseName) <- "UTF-8"
AddCase(CaseName)
CaseNamesUpdate(... |
### -----------------------------MICE.IMPUTE.PMM-------------------------
#'Imputation by predictive mean matching
#'
#'Imputes univariate missing data using predictive mean matching
#'
#'Imputation of \code{y} by predictive mean matching, based on Rubin (1987, p.
#'168, formulas a and b). The procedure is as follows... | /R/mice.impute.pmm.r | no_license | RossBoylan/mice | R | false | false | 5,651 | r | ### -----------------------------MICE.IMPUTE.PMM-------------------------
#'Imputation by predictive mean matching
#'
#'Imputes univariate missing data using predictive mean matching
#'
#'Imputation of \code{y} by predictive mean matching, based on Rubin (1987, p.
#'168, formulas a and b). The procedure is as follows... |
\name{plotmat}
\alias{plotmat}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Plot a matrix
}
\description{
Plot an image of a matrix using ggplot2
}
\usage{
plotmat(mat, color = "green", title = NULL, args = NULL)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{ma... | /man/plotmat.Rd | no_license | poworoznek/infinitefactor | R | false | false | 705 | rd | \name{plotmat}
\alias{plotmat}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Plot a matrix
}
\description{
Plot an image of a matrix using ggplot2
}
\usage{
plotmat(mat, color = "green", title = NULL, args = NULL)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{ma... |
#' @title Download and Create a List of Raster Stack Objects From CRU CL2.0 Climatology Variables
#'
#'@description This function automates downloading and importing CRU CL2.0
#'climatology data into R and creates a list of raster stacks of the data. If
#'requested, minimum and maximum temperature may also be automati... | /R/create_CRU_stack.R | permissive | ldecicco-USGS/getCRUCLdata | R | false | false | 7,635 | r | #' @title Download and Create a List of Raster Stack Objects From CRU CL2.0 Climatology Variables
#'
#'@description This function automates downloading and importing CRU CL2.0
#'climatology data into R and creates a list of raster stacks of the data. If
#'requested, minimum and maximum temperature may also be automati... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_income_pay_village.R
\docType{data}
\name{income_pay_village}
\alias{income_pay_village}
\title{Dataset of average income and consumption of village 1985s-2003s in chapter11}
\format{a dataframe with 19 rows and 4 variables
\describe{
\... | /man/income_pay_village.Rd | no_license | zhaoxue-xmu/RDA | R | false | true | 600 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_income_pay_village.R
\docType{data}
\name{income_pay_village}
\alias{income_pay_village}
\title{Dataset of average income and consumption of village 1985s-2003s in chapter11}
\format{a dataframe with 19 rows and 4 variables
\describe{
\... |
# Building a Prod-Ready, Robust Shiny Application.
#
# README: each step of the dev files is optional, and you don't have to
# fill every dev scripts before getting started.
# 01_start.R should be filled at start.
# 02_dev.R should be used to keep track of your development during the project.
# 03_deploy.R should be us... | /dev/01_start.R | permissive | MHenderson/energy-use | R | false | false | 2,009 | r | # Building a Prod-Ready, Robust Shiny Application.
#
# README: each step of the dev files is optional, and you don't have to
# fill every dev scripts before getting started.
# 01_start.R should be filled at start.
# 02_dev.R should be used to keep track of your development during the project.
# 03_deploy.R should be us... |
# due to the file size, I will only import the lines that are required for each plotting
# open a connection
con<-file("household_power_consumption.txt")
open(con)
# read exact positions from file
power_Data<-read.table(con,skip=66637,nrow=2880,sep=";")
# close the connection
close(con)
# proper labelling names
colname... | /plot4.R | no_license | helenh2/ExData_Plotting1 | R | false | false | 2,266 | r | # due to the file size, I will only import the lines that are required for each plotting
# open a connection
con<-file("household_power_consumption.txt")
open(con)
# read exact positions from file
power_Data<-read.table(con,skip=66637,nrow=2880,sep=";")
# close the connection
close(con)
# proper labelling names
colname... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bikm1_MLBM_Binary_functions.R
\name{BinBlocICL_MLBM}
\alias{BinBlocICL_MLBM}
\title{BinBlocICL_MLBM function for computation of the ICL criterion in the MLBM}
\usage{
BinBlocICL_MLBM(a,b,x,y,z1,v1,w1)
}
\arguments{
\item{a}{an hyperparameter... | /man/BinBlocICL_MLBM-proc.Rd | no_license | cran/bikm1 | R | false | true | 1,341 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bikm1_MLBM_Binary_functions.R
\name{BinBlocICL_MLBM}
\alias{BinBlocICL_MLBM}
\title{BinBlocICL_MLBM function for computation of the ICL criterion in the MLBM}
\usage{
BinBlocICL_MLBM(a,b,x,y,z1,v1,w1)
}
\arguments{
\item{a}{an hyperparameter... |
## TODO: load data tree here
require(lmerTest)
load(system.file("testdata", "tree.RData", package="lmerTest"))
modelCarrots.treat <- lme4::lmer(Preference ~
sens2*sens1*Homesize*Age
+ (1 | product) +
(1 ... | /lmerTest/tests/testContrasts.R | no_license | ingted/R-Examples | R | false | false | 2,788 | r | ## TODO: load data tree here
require(lmerTest)
load(system.file("testdata", "tree.RData", package="lmerTest"))
modelCarrots.treat <- lme4::lmer(Preference ~
sens2*sens1*Homesize*Age
+ (1 | product) +
(1 ... |
# ver1.0
### ----- 제4장 ---- ###
# 회장님에게서 받은 데이터를 분석 사장이 정리한 이후 부분부시 시작
menus <- read.csv(file.choose(), stringsAsFactors = FALSE, colClasses = c("factor","Date","numeric"))
# /Chapter04/menus.csv 선택
# menus <- read.csv("Chapter04/menus.csv", stringsAsFactors = FALSE, colClasses = c("factor","Date","numeric"))
# 세 개... | /StoryTellingA/Chapter04/Chap04.R | no_license | mahesh122000/R | R | false | false | 5,195 | r | # ver1.0
### ----- 제4장 ---- ###
# 회장님에게서 받은 데이터를 분석 사장이 정리한 이후 부분부시 시작
menus <- read.csv(file.choose(), stringsAsFactors = FALSE, colClasses = c("factor","Date","numeric"))
# /Chapter04/menus.csv 선택
# menus <- read.csv("Chapter04/menus.csv", stringsAsFactors = FALSE, colClasses = c("factor","Date","numeric"))
# 세 개... |
timeFormat <- function(stamp){
paste(unlist(strsplit(stamp, ",")), collapse=" ")
}
naFormat <- function(v){
ifelse(is.na(v),'NULL',v)
}
uploadSessionsTable <- function(sessionsTable, con){
for (i in 1:nrow(sessionsTable)){
command <- paste("INSERT INTO main_tables.list_sessions(device_ID, session_start_time, sess... | /postgres_upload.R | no_license | FosseyFund/AOToolBox | R | false | false | 24,470 | r | timeFormat <- function(stamp){
paste(unlist(strsplit(stamp, ",")), collapse=" ")
}
naFormat <- function(v){
ifelse(is.na(v),'NULL',v)
}
uploadSessionsTable <- function(sessionsTable, con){
for (i in 1:nrow(sessionsTable)){
command <- paste("INSERT INTO main_tables.list_sessions(device_ID, session_start_time, sess... |
utils::globalVariables("density")
#' @title Plot frequencies of variables
#' @name plot_frq
#'
#' @description Plot frequencies of a variable as bar graph, histogram, box plot etc.
#'
#' @note This function only works with variables with integer values (or numeric
#' factor levels), i.e. scales / centered vari... | /R/plot_frq.R | no_license | januz/sjPlot | R | false | false | 25,666 | r | utils::globalVariables("density")
#' @title Plot frequencies of variables
#' @name plot_frq
#'
#' @description Plot frequencies of a variable as bar graph, histogram, box plot etc.
#'
#' @note This function only works with variables with integer values (or numeric
#' factor levels), i.e. scales / centered vari... |
# FUNCTION TO BUILD THE CORE DATASET
#
# Arguments:
# ein - character vector of nonprofits to sample
# years - vector of which years to collect
# form.type - which type of data to collect
# modules - what sections of data to build
# index - database of all electronic filers provided by the IRS
buildC... | /Helper_Functions/buildCore.R | no_license | shommazumder/Open-Data-for-Nonprofit-Research | R | false | false | 2,306 | r | # FUNCTION TO BUILD THE CORE DATASET
#
# Arguments:
# ein - character vector of nonprofits to sample
# years - vector of which years to collect
# form.type - which type of data to collect
# modules - what sections of data to build
# index - database of all electronic filers provided by the IRS
buildC... |
## Wrapper for running simulations of the storage effect
## model with variable resource.
## Author: Andrew Tredennick
## Email: atredenn@gmail.com
# clear the workspace
rm(list=ls())
## Set do_year for validation from command line prompt
args <- commandArgs(trailingOnly = F)
myargument <- args[length(args)]
... | /modelCode/oldVersions/wrapper_storage_effect_simulations_hpc.R | permissive | atredennick/Coexistence-Stability | R | false | false | 3,469 | r | ## Wrapper for running simulations of the storage effect
## model with variable resource.
## Author: Andrew Tredennick
## Email: atredenn@gmail.com
# clear the workspace
rm(list=ls())
## Set do_year for validation from command line prompt
args <- commandArgs(trailingOnly = F)
myargument <- args[length(args)]
... |
# 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/totPOP__poverty__adult_nosmok__.r | permissive | RandomCriticalAnalysis/MEPS-summary-tables | R | false | false | 1,550 | 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... |
## File Name: pmle_eval_prior_deriv.R
## File Version: 0.05
pmle_eval_prior_deriv <- function(prior, pars, h=1e-4, eps=1e-100)
{
abs_par <- abs(pars)
hvec <- h * ifelse(abs_par > 1, abs_par, 1)
priorval1 <- pmle_eval_prior(pars=pars+hvec, prior=prior)
priorval2 <- pmle_eval_prior(pars=pars-hvec, prior=... | /R/pmle_eval_prior_deriv.R | no_license | alexanderrobitzsch/LAM | R | false | false | 411 | r | ## File Name: pmle_eval_prior_deriv.R
## File Version: 0.05
pmle_eval_prior_deriv <- function(prior, pars, h=1e-4, eps=1e-100)
{
abs_par <- abs(pars)
hvec <- h * ifelse(abs_par > 1, abs_par, 1)
priorval1 <- pmle_eval_prior(pars=pars+hvec, prior=prior)
priorval2 <- pmle_eval_prior(pars=pars-hvec, prior=... |
library(ElemStatLearn)
data(vowel.train)
data(vowel.test)
vowel.train$y <- factor(vowel.train$y)
vowel.test$y <- factor(vowel.test$y)
set.seed(33833)
# Fit a random forest predictor relating the factor variable y to the remaining variables.
a <- randomForest(y ~ ., data = vowel.train, importance = FALSE)
b <- varIm... | /RandomForest.R | no_license | JDeanThomas/Caret-ML | R | false | false | 333 | r | library(ElemStatLearn)
data(vowel.train)
data(vowel.test)
vowel.train$y <- factor(vowel.train$y)
vowel.test$y <- factor(vowel.test$y)
set.seed(33833)
# Fit a random forest predictor relating the factor variable y to the remaining variables.
a <- randomForest(y ~ ., data = vowel.train, importance = FALSE)
b <- varIm... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DBResult.R
\name{dbColumnInfo}
\alias{dbColumnInfo}
\title{Information about result types}
\usage{
dbColumnInfo(res, ...)
}
\arguments{
\item{res}{An object inheriting from \linkS4class{DBIResult}.}
\item{...}{Other arguments passed on to me... | /man/dbColumnInfo.Rd | no_license | jimhester/DBI | R | false | true | 1,573 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DBResult.R
\name{dbColumnInfo}
\alias{dbColumnInfo}
\title{Information about result types}
\usage{
dbColumnInfo(res, ...)
}
\arguments{
\item{res}{An object inheriting from \linkS4class{DBIResult}.}
\item{...}{Other arguments passed on to me... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jointPipeline.R
\name{jointPipeline-shiny}
\alias{jointPipeline-shiny}
\alias{jointPipelineOutput}
\alias{renderJointPipeline}
\title{Shiny bindings for jointPipeline}
\usage{
jointPipelineOutput(outputId, width = "100\%", height = "400px")
... | /man/jointPipeline-shiny.Rd | no_license | harveyl888/pipelineR | R | false | true | 1,011 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/jointPipeline.R
\name{jointPipeline-shiny}
\alias{jointPipeline-shiny}
\alias{jointPipelineOutput}
\alias{renderJointPipeline}
\title{Shiny bindings for jointPipeline}
\usage{
jointPipelineOutput(outputId, width = "100\%", height = "400px")
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.R
\name{plot_kurt}
\alias{plot_kurt}
\title{Plot Kurtosis}
\usage{
plot_kurt(data, std = FALSE)
}
\arguments{
\item{data}{Dataframe of results.}
\item{std}{Logical.
If \code{TRUE}, standardized indirect effect.
If \code{FALSE}, unstanda... | /man/plot_kurt.Rd | permissive | jeksterslabds/jeksterslabRmedsimple | R | false | true | 634 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.R
\name{plot_kurt}
\alias{plot_kurt}
\title{Plot Kurtosis}
\usage{
plot_kurt(data, std = FALSE)
}
\arguments{
\item{data}{Dataframe of results.}
\item{std}{Logical.
If \code{TRUE}, standardized indirect effect.
If \code{FALSE}, unstanda... |
#' @title binomial variable
#' @description return the binomial variables
#' @param trials the number of tirals
#' @param prob the probability of a single success
#' @return a list that contains the number of tirals and the probability of a single success
#' @export
#' @examples
#'
#' bin1 <- bin_variable(trials = 10,... | /assignment/workout03/binomial/R/bin_variabable.R | no_license | stat133-sp19/hw-stat133-Jay1995712 | R | false | false | 1,574 | r | #' @title binomial variable
#' @description return the binomial variables
#' @param trials the number of tirals
#' @param prob the probability of a single success
#' @return a list that contains the number of tirals and the probability of a single success
#' @export
#' @examples
#'
#' bin1 <- bin_variable(trials = 10,... |
initMatrixWithNEHTrue <- read.csv(file="config_0_mean.csv", header=FALSE, sep=",")
initMatrixWithNEHFalse <- read.csv(file="config_1_mean.csv", header=FALSE, sep=",")
iteration <- c(initMatrixWithNEHTrue[1]$V1)
jpeg('result_time_mean_iteration.jpg')
yrange <- range(initMatrixWithNEHTrue[2]$V2,
initMatrixWithNEHF... | /withEliteSolution/old/meanGraph.R | no_license | auryn31/acoflowshop | R | false | false | 1,340 | r | initMatrixWithNEHTrue <- read.csv(file="config_0_mean.csv", header=FALSE, sep=",")
initMatrixWithNEHFalse <- read.csv(file="config_1_mean.csv", header=FALSE, sep=",")
iteration <- c(initMatrixWithNEHTrue[1]$V1)
jpeg('result_time_mean_iteration.jpg')
yrange <- range(initMatrixWithNEHTrue[2]$V2,
initMatrixWithNEHF... |
library(readr)
library(dplyr)
library(forcats) # manipulate factors
psy_test <- read_csv("./data/psy_test.csv")
item <- read_csv("data/item.csv",
col_types = cols(
item_num=col_character(),
question_num=col_character() ))
# variable information
vars <- colnam... | /rscript/data_import_cleaning.R | no_license | liao961120/psytesting.github.io | R | false | false | 14,415 | r | library(readr)
library(dplyr)
library(forcats) # manipulate factors
psy_test <- read_csv("./data/psy_test.csv")
item <- read_csv("data/item.csv",
col_types = cols(
item_num=col_character(),
question_num=col_character() ))
# variable information
vars <- colnam... |
#!/usr/bin/env Rscript
"
Analysis of 10x Genomics Chromium single cell RNA-seq data using Seurat (version 3.0) starting with Cell Ranger output.
Basic workflow steps:
1 - create - import counts matrix, perform initial QC, and calculate various variance metrics (slowest step)
2 - cluster - perform clustering based... | /scripts/scrna-10x-seurat-3.R | no_license | xiaocong3333/genomics | R | false | false | 74,805 | r | #!/usr/bin/env Rscript
"
Analysis of 10x Genomics Chromium single cell RNA-seq data using Seurat (version 3.0) starting with Cell Ranger output.
Basic workflow steps:
1 - create - import counts matrix, perform initial QC, and calculate various variance metrics (slowest step)
2 - cluster - perform clustering based... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/multi_chan.R
\name{k_mcnn}
\alias{k_mcnn}
\title{k_mcnn}
\usage{
k_mcnn(in_dim = 10000, in_length = 100, embed_dim = 128, sp_drop = 0.2,
filter_sizes = c(1, 2, 3, 5), num_filters = 32, out_dim = 1,
out_fun = "sigmoid", ...)
}
\arguments{
... | /man/k_mcnn.Rd | no_license | systats/tidykeras | R | false | true | 2,347 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/multi_chan.R
\name{k_mcnn}
\alias{k_mcnn}
\title{k_mcnn}
\usage{
k_mcnn(in_dim = 10000, in_length = 100, embed_dim = 128, sp_drop = 0.2,
filter_sizes = c(1, 2, 3, 5), num_filters = 32, out_dim = 1,
out_fun = "sigmoid", ...)
}
\arguments{
... |
#' module_gcam.usa_LA101.EIA_SEDS
#'
#' Produce two ouput tables from the EIA state energy database:
#' \itemize{
#' \item{L101.inEIA_EJ_state_S_F: Energy data by GCAM sector and fuel, state, and year; energy units in EJ, years from 1971-2010, includes only rows that have a defined sector and fuel}
#' \item{L101.EIA_... | /R/zchunk_LA101.EIA_SEDS.R | permissive | qingyihou/gcamdata | R | false | false | 5,679 | r | #' module_gcam.usa_LA101.EIA_SEDS
#'
#' Produce two ouput tables from the EIA state energy database:
#' \itemize{
#' \item{L101.inEIA_EJ_state_S_F: Energy data by GCAM sector and fuel, state, and year; energy units in EJ, years from 1971-2010, includes only rows that have a defined sector and fuel}
#' \item{L101.EIA_... |
##' Modifies 'data' by adding new values supplied in recodeFileName
##'
##' recodeFileName is expected to have columns
##' c(lookupVariable1,lookupOperator1, lookupValue1,
##' lookupVariable2,lookupOperator2, lookupValue2,
##' lookupVariable3,lookupOperator3, lookupValue3, newVariable, newValue)
##'
##' Within the c... | /masterCoder.R | no_license | ntanners/r_code | R | false | false | 4,320 | r | ##' Modifies 'data' by adding new values supplied in recodeFileName
##'
##' recodeFileName is expected to have columns
##' c(lookupVariable1,lookupOperator1, lookupValue1,
##' lookupVariable2,lookupOperator2, lookupValue2,
##' lookupVariable3,lookupOperator3, lookupValue3, newVariable, newValue)
##'
##' Within the c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{subsetES}
\alias{subsetES}
\title{Subsets es, if rows or columns are not specified, all are retained}
\usage{
subsetES(es, columns = c(), rows = c())
}
\arguments{
\item{es}{ExpressionSet object.#'}
\item{columns}{List of speci... | /man/subsetES.Rd | no_license | bhvbhushan/phantasus | R | false | true | 566 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{subsetES}
\alias{subsetES}
\title{Subsets es, if rows or columns are not specified, all are retained}
\usage{
subsetES(es, columns = c(), rows = c())
}
\arguments{
\item{es}{ExpressionSet object.#'}
\item{columns}{List of speci... |
"rateratio.midp" <-
function(x, y = NULL,
conf.level = 0.95,
rev = c("neither", "rows", "columns", "both"),
verbose = FALSE){
if(is.matrix(x) && !is.null(y)){stop("y argument should be NULL")}
if(is.null(y)){
x <- ratetable(x, rev = rev)
} else {
xn <- substitute(x)
... | /epitools/R/rateratio.midp.R | no_license | ingted/R-Examples | R | false | false | 1,921 | r | "rateratio.midp" <-
function(x, y = NULL,
conf.level = 0.95,
rev = c("neither", "rows", "columns", "both"),
verbose = FALSE){
if(is.matrix(x) && !is.null(y)){stop("y argument should be NULL")}
if(is.null(y)){
x <- ratetable(x, rev = rev)
} else {
xn <- substitute(x)
... |
sink("diagnostics/lmer.txt")
library(lme4)
library(RPostgreSQL)
drv <- dbDriver("PostgreSQL")
con <- dbConnect(drv, dbname="cricket")
query <- dbSendQuery(con, "
select
distinct
r.game_id,
r.year,
r.field as field,
r.team_name as team,
r.opponent_name as opponent,
ln(r.team_score) as gs,
(year-2019) as w
from super... | /super_smash/sos/lmer.R | no_license | octonion/cricket | R | false | false | 2,503 | r | sink("diagnostics/lmer.txt")
library(lme4)
library(RPostgreSQL)
drv <- dbDriver("PostgreSQL")
con <- dbConnect(drv, dbname="cricket")
query <- dbSendQuery(con, "
select
distinct
r.game_id,
r.year,
r.field as field,
r.team_name as team,
r.opponent_name as opponent,
ln(r.team_score) as gs,
(year-2019) as w
from super... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scAPAList.R
\name{set_scAPAList}
\alias{set_scAPAList}
\title{scAPAList Constructor}
\usage{
set_scAPAList(.cells.counts = data.frame(),
.clus.counts = data.frame(), .cluster.anot = data.frame(),
.row.Data = data.frame(), .down.seq = data... | /scAPA/man/set_scAPAList.Rd | permissive | eldadshulman/scAPA-1 | R | false | true | 1,416 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/scAPAList.R
\name{set_scAPAList}
\alias{set_scAPAList}
\title{scAPAList Constructor}
\usage{
set_scAPAList(.cells.counts = data.frame(),
.clus.counts = data.frame(), .cluster.anot = data.frame(),
.row.Data = data.frame(), .down.seq = data... |
library(svIDE)
### Name: getFunctions
### Title: Get all functions in a given environment
### Aliases: getFunctions
### Keywords: utilities
### ** Examples
getFunctions(1) # Functions defined in .GlobalEnv
length(getFunctions(length(search()))) # Number of functions in package:base
| /data/genthat_extracted_code/svIDE/examples/getFunctions.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 292 | r | library(svIDE)
### Name: getFunctions
### Title: Get all functions in a given environment
### Aliases: getFunctions
### Keywords: utilities
### ** Examples
getFunctions(1) # Functions defined in .GlobalEnv
length(getFunctions(length(search()))) # Number of functions in package:base
|
library(tidyverse)
library(ggraph)
library(igraph)
# read in edit_thai_dishes
df <- read_csv("edit_thai_dishes.csv")
# create edge
d1 <- data.frame(from="Shared dishes", to=c("Curries", "Soups", "Salads",
"Fried and stir-fried dishes", "Deep-fried dishes", "Grilled dishes"... | /web_scraping/circular_dendro_thai_dishes.R | permissive | PaulApivat/thai_dishes | R | false | false | 3,574 | r | library(tidyverse)
library(ggraph)
library(igraph)
# read in edit_thai_dishes
df <- read_csv("edit_thai_dishes.csv")
# create edge
d1 <- data.frame(from="Shared dishes", to=c("Curries", "Soups", "Salads",
"Fried and stir-fried dishes", "Deep-fried dishes", "Grilled dishes"... |
v <- rep(0, as.numeric(ncol(CovidConfirmedCases)))
for (i in 1:nrow(CovidConfirmedCases)){
j = 0
cases = CovidConfirmedCases[i,ncol(CovidConfirmedCases)]
if (cases != 0){
while (cases/2 < CovidConfirmedCases[i,ncol(CovidConfirmedCases)-j])
{
j = j + 1
... | /covid19/www/4_load_external_data/07_CovidConfirmedCasesRate.R | permissive | SpencerButt/CHAD | R | false | false | 495 | r | v <- rep(0, as.numeric(ncol(CovidConfirmedCases)))
for (i in 1:nrow(CovidConfirmedCases)){
j = 0
cases = CovidConfirmedCases[i,ncol(CovidConfirmedCases)]
if (cases != 0){
while (cases/2 < CovidConfirmedCases[i,ncol(CovidConfirmedCases)-j])
{
j = j + 1
... |
## Step 1: Build and format ring width data
## This script takes the ring width files (rwl format) and the stand-level inputs from the year the trees were cored and formats the data
## to run in the STAN ring width model. In getting to the correct format, this script also matches cores with tree species,
## DBH, and... | /R/build_data.R | no_license | PalEON-Project/RW-2-BIO | R | false | false | 24,195 | r | ## Step 1: Build and format ring width data
## This script takes the ring width files (rwl format) and the stand-level inputs from the year the trees were cored and formats the data
## to run in the STAN ring width model. In getting to the correct format, this script also matches cores with tree species,
## DBH, and... |
# Math 189, Winter 16, Final Project
# Sherry Diep, sadiep@ucsd.edu
# Sandra Hui, s3hui@ucsd.edu
# David Lee, dal002@ucsd.edu
# Irving Valles, ivalles@ucsd.edu
# Albert Xu, a8xu@uscd.edu
# Mark Yee, mjyee@ucsd.edu
setwd("Data")
library(reshape2)
library(party)
library(caret)
library(randomForest)
###################... | /final/Final-Report-Hui-Sandra.R | no_license | albertxu1994/math189_winter2016 | R | false | false | 6,062 | r | # Math 189, Winter 16, Final Project
# Sherry Diep, sadiep@ucsd.edu
# Sandra Hui, s3hui@ucsd.edu
# David Lee, dal002@ucsd.edu
# Irving Valles, ivalles@ucsd.edu
# Albert Xu, a8xu@uscd.edu
# Mark Yee, mjyee@ucsd.edu
setwd("Data")
library(reshape2)
library(party)
library(caret)
library(randomForest)
###################... |
r0.1<-5.121 ##r0=given
rinf.1<-6.179 ## rinfinity=given
lambda.1<-0.229 ##lambda=given
k.1<-0.025 ##kappa = given (mean reversion speed)
sigma.1<-126/12 ##sigma per period
vol.1<-0.0126*(sqrt(1/12))*100 ##volatility per period
theta<-rinf.1+(lambda.1/k.1) ##theta=rinf+lambda/k
steps1=30 ##number of per... | /vasicek.R | no_license | Karagul/Vasicektree | R | false | false | 5,678 | r | r0.1<-5.121 ##r0=given
rinf.1<-6.179 ## rinfinity=given
lambda.1<-0.229 ##lambda=given
k.1<-0.025 ##kappa = given (mean reversion speed)
sigma.1<-126/12 ##sigma per period
vol.1<-0.0126*(sqrt(1/12))*100 ##volatility per period
theta<-rinf.1+(lambda.1/k.1) ##theta=rinf+lambda/k
steps1=30 ##number of per... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reg_AC.R
\name{AC}
\alias{AC}
\title{Ji and Gallo's Agreement Coefficient (AC)}
\usage{
AC(data = NULL, obs, pred, tidy = FALSE, na.rm = TRUE)
}
\arguments{
\item{data}{(Optional) argument to call an existing data frame containing the data.}
... | /man/AC.Rd | permissive | adriancorrendo/metrica | R | false | true | 1,599 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/reg_AC.R
\name{AC}
\alias{AC}
\title{Ji and Gallo's Agreement Coefficient (AC)}
\usage{
AC(data = NULL, obs, pred, tidy = FALSE, na.rm = TRUE)
}
\arguments{
\item{data}{(Optional) argument to call an existing data frame containing the data.}
... |
#library(testthat)
f1 <- function() { x <- 1 }
test_that("duplicatesToFiles() works", {
f <- kwb.code:::duplicatesToFiles
expect_error(f())
root <- if ("tests" %in% dir()) "./tests/testthat/" else "."
#writeLines("f1 <- function(x) x + 1", file.path(root, "script.R"))
capture.output(trees <- kwb.... | /tests/testthat/test-function-duplicatesToFiles.R | permissive | KWB-R/kwb.code | R | false | false | 626 | r | #library(testthat)
f1 <- function() { x <- 1 }
test_that("duplicatesToFiles() works", {
f <- kwb.code:::duplicatesToFiles
expect_error(f())
root <- if ("tests" %in% dir()) "./tests/testthat/" else "."
#writeLines("f1 <- function(x) x + 1", file.path(root, "script.R"))
capture.output(trees <- kwb.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mask.R
\name{prefixMask}
\alias{prefixMask}
\title{Mask SigDF by probe ID prefix}
\usage{
prefixMask(sdf, prefixes = NULL, invert = FALSE)
}
\arguments{
\item{sdf}{SigDF}
\item{prefixes}{prefix characters}
\item{invert}{use the complement s... | /man/prefixMask.Rd | permissive | zwdzwd/sesame | R | false | true | 573 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mask.R
\name{prefixMask}
\alias{prefixMask}
\title{Mask SigDF by probe ID prefix}
\usage{
prefixMask(sdf, prefixes = NULL, invert = FALSE)
}
\arguments{
\item{sdf}{SigDF}
\item{prefixes}{prefix characters}
\item{invert}{use the complement s... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/y2x_isp.f.R
\name{y2x_isp.f}
\alias{y2x_isp.f}
\title{squared diameter using interpolating splines}
\usage{
y2x_isp.f(x, x.grd, y.grd, ...)
}
\arguments{
\item{x}{relative height}
\item{x.grd}{relative heights for interpolation}
\item{y.grd... | /man/y2x_isp.f.Rd | no_license | jonibio/TapeR | R | false | true | 627 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/y2x_isp.f.R
\name{y2x_isp.f}
\alias{y2x_isp.f}
\title{squared diameter using interpolating splines}
\usage{
y2x_isp.f(x, x.grd, y.grd, ...)
}
\arguments{
\item{x}{relative height}
\item{x.grd}{relative heights for interpolation}
\item{y.grd... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.