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 |
|---|---|---|---|---|---|---|---|---|---|
\name{GpisWindowOpen}
\alias{GpisWindowOpen}
\title{Check if an X11 window is opened}
\description{\code{GpisWindowOpen} returns TRUE if an X11 window is opened}
\usage{GpisWindowOpen(windowid)}
\arguments{ \item{windowid}{ X11 window id}}
\value{ none}
\seealso{ \code{\link{Gpinit}}}
\author{Jose' Gama}
\keyword{progr... | /man/GpisWindowOpen.Rd | no_license | cran/Rgnuplot | R | false | false | 328 | rd | \name{GpisWindowOpen}
\alias{GpisWindowOpen}
\title{Check if an X11 window is opened}
\description{\code{GpisWindowOpen} returns TRUE if an X11 window is opened}
\usage{GpisWindowOpen(windowid)}
\arguments{ \item{windowid}{ X11 window id}}
\value{ none}
\seealso{ \code{\link{Gpinit}}}
\author{Jose' Gama}
\keyword{progr... |
#' List Production (From Variable Functions)
#'
#' Produce a named \code{\link[base]{list}} that allows the user to lazily pass
#' unnamed \pkg{wakefield} variable functions (optionally, without call
#' parenthesis).
#'
#' @param n The length to pass to the randomly generated vectors.
#' @param \ldots A set of optional... | /R/r_list.R | no_license | Snazz2001/wakefield | R | false | false | 3,305 | r | #' List Production (From Variable Functions)
#'
#' Produce a named \code{\link[base]{list}} that allows the user to lazily pass
#' unnamed \pkg{wakefield} variable functions (optionally, without call
#' parenthesis).
#'
#' @param n The length to pass to the randomly generated vectors.
#' @param \ldots A set of optional... |
# Getting and Cleaning Data Project John Hopkins Coursera
# Author: Michael Galarnyk
# 1. Merges the training and the test sets to create one data set.
# 2. Extracts only the measurements on the mean and standard deviation for each measurement.
# 3. Uses descriptive activity names to name the activities in the data se... | /run_analysis.R | no_license | jumadistk/Getting-and-Cleaning-Data- | R | false | false | 2,926 | r | # Getting and Cleaning Data Project John Hopkins Coursera
# Author: Michael Galarnyk
# 1. Merges the training and the test sets to create one data set.
# 2. Extracts only the measurements on the mean and standard deviation for each measurement.
# 3. Uses descriptive activity names to name the activities in the data se... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vcov.internal.R
\name{vcov.internal}
\alias{vcov.internal}
\alias{U.sandwich}
\alias{U.score}
\title{Internal functions for vcov estimation}
\usage{
U.sandwich(Zbeta, Z, Y, link, W = NULL)
U.score(Zbeta, Z, Y, link, W = NULL)
}
\arguments{
\... | /man/vcov.internal.Rd | no_license | vishalbelsare/pim | R | false | true | 880 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/vcov.internal.R
\name{vcov.internal}
\alias{vcov.internal}
\alias{U.sandwich}
\alias{U.score}
\title{Internal functions for vcov estimation}
\usage{
U.sandwich(Zbeta, Z, Y, link, W = NULL)
U.score(Zbeta, Z, Y, link, W = NULL)
}
\arguments{
\... |
% --- Source file: ---
\name{selMtc.by.unc}
\alias{selMtc.by.unc}
\title{Identifies the best combination if matching variables in reducing uncertainty in estimation the contingency table Y vs. Z.}
\description{
This function identifies the ``best'' subset of matching variables in terms of reduction of uncertainty whe... | /StatMatch_1.4.0/man/SelMtc.by.unc.Rd | no_license | marcellodo/StatMatch | R | false | false | 8,144 | rd | % --- Source file: ---
\name{selMtc.by.unc}
\alias{selMtc.by.unc}
\title{Identifies the best combination if matching variables in reducing uncertainty in estimation the contingency table Y vs. Z.}
\description{
This function identifies the ``best'' subset of matching variables in terms of reduction of uncertainty whe... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mlm_plot.R
\name{mlm_pars_plot}
\alias{mlm_pars_plot}
\title{Plot estimated parameters of multilevel mediation model}
\usage{
mlm_pars_plot(mod = NULL, type = "hist", color = "black",
p_shape = 15, p_size = 1.2, level = 0.95, nrow = 3,
pa... | /fuzzedpackages/bmlm/man/mlm_pars_plot.Rd | no_license | akhikolla/testpackages | R | false | true | 1,065 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mlm_plot.R
\name{mlm_pars_plot}
\alias{mlm_pars_plot}
\title{Plot estimated parameters of multilevel mediation model}
\usage{
mlm_pars_plot(mod = NULL, type = "hist", color = "black",
p_shape = 15, p_size = 1.2, level = 0.95, nrow = 3,
pa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/analysisFunctions.R
\name{getPval}
\alias{getPval}
\title{Retrieve Selection Adjusted P-Values}
\usage{
getPval(object, type = NULL)
}
\arguments{
\item{object}{an object of class \code{\link{mvnQuadratic}},
\code{\link{glmQuadratic}}, or \co... | /man/getPval.Rd | no_license | ammeir2/PSAT | R | false | true | 860 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/analysisFunctions.R
\name{getPval}
\alias{getPval}
\title{Retrieve Selection Adjusted P-Values}
\usage{
getPval(object, type = NULL)
}
\arguments{
\item{object}{an object of class \code{\link{mvnQuadratic}},
\code{\link{glmQuadratic}}, or \co... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/synergysplines-package.R, R/synergysplines.R
\docType{package}
\name{synergysplines}
\alias{synergysplines}
\title{synergysplines}
\usage{
synergysplines(
y_mat,
x_mat,
drug_names = NULL,
experiment_ID = NULL,
log10_conc = FALSE,
... | /man/synergysplines.Rd | no_license | ocbe-uio/synergysplines | R | false | true | 5,271 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/synergysplines-package.R, R/synergysplines.R
\docType{package}
\name{synergysplines}
\alias{synergysplines}
\title{synergysplines}
\usage{
synergysplines(
y_mat,
x_mat,
drug_names = NULL,
experiment_ID = NULL,
log10_conc = FALSE,
... |
#' Get WA data from file downloaded from WA DOH
#'
#' Need to manually download file. Save to .csv. Save tab for total and tab for deaths separately. `PUBLIC-CDC-Event-Date-SARS.csv` and `PUBLIC-CDC-Event-Date-SARS-deaths.csv`
#'
#' @return Returns a data frame that is used in `getdatastates()`
#' @examples
#' \dontr... | /R/getdatawa.R | no_license | eeholmes/CoV19 | R | false | false | 1,450 | r | #' Get WA data from file downloaded from WA DOH
#'
#' Need to manually download file. Save to .csv. Save tab for total and tab for deaths separately. `PUBLIC-CDC-Event-Date-SARS.csv` and `PUBLIC-CDC-Event-Date-SARS-deaths.csv`
#'
#' @return Returns a data frame that is used in `getdatastates()`
#' @examples
#' \dontr... |
#' Preprocessing regression
#' Ce programme fait le preprocessing pour le modele de regression seulement
#' On assume ici que le preprocessing de base a été roulé
preprocessing_regression <- function(data, train_mode=TRUE, list_objects=NULL) {
if (train_mode){
# On crée les variables réponses
setname... | /src/deploiement/plumber/assets/preprocessing_regression.R | no_license | abdelaadimkrs/modelisation-predictive-R | R | false | false | 1,191 | r | #' Preprocessing regression
#' Ce programme fait le preprocessing pour le modele de regression seulement
#' On assume ici que le preprocessing de base a été roulé
preprocessing_regression <- function(data, train_mode=TRUE, list_objects=NULL) {
if (train_mode){
# On crée les variables réponses
setname... |
t <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?", colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric','numeric','numeric'))
## Format date to Type Date
t$Date <- as.Date(t$Date, "%d/%m/%Y")
## Filter data set from Feb. 1, 2007 to Feb. 2, 20... | /PLOT 2.R | no_license | citizentech/HOUSEHOLD-ELECTRICITY-CONSUMPTION | R | false | false | 952 | r | t <- read.table("household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?", colClasses = c('character','character','numeric','numeric','numeric','numeric','numeric','numeric','numeric'))
## Format date to Type Date
t$Date <- as.Date(t$Date, "%d/%m/%Y")
## Filter data set from Feb. 1, 2007 to Feb. 2, 20... |
url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(url, "tmp.zip")
unzip("tmp.zip")
# The first line of the downloaded file is a header, na.string are marked as "?", so the parameters header=TRUE, na.strings="?" are used
d <- read.csv("household_power_consum... | /Plot3.R | no_license | olisis/ExData_Plotting1 | R | false | false | 1,742 | r | url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip"
download.file(url, "tmp.zip")
unzip("tmp.zip")
# The first line of the downloaded file is a header, na.string are marked as "?", so the parameters header=TRUE, na.strings="?" are used
d <- read.csv("household_power_consum... |
###########################################################################
## Project: MT_2018
## Content: create design file
## Date: 2018-03-15 13:52:02
## Author: Reto Zihlmann <retozihlmann@outlook.com>
###########################################################################
# packages ---------------... | /script/03_design_file/design_file.R | no_license | retodomax/MT_2018 | R | false | false | 3,145 | r | ###########################################################################
## Project: MT_2018
## Content: create design file
## Date: 2018-03-15 13:52:02
## Author: Reto Zihlmann <retozihlmann@outlook.com>
###########################################################################
# packages ---------------... |
#
# Author: Oisin McCaffrey
# Title: Assignment3 - MA5111 - Microarray analysis - 16307771
# Date: 23 October 2020
#
#
#
#
library(shiny)
ui <- fluidPage(
# Title
titlePanel("MA5111 Assignment 4"),
sidebarLayout(
sidebarPanel(
fileInput("file1", "Choose CSV File",
accept = c... | /assignment3.R | no_license | oisinmccaffrey/First-Shiny-Project | R | false | false | 2,814 | r | #
# Author: Oisin McCaffrey
# Title: Assignment3 - MA5111 - Microarray analysis - 16307771
# Date: 23 October 2020
#
#
#
#
library(shiny)
ui <- fluidPage(
# Title
titlePanel("MA5111 Assignment 4"),
sidebarLayout(
sidebarPanel(
fileInput("file1", "Choose CSV File",
accept = c... |
#' Assign Colors to Collection of Values Using Color Brewer
#'
#' Assign a specified number of Color Brewer colors to a collection of values.
#' @param x
#' A numeric vector of values to which colors will be assigned.
#' @param n
#' An integer scalar indicating the number of unique colors to be assigned,
#' defau... | /R/brewcol.R | no_license | JVAdams/jvamisc | R | false | false | 971 | r | #' Assign Colors to Collection of Values Using Color Brewer
#'
#' Assign a specified number of Color Brewer colors to a collection of values.
#' @param x
#' A numeric vector of values to which colors will be assigned.
#' @param n
#' An integer scalar indicating the number of unique colors to be assigned,
#' defau... |
#!/usr/bin/env Rscript
# Title : seuratBatchCorrect
# Objective : This wraps the 'mnnCorrect' function of seurate 2.0.1, taking
# multiple expression matrices as separate batches and normalizing
# based on matching mutual nearest neighbors.
# Website : http://satijalab.org/seurat/Seurat_A... | /seurat/seuratBatchCorrect.R | no_license | byee4/batch_correction_scripts | R | false | false | 4,955 | r | #!/usr/bin/env Rscript
# Title : seuratBatchCorrect
# Objective : This wraps the 'mnnCorrect' function of seurate 2.0.1, taking
# multiple expression matrices as separate batches and normalizing
# based on matching mutual nearest neighbors.
# Website : http://satijalab.org/seurat/Seurat_A... |
require("rjit")
# single backets
f <- jit.compile(function() {
2[1]
})
stopifnot(2 == f())
f <- jit.compile(function() {
2[2]
})
stopifnot(is.na(f()))
f <- jit.compile(function() {
a <- c(2:5)
a[1L]
})
stopifnot(2 == f())
f <- jit.compile(function() {
a <- c(2:5)
a[1]
})
stopifnot(2 == f())
f <- jit.compile... | /rjit/tests/vector.R | no_license | reactorlabs/rjit | R | false | false | 4,041 | r | require("rjit")
# single backets
f <- jit.compile(function() {
2[1]
})
stopifnot(2 == f())
f <- jit.compile(function() {
2[2]
})
stopifnot(is.na(f()))
f <- jit.compile(function() {
a <- c(2:5)
a[1L]
})
stopifnot(2 == f())
f <- jit.compile(function() {
a <- c(2:5)
a[1]
})
stopifnot(2 == f())
f <- jit.compile... |
#-------------------------------------------------------------
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you... | /src/test/scripts/applications/descriptivestats/ScaleScale.R | permissive | stc-tester/incubator-systemml | R | false | false | 1,516 | r | #-------------------------------------------------------------
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you... |
## Below are two functions that are used to create a special object that stores a
## numeric matrix and caches its inverse. (Assumes that we always get an invertible matrix)
##The first function, makeCacheMatrix creates a special "matrix", which is really a list containing a function to
## 1. set the value of the m... | /cachematrix.R | no_license | EVDB31/ProgrammingAssignment2 | R | false | false | 1,367 | r | ## Below are two functions that are used to create a special object that stores a
## numeric matrix and caches its inverse. (Assumes that we always get an invertible matrix)
##The first function, makeCacheMatrix creates a special "matrix", which is really a list containing a function to
## 1. set the value of the m... |
#' @title change.numcom
#'
#' @description \code{change.numcom} fügt einem Dataframe mit kommunalen Daten eine zusätzliche Spalte mit der Gemeindenummer zu einem späteren Zeitpunkt an.
#'
#' @param dataframe Ein Dataframe mit Daten mit kommunalem Bezug, die auf einen neuen, spätere Gemeindestand angepasst
#' werden sol... | /R/change.numcom.R | no_license | perochat/amalgamatorCOMM | R | false | false | 6,384 | r | #' @title change.numcom
#'
#' @description \code{change.numcom} fügt einem Dataframe mit kommunalen Daten eine zusätzliche Spalte mit der Gemeindenummer zu einem späteren Zeitpunkt an.
#'
#' @param dataframe Ein Dataframe mit Daten mit kommunalem Bezug, die auf einen neuen, spätere Gemeindestand angepasst
#' werden sol... |
# Get data
dataFile <- "household_power_consumption.txt"
# Read data
data <- read.table(dataFile, header = TRUE, sep = ";")
# Convert the Date variable to Date classes in R using the as.Date() function
data$Date <- as.Date(data$Date, format = "%d/%m/%Y")
# Subset the data
subdata <- subset(data, su... | /plot3.R | no_license | jrthomson/exploratory-data-analysis-course-project-1 | R | false | false | 1,174 | r | # Get data
dataFile <- "household_power_consumption.txt"
# Read data
data <- read.table(dataFile, header = TRUE, sep = ";")
# Convert the Date variable to Date classes in R using the as.Date() function
data$Date <- as.Date(data$Date, format = "%d/%m/%Y")
# Subset the data
subdata <- subset(data, su... |
#xgboost模型的说明
#可视化
# bst是一个xgboost模型
model <-xgb.dump(bst, with.stats = T)
model[1:10] #打印出前几个分类特征
importance_matrix <- xgb.importance(bst$feature_names,
model = bst)
xgb.plot.importance(importance_matrix[1:10,]) #重要性
xgb.plot.tree(model = bst)
xgb.plot.tree(model = bst, t... | /xgboost.R | no_license | gonggaobushang/R-Data-Analysis | R | false | false | 5,504 | r | #xgboost模型的说明
#可视化
# bst是一个xgboost模型
model <-xgb.dump(bst, with.stats = T)
model[1:10] #打印出前几个分类特征
importance_matrix <- xgb.importance(bst$feature_names,
model = bst)
xgb.plot.importance(importance_matrix[1:10,]) #重要性
xgb.plot.tree(model = bst)
xgb.plot.tree(model = bst, t... |
library(purrr)
library(glue)
library(urltools)
library(tibble)
library(dplyr)
# https://www.autotrader.com/cars-for-sale/searchresults.xhtml?zip=78741&listingTypes=used&makeCodeList=JEEP&modelCodeList=WRANGLER
# build_search_url <- function(x) UseMethod("build_search_url")
# build_search_url.autotrader <- function(ma... | /R/Functions/_base.R | no_license | AdrielC/autotradeR | R | false | false | 4,307 | r | library(purrr)
library(glue)
library(urltools)
library(tibble)
library(dplyr)
# https://www.autotrader.com/cars-for-sale/searchresults.xhtml?zip=78741&listingTypes=used&makeCodeList=JEEP&modelCodeList=WRANGLER
# build_search_url <- function(x) UseMethod("build_search_url")
# build_search_url.autotrader <- function(ma... |
#' Create Interaction Variables
#'
#' `step_interact` creates a *specification* of a recipe
#' step that will create new columns that are interaction terms
#' between two or more variables.
#'
#' @inheritParams step_center
#' @param ... One or more selector functions to choose which
#' variables are affected by the ... | /R/interactions.R | no_license | juliasilge/recipes | R | false | false | 10,834 | r | #' Create Interaction Variables
#'
#' `step_interact` creates a *specification* of a recipe
#' step that will create new columns that are interaction terms
#' between two or more variables.
#'
#' @inheritParams step_center
#' @param ... One or more selector functions to choose which
#' variables are affected by the ... |
#' Read in SIBER format data and generate the SIBER object
#'
#' This function takes raw isotope data and creates a SIBER object which
#' contains information in a structured manner that enables other functions to
#' loop over groups and communities, fit Bayesian ellipses, and afterwards,
#' generate various plots, and... | /R/createSiberObject.R | no_license | AndrewLJackson/SIBER | R | false | false | 9,312 | r | #' Read in SIBER format data and generate the SIBER object
#'
#' This function takes raw isotope data and creates a SIBER object which
#' contains information in a structured manner that enables other functions to
#' loop over groups and communities, fit Bayesian ellipses, and afterwards,
#' generate various plots, and... |
# Load packages -----------------------------------------------------
library(shiny)
library(ggplot2)
library(dplyr)
library(tools)
library(stringr)
# Load data ---------------------------------------------------------
load("../../17_shiny/19_ejercicio/data/movies.Rdata")
# Define UI ---------------------------------... | /answers/shiny/movies.R | no_license | juanfra1517/Rcourse | R | false | false | 5,767 | r | # Load packages -----------------------------------------------------
library(shiny)
library(ggplot2)
library(dplyr)
library(tools)
library(stringr)
# Load data ---------------------------------------------------------
load("../../17_shiny/19_ejercicio/data/movies.Rdata")
# Define UI ---------------------------------... |
library(sf)
library(sp)
mtq <- st_read(system.file("gpkg/mtq.gpkg", package="cartography"), quiet = TRUE)
mob <- read.csv(system.file("csv/mob.csv", package="cartography"))
mob.sf <- getLinkLayer(x = mtq, df = mob[mob$j %in% c(97209, 97213),],
dfid = c("i", "j"))
plot(st_geometry(mtq))
expect... | /inst/tinytest/test_gradLinkTypoLayer.R | no_license | riatelab/cartography | R | false | false | 1,218 | r | library(sf)
library(sp)
mtq <- st_read(system.file("gpkg/mtq.gpkg", package="cartography"), quiet = TRUE)
mob <- read.csv(system.file("csv/mob.csv", package="cartography"))
mob.sf <- getLinkLayer(x = mtq, df = mob[mob$j %in% c(97209, 97213),],
dfid = c("i", "j"))
plot(st_geometry(mtq))
expect... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prune.R
\name{prune}
\alias{prune}
\title{Prune or merge nodes according to their value vs bounds of the true maximum}
\usage{
prune(tree, bounds, dfs_env)
}
\arguments{
\item{`tree`}{(\code{environment}) The whole tree, originally created by... | /man/prune.Rd | permissive | uk-gov-mirror/ukgovdatascience.wmms | R | false | true | 2,953 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prune.R
\name{prune}
\alias{prune}
\title{Prune or merge nodes according to their value vs bounds of the true maximum}
\usage{
prune(tree, bounds, dfs_env)
}
\arguments{
\item{`tree`}{(\code{environment}) The whole tree, originally created by... |
#' High-throughput approach for testing directional replication that uses filtering to improve adjusted p-values
#'
#' High-throughput approach for testing replication of two base studies, where each study applies a two-sided test whose
#' signed statistic and p-value are supplied via `tab`, and its desired to find row... | /R/hitman2_replication.R | permissive | jdreyf/Hitman | R | false | false | 2,551 | r | #' High-throughput approach for testing directional replication that uses filtering to improve adjusted p-values
#'
#' High-throughput approach for testing replication of two base studies, where each study applies a two-sided test whose
#' signed statistic and p-value are supplied via `tab`, and its desired to find row... |
#Prueba mil
x <- 8
y <- 10
x*y | /prueba.R | no_license | Tortufuriaperru/Miprueba2 | R | false | false | 31 | r | #Prueba mil
x <- 8
y <- 10
x*y |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ptMCMC.R
\name{prep_proposal_dist}
\alias{prep_proposal_dist}
\title{Pre-calculate the change point proposal distribution for the ptMCMC
algorithm}
\usage{
prep_proposal_dist(nchangepoints, control = list())
}
\arguments{
\item{n... | /man/prep_proposal_dist.Rd | permissive | cran/LDATS | R | false | true | 1,906 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ptMCMC.R
\name{prep_proposal_dist}
\alias{prep_proposal_dist}
\title{Pre-calculate the change point proposal distribution for the ptMCMC
algorithm}
\usage{
prep_proposal_dist(nchangepoints, control = list())
}
\arguments{
\item{n... |
corr <- function(directory, threshold = 0){
retorno <- numeric()
completos <- complete(directory)
superanLimite <- subset(completos, nobs > threshold)[,1]
j <- 0
for(i in superanLimite)
{
fileName <- paste (".", "\\" ,directory, "\\" , formatC(i, 2, flag = "0") ,".csv", se... | /curso 1/corr.R | no_license | NicolasPresta/DataScienceCourse | R | false | false | 493 | r | corr <- function(directory, threshold = 0){
retorno <- numeric()
completos <- complete(directory)
superanLimite <- subset(completos, nobs > threshold)[,1]
j <- 0
for(i in superanLimite)
{
fileName <- paste (".", "\\" ,directory, "\\" , formatC(i, 2, flag = "0") ,".csv", se... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Gaussian_Inference.r
\name{sufficientStatistics.LinearGaussianGaussian}
\alias{sufficientStatistics.LinearGaussianGaussian}
\title{Sufficient statistics of a "LinearGaussianGaussian" object}
\usage{
\method{sufficientStatistics}{LinearGaussia... | /man/sufficientStatistics.LinearGaussianGaussian.Rd | permissive | seanahmad/Bayesian-Bricks | R | false | true | 3,972 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Gaussian_Inference.r
\name{sufficientStatistics.LinearGaussianGaussian}
\alias{sufficientStatistics.LinearGaussianGaussian}
\title{Sufficient statistics of a "LinearGaussianGaussian" object}
\usage{
\method{sufficientStatistics}{LinearGaussia... |
#' Build reference section
#'
#' By default, pkgdown will generate an index that simply lists all
#' the functions in alphabetical order. To override this, provide a
#' \code{reference} section in your \code{_pkgdown.yml} as described
#' below.
#'
#' @section YAML config:
#' To tweak the index page, you need a section ... | /R/build-reference.R | no_license | jakob-r/pkgdown | R | false | false | 8,435 | r | #' Build reference section
#'
#' By default, pkgdown will generate an index that simply lists all
#' the functions in alphabetical order. To override this, provide a
#' \code{reference} section in your \code{_pkgdown.yml} as described
#' below.
#'
#' @section YAML config:
#' To tweak the index page, you need a section ... |
###################################
######
###################################
rm(list=ls(all=TRUE))
############ list of hibernating animals
Hib = read.table("../../Body/1Raw/HibernatingMammals.txt", sep = '\t')
ListOfHibSpecies = gsub(' ','_',Hib$V1); length(ListOfHibSpecies)
############ Syn mut
SynNuc = read.ta... | /Head/2Scripts/WholeGenomeAnalyses.HibernationWithinMammals.NoOverlap.R | no_license | polarsong/mtDNA_mutspectrum | R | false | false | 2,903 | r | ###################################
######
###################################
rm(list=ls(all=TRUE))
############ list of hibernating animals
Hib = read.table("../../Body/1Raw/HibernatingMammals.txt", sep = '\t')
ListOfHibSpecies = gsub(' ','_',Hib$V1); length(ListOfHibSpecies)
############ Syn mut
SynNuc = read.ta... |
# Loading the data
Power <- read.table("household_power_consumption.txt", header=TRUE , na.string="?", sep=";")
# Subsetting the data and only using the dates 2007-02-01 and 2007-02-02
Power$Time <- strptime(paste(Power$Date, Power$Time, sep=", "),
format = "%d/%m/%Y, %H:%M:%S")
Power$Date<-a... | /Plot 2.R | no_license | xu-wen/ExData_Plotting1 | R | false | false | 672 | r |
# Loading the data
Power <- read.table("household_power_consumption.txt", header=TRUE , na.string="?", sep=";")
# Subsetting the data and only using the dates 2007-02-01 and 2007-02-02
Power$Time <- strptime(paste(Power$Date, Power$Time, sep=", "),
format = "%d/%m/%Y, %H:%M:%S")
Power$Date<-a... |
#install.packages("ggmap")
library(ggmap)
library(tidyverse)
#read sample data
res <- read_csv("address.csv")
#set coordinate
seoul <- c(lon = 126.977869 , lat = 37.567597)
#map setting
map_13 <- get_map(seoul, zoom = 12, scale = 1, source = "stamen", maptype = "toner")
#draw map : ggmap pacakges
ggmap(map_13)
#dr... | /Day027/code.R | no_license | woons/project_woons | R | false | false | 927 | r | #install.packages("ggmap")
library(ggmap)
library(tidyverse)
#read sample data
res <- read_csv("address.csv")
#set coordinate
seoul <- c(lon = 126.977869 , lat = 37.567597)
#map setting
map_13 <- get_map(seoul, zoom = 12, scale = 1, source = "stamen", maptype = "toner")
#draw map : ggmap pacakges
ggmap(map_13)
#dr... |
setwd("/Users/hintze/Desktop/PhD\ Action\ Plan/Core\ Projects/Finishing/PBGP--FINAL/Analyses/PBGP--Stats/PBGP--Filtering-Confirmation\ of\ Possible\ Paralogs/")
library(ggplot2)
library(scales)
a0 <- read.table("PBGP--GoodSamples_WithAllWGS-GBSPairs_95Ind_ParalogTest_IntersectedWithMerged--Article--Ultra.mean")
colna... | /PBG--Pipeline/PBG--Plots/PBG--Stats/PBG--GlobalDepth/PBG--GlobalDepth.R | permissive | HomereAMK/PigeonBreedsGenomics | R | false | false | 3,034 | r | setwd("/Users/hintze/Desktop/PhD\ Action\ Plan/Core\ Projects/Finishing/PBGP--FINAL/Analyses/PBGP--Stats/PBGP--Filtering-Confirmation\ of\ Possible\ Paralogs/")
library(ggplot2)
library(scales)
a0 <- read.table("PBGP--GoodSamples_WithAllWGS-GBSPairs_95Ind_ParalogTest_IntersectedWithMerged--Article--Ultra.mean")
colna... |
## unit check helper for Argentina
## is FOB/weight unusual?
# define fcn detect_unusual_units(table)
# input: table with (at least) columns Product.Schedule.B.Code, Cantidad.Estadistica, fob_per_kg
# output: table of rows with unusual units
# creates new column with median (or mean? try both) fob_per_kg per HS code
#... | /comtrade_checks/unit_check_helper_argentina.R | no_license | lauradelduca/s3inventory | R | false | false | 1,396 | r | ## unit check helper for Argentina
## is FOB/weight unusual?
# define fcn detect_unusual_units(table)
# input: table with (at least) columns Product.Schedule.B.Code, Cantidad.Estadistica, fob_per_kg
# output: table of rows with unusual units
# creates new column with median (or mean? try both) fob_per_kg per HS code
#... |
################
# Neil's generic GARCH code
################
##################
# simulate GARCH model, mem = alpha+beta, delta = beta/(alpha+beta)
##################
sim_GARCH <- function(n,alpha,mem,delta) {
beta = delta*mem
gamma = (1.0-delta)*mem
s2 = alpha/(1.0-beta-gamma)
y = array(0,dim=... | /source/data/garch20151117.r | no_license | IanMadlenya/AC209-Project_Win_The_Market | R | false | false | 3,880 | r | ################
# Neil's generic GARCH code
################
##################
# simulate GARCH model, mem = alpha+beta, delta = beta/(alpha+beta)
##################
sim_GARCH <- function(n,alpha,mem,delta) {
beta = delta*mem
gamma = (1.0-delta)*mem
s2 = alpha/(1.0-beta-gamma)
y = array(0,dim=... |
N = 2000
P = N - 10
Phi = PhiRand(N, P)
s = rep(0, N)
s[1:6] = 1
I = supp(s)
k = length(I)
print(paste("N =", N, ", P =", P, ", |I| =", k))
print(paste("F(s) =", round(F(Phi, s), 2)))
print(paste("ERC(I) =", round(erc(Phi, I), 2)))
print(paste("w-ERC(s) =", round(werc(Phi, I), 2)))
print(paste("Coh(|s|) =", round(Coh(... | /numerical-tours/r/nt_solutions/sparsity_6_l1_recovery/exo2.R | permissive | ZichaoDi/Di_MATLABTool | R | false | false | 333 | r | N = 2000
P = N - 10
Phi = PhiRand(N, P)
s = rep(0, N)
s[1:6] = 1
I = supp(s)
k = length(I)
print(paste("N =", N, ", P =", P, ", |I| =", k))
print(paste("F(s) =", round(F(Phi, s), 2)))
print(paste("ERC(I) =", round(erc(Phi, I), 2)))
print(paste("w-ERC(s) =", round(werc(Phi, I), 2)))
print(paste("Coh(|s|) =", round(Coh(... |
library(testthat)
library(rootWishart)
test_check("rootWishart")
| /fuzzedpackages/rootWishart/tests/testthat.R | no_license | akhikolla/testpackages | R | false | false | 66 | r | library(testthat)
library(rootWishart)
test_check("rootWishart")
|
library(shiny)
library(shinyjs)
library(knitr)
library(rmarkdown)
library(mailR)
library(googlesheets)
source("settings.txt")
source("helpers.R")
log.spreadsheet.id <- app.settings$log.spreadsheet.id
# options(timeout = 90)
# For RStudio debugging only, in order to prevent logging via gsheets which takes time
offline... | /global.R | no_license | ericscheier/QualtricsReports | R | false | false | 546 | r |
library(shiny)
library(shinyjs)
library(knitr)
library(rmarkdown)
library(mailR)
library(googlesheets)
source("settings.txt")
source("helpers.R")
log.spreadsheet.id <- app.settings$log.spreadsheet.id
# options(timeout = 90)
# For RStudio debugging only, in order to prevent logging via gsheets which takes time
offline... |
# generic packages and graphic settings.
# Katie Palof
# katie.palof@alaska.gov
# 2018-11-26
# load packages -----
library(matrixStats)
library(tidyverse)
library(reshape2)
library(scales)
library(extrafont)
library(grid)
library(gridExtra)
#library(FNGr)
library(scales)
library(cowplot)
library(readxl)
options(scipe... | /code/helper.R | no_license | kjpalof/geoduck_exploration | R | false | false | 608 | r | # generic packages and graphic settings.
# Katie Palof
# katie.palof@alaska.gov
# 2018-11-26
# load packages -----
library(matrixStats)
library(tidyverse)
library(reshape2)
library(scales)
library(extrafont)
library(grid)
library(gridExtra)
#library(FNGr)
library(scales)
library(cowplot)
library(readxl)
options(scipe... |
## -----------------------------------------------------------------------
## Author Gerald P. Wright
##
## Language R 3.2.0
## File cachematrix.R
##
## Description:
## Matrix inversion is usually a costly computation and there may be some
## benefit to caching the inverse of a matrix rather than co... | /cachematrix.R | no_license | Gerald-Wright/ProgrammingAssignment2 | R | false | false | 3,826 | r | ## -----------------------------------------------------------------------
## Author Gerald P. Wright
##
## Language R 3.2.0
## File cachematrix.R
##
## Description:
## Matrix inversion is usually a costly computation and there may be some
## benefit to caching the inverse of a matrix rather than co... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/survbayes-package.R
\name{get_terms_mapping}
\alias{get_terms_mapping}
\title{Get mapping from column names to model-terms and vice versa}
\usage{
get_terms_mapping(formula, data, ...)
}
\arguments{
\item{formula}{The formula to be passed to ... | /man/get_terms_mapping.Rd | no_license | jwdink/survbayes | R | false | true | 590 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/survbayes-package.R
\name{get_terms_mapping}
\alias{get_terms_mapping}
\title{Get mapping from column names to model-terms and vice versa}
\usage{
get_terms_mapping(formula, data, ...)
}
\arguments{
\item{formula}{The formula to be passed to ... |
/SMA group 6.R | no_license | RuturajM31/social-media-analytics | R | false | false | 26,071 | r | ||
generateRN <- function(product, tempDiff,SystemAge, BuildingAge,System,
sdNonLinear, nonRandomFlag = FALSE) {
out = NA
# input a single row
if(nonRandomFlag){
if (product == "A") {
out = tempDiff
} else if (product == "B") {
out = SystemAge
}else if (product == "C") ... | /SensorFiles/nonLinear.R | no_license | AGarsha/presentation | R | false | false | 1,449 | r | generateRN <- function(product, tempDiff,SystemAge, BuildingAge,System,
sdNonLinear, nonRandomFlag = FALSE) {
out = NA
# input a single row
if(nonRandomFlag){
if (product == "A") {
out = tempDiff
} else if (product == "B") {
out = SystemAge
}else if (product == "C") ... |
library("data.table")
library("ggplot2")
SCC <- data.table::as.data.table(x = readRDS(file = "Source_Classification_Code.rds"))
NEI <- data.table::as.data.table(x = readRDS(file = "summarySCC_PM25.rds"))
# Gather the subset of the NEI data which corresponds to vehicles
condition <- grepl("vehicle", SCC[, SCC.Level.Tw... | /plot5.R | no_license | FerchoRomay/FineParticleMatter | R | false | false | 850 | r | library("data.table")
library("ggplot2")
SCC <- data.table::as.data.table(x = readRDS(file = "Source_Classification_Code.rds"))
NEI <- data.table::as.data.table(x = readRDS(file = "summarySCC_PM25.rds"))
# Gather the subset of the NEI data which corresponds to vehicles
condition <- grepl("vehicle", SCC[, SCC.Level.Tw... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/product_test.R
\docType{data}
\name{product_test}
\alias{product_test}
\title{Data from product test of chocolate confectionary}
\format{A data frame with 150 rows and 18 variables:
\describe{
\item{id}{Respondent Id.}
\item{cell}{First... | /man/product_test.Rd | no_license | mattdowle/expss | R | false | true | 2,354 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/product_test.R
\docType{data}
\name{product_test}
\alias{product_test}
\title{Data from product test of chocolate confectionary}
\format{A data frame with 150 rows and 18 variables:
\describe{
\item{id}{Respondent Id.}
\item{cell}{First... |
## R script for GSEA of titer correlation data
## David R. Hill
## -----------------------------------------------------------------------------
library(magrittr)
## load data and reformat
data <- readr::read.csv("../results/counts_metadata_titer-correlation.csv")
## GSEA based on correlation results
## create funct... | /src/titer-GSEA.R | permissive | hilldr/astrovirus | R | false | false | 1,816 | r | ## R script for GSEA of titer correlation data
## David R. Hill
## -----------------------------------------------------------------------------
library(magrittr)
## load data and reformat
data <- readr::read.csv("../results/counts_metadata_titer-correlation.csv")
## GSEA based on correlation results
## create funct... |
# Install INLA using currently recommended method
#install.packages("INLA", repos=c(getOption("repos"), INLA="https://inla.r-inla-download.org/R/stable"), dep=TRUE)
library(devtools)
# Install package
#install_github("james-thorson/VAST")
# Load package
library(VAST)
library(TMB)
library(INLA)
#install.packages("se... | /vast_model_run.R | no_license | MatthewRobertson2452/LaggedRecovery | R | false | false | 17,684 | r |
# Install INLA using currently recommended method
#install.packages("INLA", repos=c(getOption("repos"), INLA="https://inla.r-inla-download.org/R/stable"), dep=TRUE)
library(devtools)
# Install package
#install_github("james-thorson/VAST")
# Load package
library(VAST)
library(TMB)
library(INLA)
#install.packages("se... |
server <- function(input, output, session) {
## Dataset Hedo ----
test = F
df.hedoForDisplay = reactive({
req(input$fileHedo)
validate(need(
file_ext(input$fileHedo$name) %in% c('text/csv',
'text/comma-separated-values',
... | /inst/app/server.R | no_license | khllkcm/SensoDash | R | false | false | 31,676 | r | server <- function(input, output, session) {
## Dataset Hedo ----
test = F
df.hedoForDisplay = reactive({
req(input$fileHedo)
validate(need(
file_ext(input$fileHedo$name) %in% c('text/csv',
'text/comma-separated-values',
... |
################# HR Analytics Case Study #################
################# 1. LOADING DATASETS #################
gen_data <- read.csv("general_data.csv", stringsAsFactors = F)
emp_survey <- read.csv("employee_survey_data.csv", stringsAsFactors = F)
man_survey <- read.csv("manager_survey_data.csv", stri... | /R Code - Corporate Attrition.R | no_license | Alok-Chauhan/HR-Analytics-with-Logistic-Regression | R | false | false | 30,052 | r |
################# HR Analytics Case Study #################
################# 1. LOADING DATASETS #################
gen_data <- read.csv("general_data.csv", stringsAsFactors = F)
emp_survey <- read.csv("employee_survey_data.csv", stringsAsFactors = F)
man_survey <- read.csv("manager_survey_data.csv", stri... |
#@since 1.8.0
category DesignPattern
メソッドの委譲 (delegation) を行うためのライブラリです。
[[c:Delegator]] クラスは指定したオブジェクトにメソッドの実行を委譲します。
[[c:Delegator]] クラスを利用する場合はこれを継承して
[[m:Delegator#__getobj__]] メソッドを再定義して委譲先のオブジェクトを指定します。
[[c:SimpleDelegator]] は [[c:Delegator]] の利用例の一つであり、
コンストラクタに渡されたオブジェクトにメソッドの実行を委譲します。
[[m:Kernel#Delegate... | /refm/api/src/delegate.rd | no_license | willnet/doctree | R | false | false | 6,147 | rd | #@since 1.8.0
category DesignPattern
メソッドの委譲 (delegation) を行うためのライブラリです。
[[c:Delegator]] クラスは指定したオブジェクトにメソッドの実行を委譲します。
[[c:Delegator]] クラスを利用する場合はこれを継承して
[[m:Delegator#__getobj__]] メソッドを再定義して委譲先のオブジェクトを指定します。
[[c:SimpleDelegator]] は [[c:Delegator]] の利用例の一つであり、
コンストラクタに渡されたオブジェクトにメソッドの実行を委譲します。
[[m:Kernel#Delegate... |
library(ape)
### Name: yule.cov
### Title: Fits the Yule Model With Covariates
### Aliases: yule.cov
### Keywords: models
### ** Examples
### a simple example with some random data
data(bird.orders)
x <- rnorm(45) # the tree has 23 tips and 22 nodes
### the standard-error for x should be as large as
### the estimat... | /data/genthat_extracted_code/ape/examples/yule.cov.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 507 | r | library(ape)
### Name: yule.cov
### Title: Fits the Yule Model With Covariates
### Aliases: yule.cov
### Keywords: models
### ** Examples
### a simple example with some random data
data(bird.orders)
x <- rnorm(45) # the tree has 23 tips and 22 nodes
### the standard-error for x should be as large as
### the estimat... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/methods_s3_plot.R
\name{plot.FitInactivation}
\alias{plot.FitInactivation}
\title{Plot of FitInactivation Object}
\usage{
\method{plot}{FitInactivation}(x, y = NULL, ..., make_gg = TRUE,
plot_temp = FALSE, label_y1 = "logN", label_y2... | /man/plot.FitInactivation.Rd | no_license | cran/bioinactivation | R | false | true | 1,344 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/methods_s3_plot.R
\name{plot.FitInactivation}
\alias{plot.FitInactivation}
\title{Plot of FitInactivation Object}
\usage{
\method{plot}{FitInactivation}(x, y = NULL, ..., make_gg = TRUE,
plot_temp = FALSE, label_y1 = "logN", label_y2... |
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://www.rstudio.com/shiny/
#
library(shiny)
shinyUI(
pageWithSidebar(
# Application title
headerPanel("Developing Data Products: Shiny"),
... | /ui.R | no_license | oromia/DevDataProd | R | false | false | 1,470 | r |
# This is the user-interface definition of a Shiny web application.
# You can find out more about building applications with Shiny here:
#
# http://www.rstudio.com/shiny/
#
library(shiny)
shinyUI(
pageWithSidebar(
# Application title
headerPanel("Developing Data Products: Shiny"),
... |
\name{posts}
\alias{posts}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Retrieve Published Posts.
}
\description{
This function retrieves published posts.
}
\usage{
posts(base_hostname = NA, limit = 20, offset = 0, api_key = NA, type = NA,
id = NA, tag = NA, reblog_info = FALSE, notes_info = ... | /man/posts.Rd | no_license | cran/tumblR | R | false | false | 4,400 | rd | \name{posts}
\alias{posts}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{
Retrieve Published Posts.
}
\description{
This function retrieves published posts.
}
\usage{
posts(base_hostname = NA, limit = 20, offset = 0, api_key = NA, type = NA,
id = NA, tag = NA, reblog_info = FALSE, notes_info = ... |
R <- scan("corr.txt")
M <- matrix(0,11,11)
t=1
for( i in 1:11){
for (j in 1:i){
M [i,j] = R[t]
M [j,i] = R[t]
t <- t+1
}
}
eigenM <- eigen(M)
# the top few eigen values, eigen vectors
# corresponding to the proportion of variance explained and top principal component
##determine the n... | /timeseries/pca.R | no_license | songwang41/RPackages | R | false | false | 865 | r | R <- scan("corr.txt")
M <- matrix(0,11,11)
t=1
for( i in 1:11){
for (j in 1:i){
M [i,j] = R[t]
M [j,i] = R[t]
t <- t+1
}
}
eigenM <- eigen(M)
# the top few eigen values, eigen vectors
# corresponding to the proportion of variance explained and top principal component
##determine the n... |
library(tidyverse)
library(raster)
library(rgdal)
#Calculate AEZ Using methodology here: https://harvestchoice.org/maps/agro-ecological-zones-sub-saharan-africa
#Precip already calculate from CHIRPS
map <- raster('G://My Drive/DHS Spatial Covars/Final Rasters/2020/mean_annual_precip.tif')
#Elevation
elev <- raster('... | /extract/Create AEZs.R | no_license | mcooper/lc-malnutrition | R | false | false | 4,138 | r | library(tidyverse)
library(raster)
library(rgdal)
#Calculate AEZ Using methodology here: https://harvestchoice.org/maps/agro-ecological-zones-sub-saharan-africa
#Precip already calculate from CHIRPS
map <- raster('G://My Drive/DHS Spatial Covars/Final Rasters/2020/mean_annual_precip.tif')
#Elevation
elev <- raster('... |
# ***********************************************************************************************
# Title : シミュレーションデータの作成(boosting.R)
# Objective : TODO
# Created by: Owner
# Created on: 2021/03/20
# URL : https://github.com/fabsig/GPBoost/blob/master/R-package/demo/boosting.R
# *****************************... | /library/gpboost/demo/func/data_boosting.R | no_license | delta0726/r-hierarchical_model | R | false | false | 1,074 | r | # ***********************************************************************************************
# Title : シミュレーションデータの作成(boosting.R)
# Objective : TODO
# Created by: Owner
# Created on: 2021/03/20
# URL : https://github.com/fabsig/GPBoost/blob/master/R-package/demo/boosting.R
# *****************************... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/workout3_Zimeng_Zheng.R
\name{bin_variable}
\alias{bin_variable}
\title{Binomial Variable}
\usage{
bin_variable(trials, prob)
}
\arguments{
\item{trials}{the number of trials}
\item{prob}{the probability that success occurs}
}
\value{
a bino... | /binomial/binomial/man/bin_variable.Rd | no_license | stat133-sp19/hw-stat133-zzm1610133 | R | false | true | 470 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/workout3_Zimeng_Zheng.R
\name{bin_variable}
\alias{bin_variable}
\title{Binomial Variable}
\usage{
bin_variable(trials, prob)
}
\arguments{
\item{trials}{the number of trials}
\item{prob}{the probability that success occurs}
}
\value{
a bino... |
# estimation- test 3
# created 14/12/2016
# modified 14/12/2016
library(AER)
library(plm)
s1 = import("/Users/Personas/My Cloud/PhD _october_2016/market entry/care_homes/data/waves/two/test_prices_entries_instruments.csv")
s1 = s1 %>% mutate(entry_rate_nat = entry_rate/100)
# correlations - mechanisms
s3 ... | /R/wave2/estimation .R | no_license | edugonzaloalmorox/Care-homes | R | false | false | 5,010 | r | # estimation- test 3
# created 14/12/2016
# modified 14/12/2016
library(AER)
library(plm)
s1 = import("/Users/Personas/My Cloud/PhD _october_2016/market entry/care_homes/data/waves/two/test_prices_entries_instruments.csv")
s1 = s1 %>% mutate(entry_rate_nat = entry_rate/100)
# correlations - mechanisms
s3 ... |
load("C:/Users/anton/Documents/Carrera/Titanic/titanic.RData")
# VARIABLE DESCRIPTIONS:
# survival Survival
# (0 = No; 1 = Yes)
# pclass Passenger Class
# (1 = 1st; 2 = 2nd; 3 = 3rd)
# name Name
# sex Sex
# age Age
# sibsp Number of Siblings/Spouses Aboard
... | /titanic.R | no_license | manguart/Titanic | R | false | false | 15,331 | r | load("C:/Users/anton/Documents/Carrera/Titanic/titanic.RData")
# VARIABLE DESCRIPTIONS:
# survival Survival
# (0 = No; 1 = Yes)
# pclass Passenger Class
# (1 = 1st; 2 = 2nd; 3 = 3rd)
# name Name
# sex Sex
# age Age
# sibsp Number of Siblings/Spouses Aboard
... |
df = read.csv('fulltrainingdataset.csv', header = F, col.names= c('x1','x2','x3','x4','x5','x6','x7','y'), colClasses = c('numeric','numeric','numeric','numeric','numeric','numeric','numeric','numeric'))
model = lm(y ~ ., data = df)
a = as.data.frame(coef(model))
rownames(a) <- NULL
write.table(a, 'newweights.csv', qu... | /agents/Clabbers2/OldLearningPipeline/model.R | no_license | OhLookCake/Barbicels | R | false | false | 362 | r | df = read.csv('fulltrainingdataset.csv', header = F, col.names= c('x1','x2','x3','x4','x5','x6','x7','y'), colClasses = c('numeric','numeric','numeric','numeric','numeric','numeric','numeric','numeric'))
model = lm(y ~ ., data = df)
a = as.data.frame(coef(model))
rownames(a) <- NULL
write.table(a, 'newweights.csv', qu... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
makeCacheMatrix <- function(x = matrix()) {
inv<- NULL
set<- function(y)
{
x<<- y
inv<- NULL
}
get <- function() x
setInv... | /cachematrix.R | no_license | jeevitha743/ProgrammingAssignment2 | R | false | false | 902 | 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()) {
inv<- NULL
set<- function(y)
{
x<<- y
inv<- NULL
}
get <- function() x
setInv... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 999
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 999
c
c Input Parameter (command line, file):
c input filename QBFLIB/Letombe/Abduction/par8-1-c-90.qdimacs
c output filename /... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Letombe/Abduction/par8-1-c-90/par8-1-c-90.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 610 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 999
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 999
c
c Input Parameter (command line, file):
c input filename QBFLIB/Letombe/Abduction/par8-1-c-90.qdimacs
c output filename /... |
# ---- wordcount-plot ----
library("ggplot2")
library("reshape2")
library(scales)
#library(RcolorBrewer)
library(grid)
format_si <- function(...) {
# Format a vector of numeric values according
# to the International System of Units.
# http://en.wikipedia.org/wiki/SI_prefix
#
# Based on code by Ben Tupper
... | /wordcount.R | no_license | mrknmc/thesis | R | false | false | 2,573 | r | # ---- wordcount-plot ----
library("ggplot2")
library("reshape2")
library(scales)
#library(RcolorBrewer)
library(grid)
format_si <- function(...) {
# Format a vector of numeric values according
# to the International System of Units.
# http://en.wikipedia.org/wiki/SI_prefix
#
# Based on code by Ben Tupper
... |
try_save_file <- function(data, ..., fpath, name, append = F) {
postfix = utils::tail(stringr::str_to_lower(as.vector(stringr::str_split(
fpath, '\\.', simplify = T
))), 1)
switch (
postfix,
'csv' = {
utils::write.csv(data, fpath, ..., append = append)
},
'h5' = {
args = list(...)
... | /R/io-misc.R | no_license | libertyh/rave | R | false | false | 2,349 | r | try_save_file <- function(data, ..., fpath, name, append = F) {
postfix = utils::tail(stringr::str_to_lower(as.vector(stringr::str_split(
fpath, '\\.', simplify = T
))), 1)
switch (
postfix,
'csv' = {
utils::write.csv(data, fpath, ..., append = append)
},
'h5' = {
args = list(...)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/workflow_standard.R
\name{workflow_standard}
\alias{CreatePackageAssignmentEmail}
\alias{DownloadNewPackageTarballs}
\alias{DraftWeeklySummaryEmail}
\alias{ManageNewPackagesCredentials}
\alias{workflow_standard}
\title{Workflow steps}
\usage{... | /man/workflow_standard.Rd | no_license | Bioconductor/BiocContributions | R | false | true | 1,228 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/workflow_standard.R
\name{workflow_standard}
\alias{CreatePackageAssignmentEmail}
\alias{DownloadNewPackageTarballs}
\alias{DraftWeeklySummaryEmail}
\alias{ManageNewPackagesCredentials}
\alias{workflow_standard}
\title{Workflow steps}
\usage{... |
#' @title Download an OpenML Object.
#'
#' @description
#' Download all files that refer to data, task, flow or run and
#' returns the corresponding parsed XML.
#'
#' @param id [\code{integer(1)}]\cr
#' The ID of the OpenML Object.
#' @param object [\code{character(1)}]\cr
#' The data, task, flow or run th... | /R/downloadOMLObject.R | no_license | cran/OpenML | R | false | false | 6,044 | r | #' @title Download an OpenML Object.
#'
#' @description
#' Download all files that refer to data, task, flow or run and
#' returns the corresponding parsed XML.
#'
#' @param id [\code{integer(1)}]\cr
#' The ID of the OpenML Object.
#' @param object [\code{character(1)}]\cr
#' The data, task, flow or run th... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sclr.R
\name{new_sclr}
\alias{new_sclr}
\alias{is_sclr}
\title{Create a new \code{sclr} object}
\usage{
new_sclr(fit, x, y, cl, mf, mt)
is_sclr(fit)
}
\arguments{
\item{fit}{A list returned by \code{\link{sclr_fit}}.}
\item{x}{Model matrix.... | /man/new_sclr.Rd | no_license | cran/sclr | R | false | true | 588 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sclr.R
\name{new_sclr}
\alias{new_sclr}
\alias{is_sclr}
\title{Create a new \code{sclr} object}
\usage{
new_sclr(fit, x, y, cl, mf, mt)
is_sclr(fit)
}
\arguments{
\item{fit}{A list returned by \code{\link{sclr_fit}}.}
\item{x}{Model matrix.... |
itis.code.extract = function ( DS, value, tx=NULL ) {
# generic data accessor function
# the itis taxa db (tx) can optionally be sent from calling function to speed things up
# as this loading step is slow
out = NULL
value = tolower(value)
if (DS=="kingdom") {
k = it... | /taxonomy/src/_Rfunctions/itis.code.extract.r | no_license | AMCOOK/ecomod | R | false | false | 1,262 | r |
itis.code.extract = function ( DS, value, tx=NULL ) {
# generic data accessor function
# the itis taxa db (tx) can optionally be sent from calling function to speed things up
# as this loading step is slow
out = NULL
value = tolower(value)
if (DS=="kingdom") {
k = it... |
#EDDY COVARIANCE POST-PROCESSING USING REDDYPROC:
#Script modified to include extra quality checks and summary stats related to gaps
#Includes:
#1) What percentage of data are NA due to rainfall, instrument downtime, etc.
#2) Despiking according to plausibility thresholds (Brummer, pers.comm. 2019) - followed by summa... | /ecpostproc.R | no_license | Abrisaeon/EC | R | false | false | 14,094 | r | #EDDY COVARIANCE POST-PROCESSING USING REDDYPROC:
#Script modified to include extra quality checks and summary stats related to gaps
#Includes:
#1) What percentage of data are NA due to rainfall, instrument downtime, etc.
#2) Despiking according to plausibility thresholds (Brummer, pers.comm. 2019) - followed by summa... |
# Install all required packages for this example
required_packages <- c("devtools", "testthat")
installed_packages <- installed.packages()[,1]
to_install <- setdiff(required_packages, installed_packages)
if (length(to_install) > 0) {
print("Installing required packages")
install.packages(to_install,
repos = "http... | /unit-testing/install.R | no_license | mauricioz98/r-recipes | R | false | false | 403 | r | # Install all required packages for this example
required_packages <- c("devtools", "testthat")
installed_packages <- installed.packages()[,1]
to_install <- setdiff(required_packages, installed_packages)
if (length(to_install) > 0) {
print("Installing required packages")
install.packages(to_install,
repos = "http... |
##' The Main Window of Missing Data GUI.
##'
##' This function is to open the missing data GUI. The widgets shown
##' in the GUI include: a table of all variables in the dataset, a
##' checkbox group of categorical variables to condition on, a table
##' of variables which have missing values to coloy by, a radio of
##'... | /MissingDataGUI/R/WatchMissingValues.r | no_license | ingted/R-Examples | R | false | false | 55,397 | r | ##' The Main Window of Missing Data GUI.
##'
##' This function is to open the missing data GUI. The widgets shown
##' in the GUI include: a table of all variables in the dataset, a
##' checkbox group of categorical variables to condition on, a table
##' of variables which have missing values to coloy by, a radio of
##'... |
#' Optimized Classic Processing Shift-Detection based on EWMA (SD-EWMA).
#'
#' @description \code{OcpSdEwma} calculates the anomalies of a dataset using an
#' optimized version of classical processing based on the SD-EWMA algorithm.
#' It is an optimized implementation of the \code{\link{CpSdEwma}} algorithm
#' using e... | /R/ocp_sd_ewma.R | permissive | JacintoCC/otsad | R | false | false | 4,735 | r | #' Optimized Classic Processing Shift-Detection based on EWMA (SD-EWMA).
#'
#' @description \code{OcpSdEwma} calculates the anomalies of a dataset using an
#' optimized version of classical processing based on the SD-EWMA algorithm.
#' It is an optimized implementation of the \code{\link{CpSdEwma}} algorithm
#' using e... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/main.R
\docType{methods}
\name{[,pathlist-method}
\alias{[,pathlist-method}
\title{Filter Paths by Index}
\usage{
\S4method{[}{pathlist}(x, i)
}
\arguments{
\item{x}{object of class pathlist}
\item{i}{indices in the vector of paths}
}
\descr... | /man/sub-pathlist-method.Rd | no_license | hsonne/pathlist | R | false | true | 352 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/main.R
\docType{methods}
\name{[,pathlist-method}
\alias{[,pathlist-method}
\title{Filter Paths by Index}
\usage{
\S4method{[}{pathlist}(x, i)
}
\arguments{
\item{x}{object of class pathlist}
\item{i}{indices in the vector of paths}
}
\descr... |
testlist <- list(Rs = c(-1.9577272327571e+276, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), atmp = numeric(0), relh = c(7.64681398433536e-304, -4.... | /meteor/inst/testfiles/ET0_Makkink/AFL_ET0_Makkink/ET0_Makkink_valgrind_files/1615864185-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 607 | r | testlist <- list(Rs = c(-1.9577272327571e+276, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), atmp = numeric(0), relh = c(7.64681398433536e-304, -4.... |
testlist <- list(rates = c(-1.29287484775418e+164, NaN, 6.55651547276648e-07, -5.48612405857659e+303, NaN, NaN, -9.00181948337867e+241, 5.02982669403682e-10, 1.18495754800529e-303, -1.29211778498328e+294, NaN, 1.390671161567e-309, NaN, NaN, NaN, NaN, -1.99700494896339e+242, NaN, 7.2911220195564e-304, NaN, NaN, 6.24... | /grattan/inst/testfiles/IncomeTax/libFuzzer_IncomeTax/IncomeTax_valgrind_files/1610383178-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 1,557 | r | testlist <- list(rates = c(-1.29287484775418e+164, NaN, 6.55651547276648e-07, -5.48612405857659e+303, NaN, NaN, -9.00181948337867e+241, 5.02982669403682e-10, 1.18495754800529e-303, -1.29211778498328e+294, NaN, 1.390671161567e-309, NaN, NaN, NaN, NaN, -1.99700494896339e+242, NaN, 7.2911220195564e-304, NaN, NaN, 6.24... |
#' Label Text Wrapping
#'
#' This function wraps texts in the specified column by the number of character specified without
#' breaking words.
#'
#' @param x Vector of strings or string object
#' @param len Maximum length of string per line
#' @return Wrapped vector of strings or wrapped string object
#' @examples wra... | /R/wrap_labels.R | no_license | grice2/GPATOOLS | R | false | false | 824 | r | #' Label Text Wrapping
#'
#' This function wraps texts in the specified column by the number of character specified without
#' breaking words.
#'
#' @param x Vector of strings or string object
#' @param len Maximum length of string per line
#' @return Wrapped vector of strings or wrapped string object
#' @examples wra... |
library(Radviz)
### Name: do.radviz
### Title: Projects a Matrix or a Data Frame to a 2D space defined by
### Dimensional Anchors
### Aliases: do.radviz do.radviz.default
### ** Examples
# the first example generates a simple Radviz object
data(iris)
das <- c('Sepal.Length','Sepal.Width','Petal.Length','Petal.Wid... | /data/genthat_extracted_code/Radviz/examples/do.radviz.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 737 | r | library(Radviz)
### Name: do.radviz
### Title: Projects a Matrix or a Data Frame to a 2D space defined by
### Dimensional Anchors
### Aliases: do.radviz do.radviz.default
### ** Examples
# the first example generates a simple Radviz object
data(iris)
das <- c('Sepal.Length','Sepal.Width','Petal.Length','Petal.Wid... |
################################################################################
# Introduction to this script
################################################################################
# This script runs all the analysis for data shown in the paper. It requires
# the object "data" which is produced by the scrip... | /la_paper_script.R | no_license | ACLU-CA/LADA_report_2020 | R | false | false | 31,994 | r | ################################################################################
# Introduction to this script
################################################################################
# This script runs all the analysis for data shown in the paper. It requires
# the object "data" which is produced by the scrip... |
#Author: Mehdin Masinovic
####Info####
"
The data analysis of all short tandem repeat types in the thesis results into ~15GB of data.
For this reason, I am providing not the datasets that result from applying STRAH, but rather how STRAH was applied (with what arguments, what repeat types, etc.)
Here, I show how I ... | /Applying-STRAH/tetranucleotide_repeat_analysis.R | no_license | MehdinMasinovic/Human-Genome-STR-Screening | R | false | false | 3,241 | r | #Author: Mehdin Masinovic
####Info####
"
The data analysis of all short tandem repeat types in the thesis results into ~15GB of data.
For this reason, I am providing not the datasets that result from applying STRAH, but rather how STRAH was applied (with what arguments, what repeat types, etc.)
Here, I show how I ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ddcorClasses.R
\docType{class}
\name{dcPair-class}
\alias{dcPair-class}
\title{S4 class for pairwise differential correlation matrices and associated info.}
\description{
S4 class for pairwise differential correlation matrices and associated ... | /man/dcPair-class.Rd | no_license | andymckenzie/DGCA | R | false | true | 900 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ddcorClasses.R
\docType{class}
\name{dcPair-class}
\alias{dcPair-class}
\title{S4 class for pairwise differential correlation matrices and associated info.}
\description{
S4 class for pairwise differential correlation matrices and associated ... |
# Read the dataset
diabetes <- read.csv("C:/Users/USER/Downloads/Diabetes.csv")
table(diabetes$Class.variable)
round(prop.table(table(diabetes$Class.variable))*100,1)
#Create a function to normalize the data
norm <- function(x){
return((x-min(x))/(max(x)-min(x)))
}
#Apply the normalization function... | /module19,decision tree and random forest/assign2.R | no_license | Jyotsna1292/POC | R | false | false | 1,051 | r |
# Read the dataset
diabetes <- read.csv("C:/Users/USER/Downloads/Diabetes.csv")
table(diabetes$Class.variable)
round(prop.table(table(diabetes$Class.variable))*100,1)
#Create a function to normalize the data
norm <- function(x){
return((x-min(x))/(max(x)-min(x)))
}
#Apply the normalization function... |
eSetsToLongTable_fc <- function(data){
## Extract fold changes from expressionSets and store in long tables
## Initialize variables to prevent "no visible binding for global
## variable" NOTE by R CMD check:
label = concentration = temperature = gene = value = colName = colNameOrig =
labelValue = foldCh... | /R/eSetsToLongTable_fc.R | no_license | andreaschrader/TPP | R | false | false | 2,094 | r | eSetsToLongTable_fc <- function(data){
## Extract fold changes from expressionSets and store in long tables
## Initialize variables to prevent "no visible binding for global
## variable" NOTE by R CMD check:
label = concentration = temperature = gene = value = colName = colNameOrig =
labelValue = foldCh... |
library(tm)
library(SnowballC)
library(wordcloud)
library(wordcloud2)
library(RColorBrewer)
text <- readLines('H:/SaniPath/Workshop_Notes.txt')
docs <- Corpus(VectorSource(text))
inspect(docs)
toSpace <- content_transformer(function (x , pattern ) gsub(pattern, " ", x))
docs <- tm_map(docs, toSpace, "/")
docs <- tm_m... | /Programming/WordCloud_FSM5Workshop.R | no_license | csiesel/SaniPath | R | false | false | 1,923 | r | library(tm)
library(SnowballC)
library(wordcloud)
library(wordcloud2)
library(RColorBrewer)
text <- readLines('H:/SaniPath/Workshop_Notes.txt')
docs <- Corpus(VectorSource(text))
inspect(docs)
toSpace <- content_transformer(function (x , pattern ) gsub(pattern, " ", x))
docs <- tm_map(docs, toSpace, "/")
docs <- tm_m... |
## --------------------------------
## CourseraCourse: DataScience - 4.Exploratory Data Analysis Course Project
## --------------------------------
## Week 1 - Assignement 1 - Plot 1 of 4 -
## Student/Author: Benz Nydegger
## Date: 27-May-2018
## Source Data: https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhouseh... | /plot1.R | no_license | benznydegger/ExploratoryDataAnalysisAssignment1 | R | false | false | 1,231 | r | ## --------------------------------
## CourseraCourse: DataScience - 4.Exploratory Data Analysis Course Project
## --------------------------------
## Week 1 - Assignement 1 - Plot 1 of 4 -
## Student/Author: Benz Nydegger
## Date: 27-May-2018
## Source Data: https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhouseh... |
################################################################################
context("ASSOC_BGEN")
skip_if(is_cran)
# need to write bgen/bgi files because can't have binary files..
library(magrittr)
bgen_file <- tempfile(fileext = ".bgen")
system.file("testdata", "bgen_example.rds", package = "bigsnpr") %>%
re... | /tmp-save/test-4-assocBGEN.R | no_license | privefl/bigsnpr | R | false | false | 4,159 | r | ################################################################################
context("ASSOC_BGEN")
skip_if(is_cran)
# need to write bgen/bgi files because can't have binary files..
library(magrittr)
bgen_file <- tempfile(fileext = ".bgen")
system.file("testdata", "bgen_example.rds", package = "bigsnpr") %>%
re... |
n <- 300
n_vals <- c(seq(21,49,3),seq(50,140,10))
diss_measure <- "C_dice_weighted"
w.vals <- c(0.8)
starting.embed.dim <- 12
graph.is.weighted <- FALSE
symmetrize.graph <- TRUE
subset <- NULL
use.separability.error.terms <- TRUE
T1 <- 130
T2 <- 131
const.dim=TRUE | /src/JOFC-graph_enron_Params_6.R | no_license | adalisan/JOFC-GraphMatch | R | false | false | 268 | r |
n <- 300
n_vals <- c(seq(21,49,3),seq(50,140,10))
diss_measure <- "C_dice_weighted"
w.vals <- c(0.8)
starting.embed.dim <- 12
graph.is.weighted <- FALSE
symmetrize.graph <- TRUE
subset <- NULL
use.separability.error.terms <- TRUE
T1 <- 130
T2 <- 131
const.dim=TRUE |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/8.1-pipe.R
\name{pipeFilter}
\alias{pipeFilter}
\title{Filter \code{ExprsPipeline} Object}
\usage{
pipeFilter(object, colBy, how = 0, gate = 0, top = 0)
}
\arguments{
\item{object}{An \code{\link{ExprsPipeline-class}} object.}
\item{colBy}{A... | /man/pipeFilter.Rd | no_license | tpq/exprso | R | false | true | 2,197 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/8.1-pipe.R
\name{pipeFilter}
\alias{pipeFilter}
\title{Filter \code{ExprsPipeline} Object}
\usage{
pipeFilter(object, colBy, how = 0, gate = 0, top = 0)
}
\arguments{
\item{object}{An \code{\link{ExprsPipeline-class}} object.}
\item{colBy}{A... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prop-pct-var-case-miss-complete.R
\name{pct-miss-complete-case}
\alias{pct-miss-complete-case}
\alias{pct_miss_case}
\alias{pct_complete_case}
\title{Percentage of cases that contain a missing or complete values.}
\usage{
pct_miss_case(data)
... | /man/pct-miss-complete-case.Rd | no_license | romainfrancois/naniar | R | false | true | 1,273 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/prop-pct-var-case-miss-complete.R
\name{pct-miss-complete-case}
\alias{pct-miss-complete-case}
\alias{pct_miss_case}
\alias{pct_complete_case}
\title{Percentage of cases that contain a missing or complete values.}
\usage{
pct_miss_case(data)
... |
# Modeled after utils::recover(), which is
# part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2016 The R Core Team
#
# 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; ... | /R/recover.R | permissive | ianmcook/testthat | R | false | false | 1,495 | r | # Modeled after utils::recover(), which is
# part of the R package, https://www.R-project.org
#
# Copyright (C) 1995-2016 The R Core Team
#
# 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; ... |
cli <- readRDS("Res/20170324_Fluororacil_TCGA/cli.drug.RDS")
cap <- unique(grep("cape|Xeloda", cli$all6cancer$drug_name, ignore.case = TRUE, value = TRUE))
capecitabine <- cli$all6cancer[cli$all6cancer$drug_name %in% cap,]
fu5 <- cli$fu5
fu5$drug <- "5FU"
capecitabine$drug <- "capecitabine"
doi <- rbind(fu5, capecita... | /5FU/download.TCGA.mRNA.R | permissive | bwbai/ATLANTiC | R | false | false | 1,142 | r | cli <- readRDS("Res/20170324_Fluororacil_TCGA/cli.drug.RDS")
cap <- unique(grep("cape|Xeloda", cli$all6cancer$drug_name, ignore.case = TRUE, value = TRUE))
capecitabine <- cli$all6cancer[cli$all6cancer$drug_name %in% cap,]
fu5 <- cli$fu5
fu5$drug <- "5FU"
capecitabine$drug <- "capecitabine"
doi <- rbind(fu5, capecita... |
library(plotrix)
### get parameters
args = commandArgs(trailingOnly=TRUE)
index_set_inputfile = args[1]
index_set_outfile = args[2]
index_set_outfile_nolim = args[3]
### read index set matrix
read_matrix = function(inputfile){
data_index_set = as.matrix(read.table(inputfile, header=T))
rownames(data_index_set) = dat... | /bin/figures/plot_index_set_region_hist.R | no_license | guanjue/vision_project | R | false | false | 1,240 | r | library(plotrix)
### get parameters
args = commandArgs(trailingOnly=TRUE)
index_set_inputfile = args[1]
index_set_outfile = args[2]
index_set_outfile_nolim = args[3]
### read index set matrix
read_matrix = function(inputfile){
data_index_set = as.matrix(read.table(inputfile, header=T))
rownames(data_index_set) = dat... |
#
# _ _ _ _ _
# (_) | | | | | | | |
# _ __ ___ _ _ __ | |_ | |__ | | __ _ _ __ | | __
# | '_ \ / _ \ | || '_ \ | __|| '_ \ | | / _` || '_ \ | |/ /
# | |_) || (_) || || | | || |_ | |_) || || (_| || | | || <
# | .__/... | /R/col_vals_gt.R | permissive | dwtcourses/pointblank | R | false | false | 17,856 | r | #
# _ _ _ _ _
# (_) | | | | | | | |
# _ __ ___ _ _ __ | |_ | |__ | | __ _ _ __ | | __
# | '_ \ / _ \ | || '_ \ | __|| '_ \ | | / _` || '_ \ | |/ /
# | |_) || (_) || || | | || |_ | |_) || || (_| || | | || <
# | .__/... |
# Short manual for creating you own package.
# Prepare development environment -----------------------------------------
# 1) Install required/recommended packages
"
devtools (automate common development tasks)
roxygen2 (generate documentation)
testthat (automated tests)
knitr (report generation for Vignettes)
"
in... | /notes/11-packages-dev.R | no_license | alhoqbani/r-practice | R | false | false | 2,500 | r | # Short manual for creating you own package.
# Prepare development environment -----------------------------------------
# 1) Install required/recommended packages
"
devtools (automate common development tasks)
roxygen2 (generate documentation)
testthat (automated tests)
knitr (report generation for Vignettes)
"
in... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geom_abline_interactive.R,
% R/geom_hline_interactive.R, R/geom_vline_interactive.R
\name{geom_abline_interactive}
\alias{geom_abline_interactive}
\alias{geom_hline_interactive}
\alias{geom_vline_interactive}
\title{Create interactive refer... | /man/geom_abline_interactive.Rd | no_license | davidgohel/ggiraph | R | false | true | 3,816 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geom_abline_interactive.R,
% R/geom_hline_interactive.R, R/geom_vline_interactive.R
\name{geom_abline_interactive}
\alias{geom_abline_interactive}
\alias{geom_hline_interactive}
\alias{geom_vline_interactive}
\title{Create interactive refer... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.