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 |
|---|---|---|---|---|---|---|---|---|---|
library(openxlsx)
library(pivottabler)
wb <- createWorkbook(creator = Sys.getenv("USERNAME"))
# 1: special case
pt <- PivotTable$new()
pt$addData(bhmtrains)
pt$renderPivot()
addWorksheet(wb, "Sc1")
openxlsx::writeData(wb, sheet="Sc1", x="Sc1 Empty", colNames=FALSE, rowNames=FALSE, startCol=1, startRow=1)
pt$writeToE... | /dev/excel-export/ExcelManualRegressionTest.R | no_license | cbailiss/pivottabler | R | false | false | 7,829 | r | library(openxlsx)
library(pivottabler)
wb <- createWorkbook(creator = Sys.getenv("USERNAME"))
# 1: special case
pt <- PivotTable$new()
pt$addData(bhmtrains)
pt$renderPivot()
addWorksheet(wb, "Sc1")
openxlsx::writeData(wb, sheet="Sc1", x="Sc1 Empty", colNames=FALSE, rowNames=FALSE, startCol=1, startRow=1)
pt$writeToE... |
#' DEST UFPR Themed Project Template for Rmarkdown
#'
#' Generates from an RMarkdown file a PDF document.
#' @inheritParams rmarkdown::pdf_document
#' @return A PDF document.
#' @author Fernando Mayer
#' @examples
#' \dontrun{
#' # Generate slide deck from beamer template
#' rmarkdown::draft("proj.Rmd", template = "pro... | /R/projeto_templates.R | permissive | fernandomayer/tcctemplate | R | false | false | 3,020 | r | #' DEST UFPR Themed Project Template for Rmarkdown
#'
#' Generates from an RMarkdown file a PDF document.
#' @inheritParams rmarkdown::pdf_document
#' @return A PDF document.
#' @author Fernando Mayer
#' @examples
#' \dontrun{
#' # Generate slide deck from beamer template
#' rmarkdown::draft("proj.Rmd", template = "pro... |
library( "ape" )
library( "geiger" )
library( "expm" )
library( "nloptr" )
source( "masternegloglikeeps1.R" )
source( "Qmatrixwoodherb2.R" )
source("Pruning2.R")
sim.tree<-read.tree("tree2500taxa91.txt")
sim.chrom<-read.table("chrom2500taxa91.txt", header=FALSE)
last.state=50
x.0<- log(c(0.12, 0.001, 0.25, 0.002,0.0... | /SImulations number of taxa/2500 taxa/optim2500taxa91.R | no_license | roszenil/Bichromdryad | R | false | false | 827 | r | library( "ape" )
library( "geiger" )
library( "expm" )
library( "nloptr" )
source( "masternegloglikeeps1.R" )
source( "Qmatrixwoodherb2.R" )
source("Pruning2.R")
sim.tree<-read.tree("tree2500taxa91.txt")
sim.chrom<-read.table("chrom2500taxa91.txt", header=FALSE)
last.state=50
x.0<- log(c(0.12, 0.001, 0.25, 0.002,0.0... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/transforms_text.R
\name{numerize}
\alias{numerize}
\title{Combine several numbers together into a string}
\usage{
numerize(..., sep = "")
}
\arguments{
\item{...}{expressions containing numerical values to concatenate}
\item{sep}{An optional... | /man/numerize.Rd | no_license | qPharmetra/PMDatR | R | false | true | 961 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/transforms_text.R
\name{numerize}
\alias{numerize}
\title{Combine several numbers together into a string}
\usage{
numerize(..., sep = "")
}
\arguments{
\item{...}{expressions containing numerical values to concatenate}
\item{sep}{An optional... |
testlist <- list(doy = c(4.62595082430429e-312, 3.64097969159734e-277, -0.427429395729092, 2.09887675795476e-104, 1.55322770574539e-47, 1.45474215376015e+135, 3.56441595774554e+114, -2.65061195968734e+303, -9.52682579807939e+139, -3.98397314603138e+183, -1.77863325536183e+126, 6.42851301544252e-310, 1.6601383076532... | /meteor/inst/testfiles/Photoperiod/AFL_Photoperiod/Photoperiod_valgrind_files/1615769043-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 683 | r | testlist <- list(doy = c(4.62595082430429e-312, 3.64097969159734e-277, -0.427429395729092, 2.09887675795476e-104, 1.55322770574539e-47, 1.45474215376015e+135, 3.56441595774554e+114, -2.65061195968734e+303, -9.52682579807939e+139, -3.98397314603138e+183, -1.77863325536183e+126, 6.42851301544252e-310, 1.6601383076532... |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
% AvgCnPlm.R
%
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\name{AvgCnPlm}
\docType{class}... | /man/AvgCnPlm.Rd | no_license | HenrikBengtsson/aroma.affymetrix | R | false | false | 3,685 | rd | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Do not modify this file since it was automatically generated from:
%
% AvgCnPlm.R
%
% by the Rdoc compiler part of the R.oo package.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\name{AvgCnPlm}
\docType{class}... |
#' @title Load Coastline Data
#' @description Low res to high res: coastlineWorld, coastlineWorldCoarse, coastlinewWorldMedium, coastlineWorldFine
#' @author Laura Whitmore
#' @author Thomas Bryce Kelly
#' @param cost a string referring to a coastline data object such as those provided by the OCE package.
#' @import oc... | /R/map.misc.R | no_license | tbrycekelly/TheSource | R | false | false | 9,137 | r | #' @title Load Coastline Data
#' @description Low res to high res: coastlineWorld, coastlineWorldCoarse, coastlinewWorldMedium, coastlineWorldFine
#' @author Laura Whitmore
#' @author Thomas Bryce Kelly
#' @param cost a string referring to a coastline data object such as those provided by the OCE package.
#' @import oc... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/raincloud_2x2_repmes.R
\name{raincloud_2x2_repmes}
\alias{raincloud_2x2_repmes}
\title{2 x 2 repeated measures raincloud}
\arguments{
\item{data_2x2}{<data.frame> the array of datapoints to be plotted}
\item{colors}{<string> concatenated str... | /man/raincloud_2x2_repmes.Rd | permissive | GuangtengMeng/raincloudplots | R | false | true | 1,308 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/raincloud_2x2_repmes.R
\name{raincloud_2x2_repmes}
\alias{raincloud_2x2_repmes}
\title{2 x 2 repeated measures raincloud}
\arguments{
\item{data_2x2}{<data.frame> the array of datapoints to be plotted}
\item{colors}{<string> concatenated str... |
#######################################################################################################################
# It gives us the orders p, q, P and Q of the best ARIMA (p, d, q)x(P, D, Q)_s according to one of the following criteria: AIC, AICC, BIC.
# It works with ARIMAs with constant term and d+D!=0, bes... | /PLRModels/R/best.arima.R | no_license | ingted/R-Examples | R | false | false | 4,966 | r |
#######################################################################################################################
# It gives us the orders p, q, P and Q of the best ARIMA (p, d, q)x(P, D, Q)_s according to one of the following criteria: AIC, AICC, BIC.
# It works with ARIMAs with constant term and d+D!=0, bes... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ExportMethods.R
\docType{methods}
\name{exportToBed}
\alias{exportToBed}
\alias{exportToBed,CAGEr-method}
\title{Create BED tracks of TSSs and clusters of TSSs}
\usage{
exportToBed(object, what = c("CTSS", "tagClusters", "consensusClusters"),... | /man/exportToBed.Rd | no_license | clarapereira/CAGEr | R | false | true | 5,533 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ExportMethods.R
\docType{methods}
\name{exportToBed}
\alias{exportToBed}
\alias{exportToBed,CAGEr-method}
\title{Create BED tracks of TSSs and clusters of TSSs}
\usage{
exportToBed(object, what = c("CTSS", "tagClusters", "consensusClusters"),... |
# model validation based on all exploratories
library(Metrics)
library(reshape2)
library(ggplot2)
source("/home/marvin/repositories/envimaR/R/getEnvi.R")
p <- getEnvi("/home/marvin/be_hyperspectral/data/")
res <- readRDS(paste0(p$results$here, "trait_prediction.RDS"))
# include which exploratory it is
res$EP <- su... | /src/calculate_rmse.R | permissive | yangxhcaf/BE-HyperSpecPrediction | R | false | false | 1,006 | r | # model validation based on all exploratories
library(Metrics)
library(reshape2)
library(ggplot2)
source("/home/marvin/repositories/envimaR/R/getEnvi.R")
p <- getEnvi("/home/marvin/be_hyperspectral/data/")
res <- readRDS(paste0(p$results$here, "trait_prediction.RDS"))
# include which exploratory it is
res$EP <- su... |
getwd()
rm(list=ls())
if (!file.exists("data")){
dir.create("data")
}
#I downladed the zipfile to a folder called zipdir under the working directory folder, and
#extracted it into a folder called data. Then read the full file and subset the observations indicated.
unzip("zipdir/exdata-data-household_power_consumpti... | /plot2.R | no_license | albertollamas/ExData_Plotting1 | R | false | false | 1,717 | r | getwd()
rm(list=ls())
if (!file.exists("data")){
dir.create("data")
}
#I downladed the zipfile to a folder called zipdir under the working directory folder, and
#extracted it into a folder called data. Then read the full file and subset the observations indicated.
unzip("zipdir/exdata-data-household_power_consumpti... |
context('Schulze method tests')
#Check function basics
test_that("Schulze basics are correct", {
votes <- c(
replist("Orange", 4),
replist(c("Pear", "Orange"), 2),
replist(c("Choc", "Strawberry"), 8),
replist(c("Choc", "Candy"), 4),
replist("Strawberr... | /tests/testthat/test_schulze.R | permissive | j450h1/avr | R | false | false | 2,016 | r | context('Schulze method tests')
#Check function basics
test_that("Schulze basics are correct", {
votes <- c(
replist("Orange", 4),
replist(c("Pear", "Orange"), 2),
replist(c("Choc", "Strawberry"), 8),
replist(c("Choc", "Candy"), 4),
replist("Strawberr... |
library("nbaR")
library("testthat")
wd <- getwd()
if (grepl("testthat", wd)) {
data_dir <- file.path("data")
} else {
## for running test at package level
data_dir <- file.path("tests", "testthat", "data")
}
tc <- TaxonClient$new(basePath = "http://api.biodiversitydata.nl/v2")
test_that("Class hierarchy correc... | /tests/testthat/test-taxonClient.R | no_license | mbjoseph/nbaR | R | false | false | 389 | r | library("nbaR")
library("testthat")
wd <- getwd()
if (grepl("testthat", wd)) {
data_dir <- file.path("data")
} else {
## for running test at package level
data_dir <- file.path("tests", "testthat", "data")
}
tc <- TaxonClient$new(basePath = "http://api.biodiversitydata.nl/v2")
test_that("Class hierarchy correc... |
#:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "soybean")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "class")
lrn... | /models/openml_soybean/classification_class/efaf17cd6974bb344011d72e65d5e257/code.R | no_license | lukaszbrzozowski/CaseStudies2019S | R | false | false | 698 | r | #:# libraries
library(digest)
library(mlr)
library(OpenML)
library(farff)
#:# config
set.seed(1)
#:# data
dataset <- getOMLDataSet(data.name = "soybean")
head(dataset$data)
#:# preprocessing
head(dataset$data)
#:# model
task = makeClassifTask(id = "task", data = dataset$data, target = "class")
lrn... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read.R
\name{ReadNrmAverages}
\alias{ReadNrmAverages}
\title{Read the average data from the nrm file. note that in some cases a large number of empty columns are generated; only extract the first three.}
\usage{
ReadNrmAverages(nrm_file)
}
\d... | /man/ReadNrmAverages.Rd | no_license | imarigenias/motionTools | R | false | true | 476 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/read.R
\name{ReadNrmAverages}
\alias{ReadNrmAverages}
\title{Read the average data from the nrm file. note that in some cases a large number of empty columns are generated; only extract the first three.}
\usage{
ReadNrmAverages(nrm_file)
}
\d... |
#Boston Pricing case study
setwd("D:\\")
##Loading Data
prices<-read.csv("boston_prices.csv",header=TRUE,stringsAsFactors=FALSE)
##Checking Data Characteristics
dim(prices)
str(prices)
head(prices)
names(prices)
#summary statistics
summary(prices)
#Missing values treatment
colSums(is.na(prices)) #MEDV has a lot o... | /Solution Linear Regression (1).R | no_license | sanchita21/Linear-Regression-with-R-Assignment | R | false | false | 5,836 | r |
#Boston Pricing case study
setwd("D:\\")
##Loading Data
prices<-read.csv("boston_prices.csv",header=TRUE,stringsAsFactors=FALSE)
##Checking Data Characteristics
dim(prices)
str(prices)
head(prices)
names(prices)
#summary statistics
summary(prices)
#Missing values treatment
colSums(is.na(prices)) #MEDV has a lot o... |
#' Make request to Zillow API GetChart Web Service
#'
#' The GetChart API generates a URL for an image file that displays historical
#' Zestimates for a specific property. The API accepts as input the Zillow
#' Property ID as well as a chart type: either percentage or dollar value
#' change. Optionally, the API accept... | /R/GetChart.R | no_license | jacobkap/ZillowR | R | false | false | 3,620 | r |
#' Make request to Zillow API GetChart Web Service
#'
#' The GetChart API generates a URL for an image file that displays historical
#' Zestimates for a specific property. The API accepts as input the Zillow
#' Property ID as well as a chart type: either percentage or dollar value
#' change. Optionally, the API accept... |
library("data.table")
setwd("C:/Users/alber/OneDrive/Documentos/Proyectos RStudio/exploratorydata/Proyecto2")
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"))
NEI[, Emissions := lapply(.SD, as.numer... | /Proyecto2/Plot2.R | no_license | albertovelsan/exploratorydata | R | false | false | 690 | r | library("data.table")
setwd("C:/Users/alber/OneDrive/Documentos/Proyectos RStudio/exploratorydata/Proyecto2")
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"))
NEI[, Emissions := lapply(.SD, as.numer... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dkfLLMvard.R
\name{dfkLLMvard}
\alias{dfkLLMvard}
\title{Runs the Diffuse Kalman Filter (DFK).}
\usage{
dfkLLMvard(x, y)
}
\arguments{
\item{x}{A vector with values of hyperparameters}
\item{y}{A vector with the values of the time series}
}
... | /man/dfkLLMvard.Rd | no_license | uk-gov-mirror/datasciencecampus.trendyr | R | false | true | 549 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/dkfLLMvard.R
\name{dfkLLMvard}
\alias{dfkLLMvard}
\title{Runs the Diffuse Kalman Filter (DFK).}
\usage{
dfkLLMvard(x, y)
}
\arguments{
\item{x}{A vector with values of hyperparameters}
\item{y}{A vector with the values of the time series}
}
... |
testlist <- list(Beta = 0, CVLinf = -3.78576841580673e-270, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.9794... | /DLMtool/inst/testfiles/LBSPRgen/AFL_LBSPRgen/LBSPRgen_valgrind_files/1615829296-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 487 | r | testlist <- list(Beta = 0, CVLinf = -3.78576841580673e-270, FM = 3.81959242373749e-313, L50 = 0, L95 = 0, LenBins = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), SL50 = 9.9794... |
#' QR Decomposition by Graham-Schmidt Orthonormalization
#'
#' \code{QR} computes the QR decomposition of a matrix, \eqn{X}, that is an orthonormal matrix, \eqn{Q} and an upper triangular
#' matrix, \eqn{R}, such that \eqn{X = Q R}.
#'
#' The QR decomposition plays an important role in many statistical techniques.
#' I... | /R/QR.R | no_license | friendly/matlib | R | false | false | 2,098 | r | #' QR Decomposition by Graham-Schmidt Orthonormalization
#'
#' \code{QR} computes the QR decomposition of a matrix, \eqn{X}, that is an orthonormal matrix, \eqn{Q} and an upper triangular
#' matrix, \eqn{R}, such that \eqn{X = Q R}.
#'
#' The QR decomposition plays an important role in many statistical techniques.
#' I... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/calpuff_06_complex_terrain_inputs.R
\name{calpuff_06_complex_terrain_inputs}
\alias{calpuff_06_complex_terrain_inputs}
\title{Set the CALPUFF subgrid scale complex terrain inputs}
\usage{
calpuff_06_complex_terrain_inputs(calpuff_inp ... | /man/calpuff_06_complex_terrain_inputs.Rd | permissive | yosukefk/PuffR | R | false | false | 1,295 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/calpuff_06_complex_terrain_inputs.R
\name{calpuff_06_complex_terrain_inputs}
\alias{calpuff_06_complex_terrain_inputs}
\title{Set the CALPUFF subgrid scale complex terrain inputs}
\usage{
calpuff_06_complex_terrain_inputs(calpuff_inp ... |
library(shiny)
shinyUI(fluidPage(
titlePanel("numericInput"),
sidebarLayout(
sidebarPanel(
numericInput("numericInputData",
"irisデータでヒストグラムを表示する列番号",
min = 1,
max = 4,
value = 1),
sliderInput("sliderInputData",
... | /ui.R | no_license | chan-ume/shiny-example | R | false | false | 536 | r | library(shiny)
shinyUI(fluidPage(
titlePanel("numericInput"),
sidebarLayout(
sidebarPanel(
numericInput("numericInputData",
"irisデータでヒストグラムを表示する列番号",
min = 1,
max = 4,
value = 1),
sliderInput("sliderInputData",
... |
# psychonetrics sample:
generate_psychonetrics_samplestats <- setClass("psychonetrics_samplestats", slots = c(
covs = "list",
cors = "list",
means = "list",
thresholds = "list",
squares = "list",
groups = "data.frame", # Data frame with information on each group
variables = "data.frame",
nob... | /psychonetrics/R/01_classes.R | no_license | akhikolla/TestedPackages-NoIssues | R | false | false | 4,518 | r | # psychonetrics sample:
generate_psychonetrics_samplestats <- setClass("psychonetrics_samplestats", slots = c(
covs = "list",
cors = "list",
means = "list",
thresholds = "list",
squares = "list",
groups = "data.frame", # Data frame with information on each group
variables = "data.frame",
nob... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/retractcheck.R
\name{retractcheck_html}
\alias{retractcheck_html}
\title{Check html file for retractions}
\usage{
retractcheck_html(path, ...)
}
\arguments{
\item{path}{Path to html file to check}
\item{...}{Arguments passed on to \code{retr... | /man/retractcheck_html.Rd | permissive | libscie/retractcheck | R | false | true | 1,076 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/retractcheck.R
\name{retractcheck_html}
\alias{retractcheck_html}
\title{Check html file for retractions}
\usage{
retractcheck_html(path, ...)
}
\arguments{
\item{path}{Path to html file to check}
\item{...}{Arguments passed on to \code{retr... |
library(causalweight)
### Name: medweightcont
### Title: Causal mediation analysis with a continuous treatment based on
### weighting by the inverse of generalized propensity scores
### Aliases: medweightcont
### ** Examples
# A little example with simulated data (10000 observations)
n=10000
x=runif(n=n,min=-1,ma... | /data/genthat_extracted_code/causalweight/examples/medweightcont.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 650 | r | library(causalweight)
### Name: medweightcont
### Title: Causal mediation analysis with a continuous treatment based on
### weighting by the inverse of generalized propensity scores
### Aliases: medweightcont
### ** Examples
# A little example with simulated data (10000 observations)
n=10000
x=runif(n=n,min=-1,ma... |
\name{miNEXT2-package}
\alias{miNEXT2-package}
\alias{miNEXT2}
\docType{package}
\title{\packageTitle{miNEXT2}}
\description{\packageDescription{miNEXT2}}
\details{
The DESCRIPTION file: \packageDESCRIPTION{miNEXT2}
\packageIndices{miNEXT2}
This section should provide a more detailed overview of how to use the
... | /man/miNEXT2-package.Rd | no_license | HsiaotungHuang/miNEXT2 | R | false | false | 869 | rd | \name{miNEXT2-package}
\alias{miNEXT2-package}
\alias{miNEXT2}
\docType{package}
\title{\packageTitle{miNEXT2}}
\description{\packageDescription{miNEXT2}}
\details{
The DESCRIPTION file: \packageDESCRIPTION{miNEXT2}
\packageIndices{miNEXT2}
This section should provide a more detailed overview of how to use the
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add_quantiles.R
\name{add_quantiles}
\alias{add_quantiles}
\alias{add_quantiles.ggsurvfit}
\title{Add quantile indicators to visR plot}
\usage{
add_quantiles(gg, ...)
\method{add_quantiles}{ggsurvfit}(
gg,
quantiles = 0.5,
linetype = "... | /man/add_quantiles.Rd | permissive | bailliem/pharmavisR | R | false | true | 1,866 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/add_quantiles.R
\name{add_quantiles}
\alias{add_quantiles}
\alias{add_quantiles.ggsurvfit}
\title{Add quantile indicators to visR plot}
\usage{
add_quantiles(gg, ...)
\method{add_quantiles}{ggsurvfit}(
gg,
quantiles = 0.5,
linetype = "... |
library(shiny)
# Define UI ----
ui <- fluidPage(
titlePanel("censusVis"),
sidebarLayout(
sidebarPanel(
helpText("Create demographhic maps with information from the 2010 US Census."),
selectInput("var", label = "Choose a variable to display",
choices = c("Percent White", "Percent ... | /shiny/App-4/app.R | no_license | rguitar96/big-data-2019 | R | false | false | 957 | r | library(shiny)
# Define UI ----
ui <- fluidPage(
titlePanel("censusVis"),
sidebarLayout(
sidebarPanel(
helpText("Create demographhic maps with information from the 2010 US Census."),
selectInput("var", label = "Choose a variable to display",
choices = c("Percent White", "Percent ... |
gather_daily_MG <- function(){
x <- gather_data()
#Find industry returns by finding the mean of the returns of all the stocks in each industry
x<-x %>% group_by(m.ind, date()) %>%
mutate(ind_ret = mean(ret.6.0.m), na.rm=TRUE) %>%
#Get rid of NAs values
... | /R/gather_daily_MG.R | no_license | randomgambit/ReplicationProject | R | false | false | 947 | r | gather_daily_MG <- function(){
x <- gather_data()
#Find industry returns by finding the mean of the returns of all the stocks in each industry
x<-x %>% group_by(m.ind, date()) %>%
mutate(ind_ret = mean(ret.6.0.m), na.rm=TRUE) %>%
#Get rid of NAs values
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hc-charts.R, R/shortcuts.R
\name{hcdensity}
\alias{hc_add_series_density}
\alias{hcdensity}
\title{Shorcut to create a density plot}
\usage{
hcdensity(x, area = FALSE, ...)
hc_add_series_density(hc, x, area = FALSE, ...)
}
\argume... | /man/hc_add_series_density.Rd | no_license | SpencerVaradi/highcharter | R | false | true | 774 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hc-charts.R, R/shortcuts.R
\name{hcdensity}
\alias{hc_add_series_density}
\alias{hcdensity}
\title{Shorcut to create a density plot}
\usage{
hcdensity(x, area = FALSE, ...)
hc_add_series_density(hc, x, area = FALSE, ...)
}
\argume... |
######################################################
#### Reed Frost Model Inference ######################
rf_fit <- function(n0, n1, n2, niters, inits, priors) {
q <- numeric(niters)
q[1] <- inits$q
n21 <- numeric(niters)
n21[1] <- inits$n21
for(i in 1:niters) {
q[i + 1] <- rbeta(n = 1,
... | /05-Epidemic-Models/R Code/Reed_Frost_inference.R | no_license | chicas-spatstat-reading-group/events | R | false | false | 2,073 | r | ######################################################
#### Reed Frost Model Inference ######################
rf_fit <- function(n0, n1, n2, niters, inits, priors) {
q <- numeric(niters)
q[1] <- inits$q
n21 <- numeric(niters)
n21[1] <- inits$n21
for(i in 1:niters) {
q[i + 1] <- rbeta(n = 1,
... |
best <- function(state, outcome) {
data <- read.csv("C:/users/cclerc/my documents/github/datasciencecoursera/outcome-of-care-measures.csv", colClasses = "character")
statelist <- data[,7]
if (state %in% statelist & outcome == "heart attack") {
newdata <- subset(data, dat... | /best.R | no_license | clercc/datasciencecoursera | R | false | false | 1,136 | r | best <- function(state, outcome) {
data <- read.csv("C:/users/cclerc/my documents/github/datasciencecoursera/outcome-of-care-measures.csv", colClasses = "character")
statelist <- data[,7]
if (state %in% statelist & outcome == "heart attack") {
newdata <- subset(data, dat... |
##to run the script use Rscript px_to_csv.R [inputFile] [outputFile]
library(pxR)
args <- commandArgs(trailingOnly = TRUE)
print(args[1])
print(args[2])
my.px.object <- read.px(args[1], encoding='iso88591', na.strings = c('"."','".."','"..."','"...."','"......"','":"'))
my.px.data <- as.data.frame(my.px.object)
wri... | /px_to_csv.R | no_license | christophebertrand/votation-visualisation | R | false | false | 355 | r | ##to run the script use Rscript px_to_csv.R [inputFile] [outputFile]
library(pxR)
args <- commandArgs(trailingOnly = TRUE)
print(args[1])
print(args[2])
my.px.object <- read.px(args[1], encoding='iso88591', na.strings = c('"."','".."','"..."','"...."','"......"','":"'))
my.px.data <- as.data.frame(my.px.object)
wri... |
#> options(digits=20);
#> set.seed(12345);
#> RNGkind()
#[1] "Mersenne-Twister" "Inversion" "Rejection"
#> y=rgamma(100,1,1/3);
#> data.frame(y)
# y
1 2.99922719042681640
2 3.38251121850781367
3 1.27709306589877802
4 1.54945455427967937
5 10.43916639837829585
6 0.940... | /src/lib/distributions/gamma/__test__/fixture-generation/rgamma1.R | permissive | R-js/libRmath.js | R | false | false | 2,684 | r | #> options(digits=20);
#> set.seed(12345);
#> RNGkind()
#[1] "Mersenne-Twister" "Inversion" "Rejection"
#> y=rgamma(100,1,1/3);
#> data.frame(y)
# y
1 2.99922719042681640
2 3.38251121850781367
3 1.27709306589877802
4 1.54945455427967937
5 10.43916639837829585
6 0.940... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ISODistance.R
\docType{class}
\name{ISODistance}
\alias{ISODistance}
\title{ISODistance}
\format{\code{\link{R6Class}} object.}
\usage{
ISODistance
}
\value{
Object of \code{\link{R6Class}} for modelling an ISO Distance measure
}
\description... | /man/ISODistance.Rd | no_license | 65MO/geometa | R | false | true | 924 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ISODistance.R
\docType{class}
\name{ISODistance}
\alias{ISODistance}
\title{ISODistance}
\format{\code{\link{R6Class}} object.}
\usage{
ISODistance
}
\value{
Object of \code{\link{R6Class}} for modelling an ISO Distance measure
}
\description... |
/전역강.step06_function/전역강.D_func4.r | no_license | SangAu124/R_language | R | false | false | 344 | r | ||
\name{ENMeval-package}
\alias{ENMeval-package}
\alias{ENMeval}
\docType{package}
\title{ Automated runs and evaluations of ecological niche models }
\description{Automatically partitions data into bins for model training and testing, executes ecological niche models (ENMs) across a range of user-defined settings, and c... | /man/ENMeval-package.Rd | no_license | fdzul/ENMeval | R | false | false | 5,302 | rd | \name{ENMeval-package}
\alias{ENMeval-package}
\alias{ENMeval}
\docType{package}
\title{ Automated runs and evaluations of ecological niche models }
\description{Automatically partitions data into bins for model training and testing, executes ecological niche models (ENMs) across a range of user-defined settings, and c... |
library(reshape2)
f <- "dataset.zip"
## Get the dataset using the url for dataset in a zip format. Unzip to create the input data folder
if (!file.exists(f)){
url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip "
download.file(url, f, method="curl")
}
if (!file.exists(... | /CleaningDatasetProgrammingAssignment/run_analysi.r | no_license | anjaney/datasciencecoursera | R | false | false | 2,540 | r | library(reshape2)
f <- "dataset.zip"
## Get the dataset using the url for dataset in a zip format. Unzip to create the input data folder
if (!file.exists(f)){
url <- "https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip "
download.file(url, f, method="curl")
}
if (!file.exists(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generics.R
\name{sphericalplot}
\alias{sphericalplot}
\title{Spherical plot of reconstructed outline}
\usage{
sphericalplot(r, ...)
}
\arguments{
\item{r}{Object inheriting \code{\link{ReconstructedOutline}}}
\item{...}{Parameters depending ... | /pkg/retistruct/man/sphericalplot.Rd | no_license | davidcsterratt/retistruct | R | false | true | 426 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/generics.R
\name{sphericalplot}
\alias{sphericalplot}
\title{Spherical plot of reconstructed outline}
\usage{
sphericalplot(r, ...)
}
\arguments{
\item{r}{Object inheriting \code{\link{ReconstructedOutline}}}
\item{...}{Parameters depending ... |
library(mefa4)
ROOT <- "e:/peter/AB_data_v2016"
#OUTDIR1 <- "e:/peter/AB_data_v2016/out/birds/pred1-josmshf"
#OUTDIRB <- "e:/peter/AB_data_v2016/out/birds/predB-josmshf"
STAGE <- list(veg = 6) # hab=5, hab+clim=6, hab+clim+shf=7
OUTDIR1 <- paste0("e:/peter/josm/2017/stage", STAGE$veg, "/pred1")
OUTDIRB <- paste0("e:/... | /projects/josm-shf/predictions-wLegends.R | no_license | psolymos/abmianalytics | R | false | false | 37,598 | r | library(mefa4)
ROOT <- "e:/peter/AB_data_v2016"
#OUTDIR1 <- "e:/peter/AB_data_v2016/out/birds/pred1-josmshf"
#OUTDIRB <- "e:/peter/AB_data_v2016/out/birds/predB-josmshf"
STAGE <- list(veg = 6) # hab=5, hab+clim=6, hab+clim+shf=7
OUTDIR1 <- paste0("e:/peter/josm/2017/stage", STAGE$veg, "/pred1")
OUTDIRB <- paste0("e:/... |
## Put comments here that give an overall description of what your
## functions do
## This is similar to makeVector, it creates a list that sets the matrix, gets the matrix, gets its inverse, and sets its inverse
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
... | /cachematrix.R | no_license | heikalm/ProgrammingAssignment2 | R | false | false | 1,098 | r | ## Put comments here that give an overall description of what your
## functions do
## This is similar to makeVector, it creates a list that sets the matrix, gets the matrix, gets its inverse, and sets its inverse
makeCacheMatrix <- function(x = matrix()) {
m <- NULL
set <- function(y) {
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cur_dir.R
\name{setwd_cur}
\alias{setwd_cur}
\title{Set the wd to the current directory of the file}
\usage{
setwd_cur()
}
\description{
Set the wd to the current directory of the file
}
\examples{
setwd_cur()
}
\seealso{
\code{\link{cur_dir}... | /man/setwd_cur.Rd | no_license | kelli-jean/easyR | R | false | true | 408 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cur_dir.R
\name{setwd_cur}
\alias{setwd_cur}
\title{Set the wd to the current directory of the file}
\usage{
setwd_cur()
}
\description{
Set the wd to the current directory of the file
}
\examples{
setwd_cur()
}
\seealso{
\code{\link{cur_dir}... |
library(ggpubr)
rt=read.table("PDL1CTLA4exp.txt",sep="\t",header=T,row.names=1,check.names=F)
Type=read.table("cluster.Immunity.txt",sep="\t",check.names=F,row.names=1,header=F)
Type=Type[order(Type[,2]),]
rt=t(rt[,row.names(Type)])
data=data.frame()
for(i in colnames(rt)){
data=rbind(data,cbind(express... | /boxplot.R | no_license | 262062/Li-Ma | R | false | false | 1,070 | r |
library(ggpubr)
rt=read.table("PDL1CTLA4exp.txt",sep="\t",header=T,row.names=1,check.names=F)
Type=read.table("cluster.Immunity.txt",sep="\t",check.names=F,row.names=1,header=F)
Type=Type[order(Type[,2]),]
rt=t(rt[,row.names(Type)])
data=data.frame()
for(i in colnames(rt)){
data=rbind(data,cbind(express... |
xk=c(1,0,1,2,3,2)#N=6
N=6
tk=fft(xk)
sum1=sum(xk*xk)#19
sum2=(sum(abs(tk)*abs(tk)))/N#114/6=19
#sum1 is equal to sum2 Hence we verified Parseval's theorem
| /assignment 3/1/3c.R | no_license | trungnnguyen/time-series-analysis | R | false | false | 161 | r | xk=c(1,0,1,2,3,2)#N=6
N=6
tk=fft(xk)
sum1=sum(xk*xk)#19
sum2=(sum(abs(tk)*abs(tk)))/N#114/6=19
#sum1 is equal to sum2 Hence we verified Parseval's theorem
|
Escape <- function(sim){
#browser()
sim$spreadStateE <- data.table(NULL) #ensure always in a determinate state
if (length(sim$ignitionLoci)> 0){
#note that ifesles won't work once these things are nonscalars.
p0 <- if ("scfmPars" %in% names(objs(sim)))
sim$scfmPars$p0
else
P(sim)$p0
# ... | /modules/scfmEscape/R/Escape.R | no_license | chlorophilia/scfmModules | R | false | false | 1,014 | r | Escape <- function(sim){
#browser()
sim$spreadStateE <- data.table(NULL) #ensure always in a determinate state
if (length(sim$ignitionLoci)> 0){
#note that ifesles won't work once these things are nonscalars.
p0 <- if ("scfmPars" %in% names(objs(sim)))
sim$scfmPars$p0
else
P(sim)$p0
# ... |
## Exploratory Data Analysis - exdata-013 Project 1 - Plot 1
## April 2015 RJ Christensen
## Project 1 - Read in Household Power Consumption Data Feb 1-2, 2007
## Construct Plot 1 and save as plot1.png
## Data URL -- https://d396qusza40orc.cloudfront.net/
## exdata%2Fdata%2Fhousehold_power_consumption.zip
#... | /plot1.R | no_license | rrjesse/ExData_Plotting1 | R | false | false | 1,908 | r | ## Exploratory Data Analysis - exdata-013 Project 1 - Plot 1
## April 2015 RJ Christensen
## Project 1 - Read in Household Power Consumption Data Feb 1-2, 2007
## Construct Plot 1 and save as plot1.png
## Data URL -- https://d396qusza40orc.cloudfront.net/
## exdata%2Fdata%2Fhousehold_power_consumption.zip
#... |
# selecting page
page = seq(1, 10, 1)
politico_df <- c()
for (p in 1:length(page)){
# creating url
url <- paste0("https://www.politico.com/story/", p)
# reading url
webpage <- read_html(url)
# pulling down links
links <- webpage %>%
html_nodes("h3 a") %>%
html_attr("href")
# rem... | /rcode/webscraping/old_code/pt05_politico.R | no_license | wohlfeila/political_text | R | false | false | 2,353 | r | # selecting page
page = seq(1, 10, 1)
politico_df <- c()
for (p in 1:length(page)){
# creating url
url <- paste0("https://www.politico.com/story/", p)
# reading url
webpage <- read_html(url)
# pulling down links
links <- webpage %>%
html_nodes("h3 a") %>%
html_attr("href")
# rem... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mc.r
\name{initialize,tgMCCov-method}
\alias{initialize,tgMCCov-method}
\title{Construct a meta cell object}
\usage{
\S4method{initialize}{tgMCCov}(.Object, mc, outliers = c(), scmat)
}
\arguments{
\item{mc}{assignment of metacell id to cell}... | /man/initialize-tgMCCov-method.Rd | permissive | echomsky/metacell | R | false | true | 545 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mc.r
\name{initialize,tgMCCov-method}
\alias{initialize,tgMCCov-method}
\title{Construct a meta cell object}
\usage{
\S4method{initialize}{tgMCCov}(.Object, mc, outliers = c(), scmat)
}
\arguments{
\item{mc}{assignment of metacell id to cell}... |
#This routine is from https://benjjneb.github.io/dada2/ITS_workflow.html with modifications
#itsxpress is run after primer removal and quality filtering but before dada2 core algorithm
#itsxpress is run outside of R
#this script is the core dada2 algorithm run after itsxpress
library(dada2)
packageVersion("dada2")
lib... | /processing_methods_comparison/dada2-slurm_files_sep_pool_F.r | no_license | ewmorr/neonectria_barcoding_012220 | R | false | false | 3,926 | r | #This routine is from https://benjjneb.github.io/dada2/ITS_workflow.html with modifications
#itsxpress is run after primer removal and quality filtering but before dada2 core algorithm
#itsxpress is run outside of R
#this script is the core dada2 algorithm run after itsxpress
library(dada2)
packageVersion("dada2")
lib... |
library(readxl)
library(dplyr)
model <- read_xlsx("/Users/wemigliari/Documents/R/tabelas/tour_gov_health_barna.xlsx",
sheet = "esp_cat_swedes")
library(GGally)
ggpairs(model) # Plot all the correlations + normal distributions
## Model 1
model_mlr_ar <- lm(model$Arrivals_n_s ~ model$Arrivals_cat_... | /public_health_spain_cat_nordic.R | no_license | wemigliari/governance | R | false | false | 2,340 | r | library(readxl)
library(dplyr)
model <- read_xlsx("/Users/wemigliari/Documents/R/tabelas/tour_gov_health_barna.xlsx",
sheet = "esp_cat_swedes")
library(GGally)
ggpairs(model) # Plot all the correlations + normal distributions
## Model 1
model_mlr_ar <- lm(model$Arrivals_n_s ~ model$Arrivals_cat_... |
# line_plots <- function()
filter_alignments <- function(alignments, regions, regions_filter="both", minimum=10, maximum=30, cutoff=.001){
alignments <- filter_by_regions(alignments = alignments, regions = regions, type = regions_filter)
alignments <- filter_alignments_by_size_range(alignments = alignments, m... | /R/workflows.R | no_license | alb202/PACER | R | false | false | 5,956 | r | # line_plots <- function()
filter_alignments <- function(alignments, regions, regions_filter="both", minimum=10, maximum=30, cutoff=.001){
alignments <- filter_by_regions(alignments = alignments, regions = regions, type = regions_filter)
alignments <- filter_alignments_by_size_range(alignments = alignments, m... |
########################################################################
# #
# Analysis of the Scholtzia Data Set as in Hahn & Jensen (2013) #
# #
############################... | /demo/scholtzia.R | no_license | ute/hidden2statspat | R | false | false | 2,352 | r | ########################################################################
# #
# Analysis of the Scholtzia Data Set as in Hahn & Jensen (2013) #
# #
############################... |
Cox.plot <-
function(x, y, file, var.label.x, var.label.y, ...)
{
kk<-!is.na(x) & !is.na(y)
x<-x[kk]
y<-y[kk]
dots.args <- eval(substitute(alist(...)))
onefile <- FALSE
if (!is.null(dots.args$onefile))
onefile<- dots.args$onefile
if (is.null(file))
dev.new()
else {
... | /compareGroups/R/Cox.plot.R | no_license | ingted/R-Examples | R | false | false | 1,155 | r | Cox.plot <-
function(x, y, file, var.label.x, var.label.y, ...)
{
kk<-!is.na(x) & !is.na(y)
x<-x[kk]
y<-y[kk]
dots.args <- eval(substitute(alist(...)))
onefile <- FALSE
if (!is.null(dots.args$onefile))
onefile<- dots.args$onefile
if (is.null(file))
dev.new()
else {
... |
heatmapUI = function(id) {
ns = NS(id)
tagList(
textAreaInput(ns('genes'), 'Enter a list of orthoIDs', height = '200px', width = '600px'),
actionButton(ns('example'), 'Example'),
actionButton(ns('clear'), 'Clear'),
p('Plot log10-scaled gene expressions values across species'),
... | /page/heatmap.R | no_license | msuefishlab/shinyorthologs | R | false | false | 3,542 | r | heatmapUI = function(id) {
ns = NS(id)
tagList(
textAreaInput(ns('genes'), 'Enter a list of orthoIDs', height = '200px', width = '600px'),
actionButton(ns('example'), 'Example'),
actionButton(ns('clear'), 'Clear'),
p('Plot log10-scaled gene expressions values across species'),
... |
## Plot 4
## R code file
Sys.setlocale("LC_TIME", "English")
all_data<-read.csv("household_power_consumption.txt",header=TRUE,sep=";",na.strings="?",nrows=2075259,check.names=F,stringsAsFactors=F,comment.char="",quote="\"")
all_data$Date<-as.Date(all_data$Date,format="%d/%m/%Y")
data<-subset(all_data,subset=(Date>="20... | /plot4.R | no_license | ladg340/ExData_Plotting1 | R | false | false | 1,316 | r | ## Plot 4
## R code file
Sys.setlocale("LC_TIME", "English")
all_data<-read.csv("household_power_consumption.txt",header=TRUE,sep=";",na.strings="?",nrows=2075259,check.names=F,stringsAsFactors=F,comment.char="",quote="\"")
all_data$Date<-as.Date(all_data$Date,format="%d/%m/%Y")
data<-subset(all_data,subset=(Date>="20... |
dataFile <- "./data/household_power_consumption.txt"
data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,]
#str(subSetData)
datetime <- strptime(paste(subSetData$Date, subSetData$Time, sep=" "), "%d/%m/%Y %H:%M... | /plot2.R | no_license | Sisimulder/ExData_Plotting1 | R | false | false | 545 | r |
dataFile <- "./data/household_power_consumption.txt"
data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".")
subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,]
#str(subSetData)
datetime <- strptime(paste(subSetData$Date, subSetData$Time, sep=" "), "%d/%m/%Y %H:%M... |
.overcat <- function(msg, prevmsglength) {
if (prevmsglength>0) {cat("\r")}
cat(msg)
return(nchar(msg))
}
.ULI <- function(...) {
redondGeo <- cbind(...) ## always a matrix
if (ncol(redondGeo)==0L) return(rep(1L,nrow(redondGeo))) ## .generateInitPhi with constant predictor led here
if (nrow(re... | /fuzzedpackages/blackbox/R/blackbox_internals.R | no_license | akhikolla/testpackages | R | false | false | 1,306 | r | .overcat <- function(msg, prevmsglength) {
if (prevmsglength>0) {cat("\r")}
cat(msg)
return(nchar(msg))
}
.ULI <- function(...) {
redondGeo <- cbind(...) ## always a matrix
if (ncol(redondGeo)==0L) return(rep(1L,nrow(redondGeo))) ## .generateInitPhi with constant predictor led here
if (nrow(re... |
#' Gauss-Seidel based Optimization & estimation
#'
#' @description Function utilizes the Gauss-Seidel optimization to solve equation Ax=b
#' @param A : Input matrix
#' @param b : Response
#' @param x : Initial solutions
#' @param iter : Number of Iterations
#' @param tol : Convergence tolerance
#' @par... | /R/gaussSeidel.R | no_license | cran/optR | R | false | false | 2,089 | r | #' Gauss-Seidel based Optimization & estimation
#'
#' @description Function utilizes the Gauss-Seidel optimization to solve equation Ax=b
#' @param A : Input matrix
#' @param b : Response
#' @param x : Initial solutions
#' @param iter : Number of Iterations
#' @param tol : Convergence tolerance
#' @par... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/capa.R
\name{capa.uv}
\alias{capa.uv}
\title{Detection of univariate anomalous segments and points using CAPA.}
\usage{
capa.uv(x, beta = NULL, beta_tilde = NULL, type = "meanvar",
min_seg_len = 10, max_seg_len = Inf, transform = robustscal... | /man/capa.uv.Rd | no_license | Fisch-Alex/anomaly | R | false | true | 3,121 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/capa.R
\name{capa.uv}
\alias{capa.uv}
\title{Detection of univariate anomalous segments and points using CAPA.}
\usage{
capa.uv(x, beta = NULL, beta_tilde = NULL, type = "meanvar",
min_seg_len = 10, max_seg_len = Inf, transform = robustscal... |
library(gmodels)
library(class)
wbcd <- read.csv("wisc_bc_data.csv", stringsAsFactors = FALSE)
wbcd <- wbcd[-1]
wbcd$diagnosis <- factor(wbcd$diagnosis,levels = c("B","M"),labels = c("Benign","Malovelent"))
table(wbcd$diagnosis)
normalize = function(x) { return((x - min(x))/(max(x)-min(x)))}
wbcd_n <- as.data.fr... | /Cancer_detection.R | no_license | Shashwat05/KNN--Classifier- | R | false | false | 631 | r | library(gmodels)
library(class)
wbcd <- read.csv("wisc_bc_data.csv", stringsAsFactors = FALSE)
wbcd <- wbcd[-1]
wbcd$diagnosis <- factor(wbcd$diagnosis,levels = c("B","M"),labels = c("Benign","Malovelent"))
table(wbcd$diagnosis)
normalize = function(x) { return((x - min(x))/(max(x)-min(x)))}
wbcd_n <- as.data.fr... |
library(ccube)
library(dplyr)
source('SVclone/write_output.R')
args <- commandArgs(trailingOnly = TRUE)
if(length(args) == 0 | args[1] == "-h") {
cat("
Perform post-assignment of SVs.
Usage:
Rscript post_assign.R <SV RData results> <SNV RData results> <results folder> <sample> [--joint]\... | /SVclone/post_assign.R | permissive | qindan2008/SVclone | R | false | false | 2,722 | r | library(ccube)
library(dplyr)
source('SVclone/write_output.R')
args <- commandArgs(trailingOnly = TRUE)
if(length(args) == 0 | args[1] == "-h") {
cat("
Perform post-assignment of SVs.
Usage:
Rscript post_assign.R <SV RData results> <SNV RData results> <results folder> <sample> [--joint]\... |
## Loads the data (set load to 1)
load <- 1
if (load){
features <- read.table("features.txt",sep=" ",col.names=c("num","feat"))
actlab <-read.table("activity_labels.txt",sep=" ",col.names=c("label","activity"))
subject_test <-read.table("./test/subject_test.txt",col.names="subject")
subject_train... | /run_analysis.R | no_license | ebalp/cleaningproject | R | false | false | 1,582 | r |
## Loads the data (set load to 1)
load <- 1
if (load){
features <- read.table("features.txt",sep=" ",col.names=c("num","feat"))
actlab <-read.table("activity_labels.txt",sep=" ",col.names=c("label","activity"))
subject_test <-read.table("./test/subject_test.txt",col.names="subject")
subject_train... |
#The dataset set be loaded using MASS library
#Structure of code:
#Loading data
#Data prep
#EDA
#Model building and accuracy analysis
#Final Analysis
## DATA LOADING
library(MASS)
housing <- Boston
library(corrplot) #seeing correlation
library(ggplot2) #visualization
library(caTools) #splitting into t... | /basic_housing.R | no_license | aiim-lab/BasicML | R | false | false | 8,326 | r | #The dataset set be loaded using MASS library
#Structure of code:
#Loading data
#Data prep
#EDA
#Model building and accuracy analysis
#Final Analysis
## DATA LOADING
library(MASS)
housing <- Boston
library(corrplot) #seeing correlation
library(ggplot2) #visualization
library(caTools) #splitting into t... |
# ----------- Examples --------------
#' Code Examples
#'
#' Learn by example - copy/paste code from Examples below.\cr
#' This code collection is to demonstrate various concepts of
#' data preparation, conversion, grouping,
#' parameter setting, visual fine-tuning,
#' custom rendering, plugins attachment,
... | /R/examples.R | permissive | statunizaga/echarty | R | false | false | 16,027 | r | # ----------- Examples --------------
#' Code Examples
#'
#' Learn by example - copy/paste code from Examples below.\cr
#' This code collection is to demonstrate various concepts of
#' data preparation, conversion, grouping,
#' parameter setting, visual fine-tuning,
#' custom rendering, plugins attachment,
... |
/STA401/TP/TP4/TP4.R | no_license | collomsu/L2_INFO | R | false | false | 1,486 | r | ||
#' @export
hydro_hitamaelar <- function(con) {
tbl_mar(con,"hydro.hitamaelar") %>%
dplyr::select(-c(snt:sbn)) %>%
dplyr::mutate(ar = to_number(to_char(timi, "YYYY")))
}
#' @export
hydro_stadir <- function(con) {
tbl_mar(con, "hydro.stadir") %>%
dplyr::select(-c(snt:sbn))
}
#' @export
hydro_stodvanofn <-... | /R/hydro.R | no_license | einarhjorleifsson/mar | R | false | false | 1,359 | r | #' @export
hydro_hitamaelar <- function(con) {
tbl_mar(con,"hydro.hitamaelar") %>%
dplyr::select(-c(snt:sbn)) %>%
dplyr::mutate(ar = to_number(to_char(timi, "YYYY")))
}
#' @export
hydro_stadir <- function(con) {
tbl_mar(con, "hydro.stadir") %>%
dplyr::select(-c(snt:sbn))
}
#' @export
hydro_stodvanofn <-... |
# lowPass.443()
# to reduce noise and improve the diagnostic coeficient of the pneumo data
# can also be used with the raw EDA data
# will also add 2 columns to the time series data frames
# for the filtered upper and lower pneumo data
# first order Butterworth filter
#
###
# define the low pass .43 function
lowPass... | /lowPass.443.1stOrder.R | no_license | raymondnelson/NCCA_ASCII_Parse | R | false | false | 1,379 | r | # lowPass.443()
# to reduce noise and improve the diagnostic coeficient of the pneumo data
# can also be used with the raw EDA data
# will also add 2 columns to the time series data frames
# for the filtered upper and lower pneumo data
# first order Butterworth filter
#
###
# define the low pass .43 function
lowPass... |
## This function creates a vector that stores
## 1-sets the matrix, 2-gets the matrix
## 3-sets the inverse of the matrics
## 4-gets the inverse of the matrix
## This vector becomes the input to the cacheSolve function below
makeCacheVector <- function(x = matrix()) {
inv <- NULL
set <- function(y) {... | /cachematrix.R | no_license | cmccracken/ProgrammingAssignment2 | R | false | false | 1,173 | r | ## This function creates a vector that stores
## 1-sets the matrix, 2-gets the matrix
## 3-sets the inverse of the matrics
## 4-gets the inverse of the matrix
## This vector becomes the input to the cacheSolve function below
makeCacheVector <- function(x = matrix()) {
inv <- NULL
set <- function(y) {... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/r2_helpers.R
\name{get_var_comps}
\alias{get_var_comps}
\title{Extract variance components from merMod.}
\usage{
get_var_comps(mod, expct, overdisp_name)
}
\arguments{
\item{mod}{A merMod object.}
\item{expct}{expectation.}
\item{overdisp_n... | /man/get_var_comps.Rd | no_license | mastoffel/partR2 | R | false | true | 478 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/r2_helpers.R
\name{get_var_comps}
\alias{get_var_comps}
\title{Extract variance components from merMod.}
\usage{
get_var_comps(mod, expct, overdisp_name)
}
\arguments{
\item{mod}{A merMod object.}
\item{expct}{expectation.}
\item{overdisp_n... |
load("antibiotics_2010.Rdata")
myPDF("antibioticsPlots.pdf", 6, 6,
mfrow = c(1, 3),
mgp = c(1.9, 0.5, 0),
mar = c(3, 3, 1, .5) + 0.1)
par(mfrow = c(2, 2))
plot(antibiotics.2010$consumption ~ antibiotics.2010$female,
main = "Consumption vs Female",
ylab = "Consumption (DID)", xlab = "Perc... | /ch_multiple_linear_regression_oi_biostat/figures/eoce/antibiotic/antibiotic.R | no_license | OI-Biostat/oi_biostat_text | R | false | false | 1,217 | r | load("antibiotics_2010.Rdata")
myPDF("antibioticsPlots.pdf", 6, 6,
mfrow = c(1, 3),
mgp = c(1.9, 0.5, 0),
mar = c(3, 3, 1, .5) + 0.1)
par(mfrow = c(2, 2))
plot(antibiotics.2010$consumption ~ antibiotics.2010$female,
main = "Consumption vs Female",
ylab = "Consumption (DID)", xlab = "Perc... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/param_merge.r
\name{param.merge}
\alias{param.merge}
\title{Merge fitted height-diameter parameters with tree by tree data. Depricated.}
\usage{
param.merge(data, wparm, dbh = "D4")
}
\arguments{
\item{data}{Object returned by mergefp}
\item... | /man/param.merge.Rd | no_license | ForestPlots/BiomasaFP_old | R | false | true | 648 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/param_merge.r
\name{param.merge}
\alias{param.merge}
\title{Merge fitted height-diameter parameters with tree by tree data. Depricated.}
\usage{
param.merge(data, wparm, dbh = "D4")
}
\arguments{
\item{data}{Object returned by mergefp}
\item... |
library(shiny)
library(ggplot2)
library(robustbase)
library(reshape)
library(xlsx)
DataScrubbing <- function(file_name)
{
# This function takes an excel spreadsheet with the first row as labels. It will cut off all rows beyond 100
# for the columns with both continuous/Discrete and categorical data and returns ... | /functions/App.R | no_license | schew/big-dog | R | false | false | 7,308 | r | library(shiny)
library(ggplot2)
library(robustbase)
library(reshape)
library(xlsx)
DataScrubbing <- function(file_name)
{
# This function takes an excel spreadsheet with the first row as labels. It will cut off all rows beyond 100
# for the columns with both continuous/Discrete and categorical data and returns ... |
library(shiny)
library(sigmajs)
ui <- fluidPage(
fluidRow(
column(3, actionButton("add", "add nodes & edges"))
),
sigmajsOutput("sg", height = "100vh")
)
server <- function(input, output) {
ids <- as.character(1:100) # create 100 nodes
n <- 150 # number of edges
# create edges with random delay FIRST
edges ... | /demo/add-delay.R | permissive | takewiki/sigmajs | R | false | false | 1,682 | r | library(shiny)
library(sigmajs)
ui <- fluidPage(
fluidRow(
column(3, actionButton("add", "add nodes & edges"))
),
sigmajsOutput("sg", height = "100vh")
)
server <- function(input, output) {
ids <- as.character(1:100) # create 100 nodes
n <- 150 # number of edges
# create edges with random delay FIRST
edges ... |
#' Real-time Rt Estimation, Forecasting and Reporting
#'
#' @description `r lifecycle::badge("maturing")`
#' This function wraps the functionality of `estimate_infections()` and `forecast_infections()` in order
#' to estimate Rt and cases by date of infection, forecast into these infections into the future. It also con... | /R/epinow.R | permissive | medewitt/EpiNow2 | R | false | false | 9,707 | r | #' Real-time Rt Estimation, Forecasting and Reporting
#'
#' @description `r lifecycle::badge("maturing")`
#' This function wraps the functionality of `estimate_infections()` and `forecast_infections()` in order
#' to estimate Rt and cases by date of infection, forecast into these infections into the future. It also con... |
library(ape)
testtree <- read.tree("9449_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="9449_0_unrooted.txt") | /codeml_files/newick_trees_processed/9449_0/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("9449_0.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="9449_0_unrooted.txt") |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/readAnnotate.R
\docType{methods}
\name{getFlanks}
\alias{getFlanks}
\alias{getFlanks,GRanges-method}
\title{Function to get upstream and downstream adjecent regions to a genomic feature such as CpG islands}
\usage{
getFlanks(grange,fl... | /man/getFlanks-methods.Rd | no_license | al2na/genomation | R | false | false | 1,010 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/readAnnotate.R
\docType{methods}
\name{getFlanks}
\alias{getFlanks}
\alias{getFlanks,GRanges-method}
\title{Function to get upstream and downstream adjecent regions to a genomic feature such as CpG islands}
\usage{
getFlanks(grange,fl... |
#' Plot the W~Q curve at a measurement station (pegel)
#'
#' This function take an mID and draw the waterlevel-discharge at its location
#'
#' @param pegel Name of the measurement station (for the plot title)
#' @param ... other parameter to pass to his_from_case function
#'
#' @return a ggplot2 graphic
#' @exp... | /R/w_q_curve.R | no_license | dquang/sobekioNHWSP | R | false | false | 1,545 | r | #' Plot the W~Q curve at a measurement station (pegel)
#'
#' This function take an mID and draw the waterlevel-discharge at its location
#'
#' @param pegel Name of the measurement station (for the plot title)
#' @param ... other parameter to pass to his_from_case function
#'
#' @return a ggplot2 graphic
#' @exp... |
install.packages("rjson")
library("rjson")
result <- fromJSON(file = "test2.json")
result2 <- fromJSON(file = "freeb.json")
# Print the result.
print(result2)
result$businesses[[10]]$id
| /project.R | no_license | TokyoExpress/kickstarter-analysis | R | false | false | 203 | r | install.packages("rjson")
library("rjson")
result <- fromJSON(file = "test2.json")
result2 <- fromJSON(file = "freeb.json")
# Print the result.
print(result2)
result$businesses[[10]]$id
|
library(downloader)
url <- "https://raw.githubusercontent.com/genomicsclass/dagdata/master/inst/extdata/mice_pheno.csv"
filename <- basename(url)
download(url, destfile=filename)
dat <- na.omit( read.csv(filename) )
############################################################
## If a list of numbers has a distributio... | /statsandr/cltexercises.r | no_license | whatisakeagan/learnin | R | false | false | 4,536 | r | library(downloader)
url <- "https://raw.githubusercontent.com/genomicsclass/dagdata/master/inst/extdata/mice_pheno.csv"
filename <- basename(url)
download(url, destfile=filename)
dat <- na.omit( read.csv(filename) )
############################################################
## If a list of numbers has a distributio... |
library(data.table)
phosphosites_final = fread("../../Data/External/Phosphosite/Phopshosites_diseases_and_regulatory.txt", sep="\t")
setorder(phosphosites_final, prot_residue_id)
setcolorder(phosphosites_final, c(ncol(phosphosites_final), 1:(ncol(phosphosites_final)-1)) )
full_data_file = "../../Data/Raw/Proteome/Pers... | /Code/Phophoproteome/PreparePhosphoproteomeData.R | permissive | MPIIB-Department-TFMeyer/Zadora_et_al_Phosphoproteome | R | false | false | 3,769 | r | library(data.table)
phosphosites_final = fread("../../Data/External/Phosphosite/Phopshosites_diseases_and_regulatory.txt", sep="\t")
setorder(phosphosites_final, prot_residue_id)
setcolorder(phosphosites_final, c(ncol(phosphosites_final), 1:(ncol(phosphosites_final)-1)) )
full_data_file = "../../Data/Raw/Proteome/Pers... |
context("plotting")
daily_data <- readRDS("daily_averages.rds")
daily_data <- daily_data[daily_data$id == "a", , drop = FALSE]
annual_data <- readRDS("annual_98_percentiles.rds")
annual_data <- annual_data[annual_data$id == "a", , drop = FALSE]
test_that("mid_breaks works", {
expect_is(mid_breaks(), "function")
... | /tests/testthat/test-plot.R | permissive | nograpes/rcaaqs | R | false | false | 3,943 | r | context("plotting")
daily_data <- readRDS("daily_averages.rds")
daily_data <- daily_data[daily_data$id == "a", , drop = FALSE]
annual_data <- readRDS("annual_98_percentiles.rds")
annual_data <- annual_data[annual_data$id == "a", , drop = FALSE]
test_that("mid_breaks works", {
expect_is(mid_breaks(), "function")
... |
#' Fit the phenotyping algorithm PheNorm using EHR features
#'
#' @description
#' The function requires as input:
#' * a surrogate, such as the ICD code
#' * the healthcare utilization
#' It can leverage other EHR features (optional) to assist risk prediction.
#'
#' @param nm.logS.ori name of the surrogates (log(ICD+1)... | /R/PheNorm_Prob.R | no_license | celehs/PheNorm | R | false | false | 2,743 | r | #' Fit the phenotyping algorithm PheNorm using EHR features
#'
#' @description
#' The function requires as input:
#' * a surrogate, such as the ICD code
#' * the healthcare utilization
#' It can leverage other EHR features (optional) to assist risk prediction.
#'
#' @param nm.logS.ori name of the surrogates (log(ICD+1)... |
# Swirl Dates & Times Practice
t2 <- as.POSIXlt(Sys.time())
str(unclass(t2))
List of 11
$ sec : num 4.05
$ min : int 14
$ hour : int 16
$ mday : int 5
$ mon : int 5
$ year : int 119
$ wday : int 3
$ yday : int 155
$ isdst : int 1
$ zone : chr "PDT"
$ gmtoff: int -25200
- attr(*, "tzone")= chr [1:3] "" "PS... | /Swirl Dates and Times Practice.R | no_license | BeaRam/datasciencecoursera | R | false | false | 329 | r | # Swirl Dates & Times Practice
t2 <- as.POSIXlt(Sys.time())
str(unclass(t2))
List of 11
$ sec : num 4.05
$ min : int 14
$ hour : int 16
$ mday : int 5
$ mon : int 5
$ year : int 119
$ wday : int 3
$ yday : int 155
$ isdst : int 1
$ zone : chr "PDT"
$ gmtoff: int -25200
- attr(*, "tzone")= chr [1:3] "" "PS... |
#' Train a model using Cloud ML
#'
#' Upload a TensorFlow application to Google Cloud, and use that application to
#' train a model.
#'
#' @param application
#' The path to a TensorFlow application. Defaults to
#' the current working directory.
#'
#' @param config
#' The name of the configuration to be used. Def... | /R/jobs.R | no_license | Geoany/cloudml | R | false | false | 9,931 | r |
#' Train a model using Cloud ML
#'
#' Upload a TensorFlow application to Google Cloud, and use that application to
#' train a model.
#'
#' @param application
#' The path to a TensorFlow application. Defaults to
#' the current working directory.
#'
#' @param config
#' The name of the configuration to be used. Def... |
#' Prepare reads for plotting with Rcircos
#'
#' Input data frame should have column names ReadID, Chr, RefStart and RefEnd
#' @param readData - data frame of fragments detected in MC-HiC
#' @param readsToDraw - vector of read IDs
#' @return data frame with 6 columns for pairs of interacting loci
#' @export
prepareLink... | /js_RcircosPlotting.R | no_license | CellFateNucOrg/afterMC-HiCplots | R | false | false | 4,044 | r | #' Prepare reads for plotting with Rcircos
#'
#' Input data frame should have column names ReadID, Chr, RefStart and RefEnd
#' @param readData - data frame of fragments detected in MC-HiC
#' @param readsToDraw - vector of read IDs
#' @return data frame with 6 columns for pairs of interacting loci
#' @export
prepareLink... |
setwd("~/Documents/GSDC")
library(oncoPredict)
library(tidyverse)
countdata_predict <- read_tsv("countdata77.txt", comment="#")
countdata_predict <- countdata_predict[!duplicated(countdata_predict$Geneid), ]
testExpr <- countdata_predict %>%
as.data.frame() %>%
column_to_rownames("Geneid") %>% # turn the geneid... | /GDSC_oncopredict.R | no_license | fang2065/FangBioinfo | R | false | false | 1,197 | r | setwd("~/Documents/GSDC")
library(oncoPredict)
library(tidyverse)
countdata_predict <- read_tsv("countdata77.txt", comment="#")
countdata_predict <- countdata_predict[!duplicated(countdata_predict$Geneid), ]
testExpr <- countdata_predict %>%
as.data.frame() %>%
column_to_rownames("Geneid") %>% # turn the geneid... |
\encoding{UTF-8}
\name{kf}
\alias{kf}
\title{
Discrete associated kernel function
}
\description{
This function computes the discrete associated kernel function.
}
\usage{
kf(x, t, h, ker, a = 1, c = 2)
}
\arguments{
\item{x}{
The target.
}
\item{t}{
A single value or the grid where the discrete associated kern... | /man/kf.Rd | no_license | cran/Disake | R | false | false | 1,540 | rd | \encoding{UTF-8}
\name{kf}
\alias{kf}
\title{
Discrete associated kernel function
}
\description{
This function computes the discrete associated kernel function.
}
\usage{
kf(x, t, h, ker, a = 1, c = 2)
}
\arguments{
\item{x}{
The target.
}
\item{t}{
A single value or the grid where the discrete associated kern... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotGeneral.R
\name{sysToBMatrixDf}
\alias{sysToBMatrixDf}
\title{sysToBMatrixDf}
\usage{
sysToBMatrixDf(mySys, applyLabels = TRUE)
}
\arguments{
\item{mySys}{An R object of class ConQuestSys, returned by the function conquestr::ConQuestSys}
... | /conquestr/man/sysToBMatrixDf.Rd | no_license | akhikolla/TestedPackages-NoIssues | R | false | true | 918 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plotGeneral.R
\name{sysToBMatrixDf}
\alias{sysToBMatrixDf}
\title{sysToBMatrixDf}
\usage{
sysToBMatrixDf(mySys, applyLabels = TRUE)
}
\arguments{
\item{mySys}{An R object of class ConQuestSys, returned by the function conquestr::ConQuestSys}
... |
context("rpart")
test_that("data_tree() returns the correct classes", {
if(!require("rpart", quietly = TRUE)) skip("package rpart not available")
fit <- rpart(Kyphosis ~ Age + Number + Start, method="class", data=kyphosis)
tdata <- dendro_data(fit)
expect_is(tdata, "dendro")
expect_is(segmen... | /data/genthat_extracted_code/ggdendro/tests/test-3-rpart.R | no_license | surayaaramli/typeRrh | R | false | false | 442 | r | context("rpart")
test_that("data_tree() returns the correct classes", {
if(!require("rpart", quietly = TRUE)) skip("package rpart not available")
fit <- rpart(Kyphosis ~ Age + Number + Start, method="class", data=kyphosis)
tdata <- dendro_data(fit)
expect_is(tdata, "dendro")
expect_is(segmen... |
### How many Patients are there stratified by BMI?###
#Install and load fhircrackr
#install.packages("fhircrackr") #do this only once
library(fhircrackr)
library(dplyr)
#check out vignette for how to use package
vignette(topic = "fhircrackr", package="fhircrackr")
#Download Observations coding for body height
searc... | /CountBMIGroups.R | no_license | JePrzybilla/Projectathon2020 | R | false | false | 2,336 | r | ### How many Patients are there stratified by BMI?###
#Install and load fhircrackr
#install.packages("fhircrackr") #do this only once
library(fhircrackr)
library(dplyr)
#check out vignette for how to use package
vignette(topic = "fhircrackr", package="fhircrackr")
#Download Observations coding for body height
searc... |
# This file provides a read_data() function, which:
# - Reads in the .csv datasource in the /data subfolder
# - Performs any necessary transformations on the data
# - Returns the data as a data.table
library(data.table)
library(lubridate)
library(magrittr)
library(stringr)
# Define the columns we expect to find when ... | /health/read_scales_data.R | no_license | thecasper2/health_dashboard | R | false | false | 4,902 | r | # This file provides a read_data() function, which:
# - Reads in the .csv datasource in the /data subfolder
# - Performs any necessary transformations on the data
# - Returns the data as a data.table
library(data.table)
library(lubridate)
library(magrittr)
library(stringr)
# Define the columns we expect to find when ... |
fitPlot <- function(country="France", file=NULL, file.test=NULL, nb.day=2, plot.tau=F, plot.pred=T, plot.pred0=T,
plot.day=T, log.scale=F, level=0.9, pred.int=F, conf.int=F) {
if (is.null(file))
file <- gsub(" ","",paste0("data/",country,".RData"))
# if (!is.null(file.train))
# loa... | /R/fitPlot.R | no_license | MarcLavielle/covidix | R | false | false | 4,676 | r | fitPlot <- function(country="France", file=NULL, file.test=NULL, nb.day=2, plot.tau=F, plot.pred=T, plot.pred0=T,
plot.day=T, log.scale=F, level=0.9, pred.int=F, conf.int=F) {
if (is.null(file))
file <- gsub(" ","",paste0("data/",country,".RData"))
# if (!is.null(file.train))
# loa... |
% Generated by roxygen2 (4.0.0): do not edit by hand
\name{annotate_assembly}
\alias{annotate_assembly}
\title{match assembled transcripts to annotated transcripts}
\usage{
annotate_assembly(assembled, annotated)
}
\arguments{
\item{assembled}{\code{GRangesList} object representing assembled transcripts}
\item{annotat... | /man/annotate_assembly.Rd | no_license | gpertea/ballgown | R | false | false | 1,012 | rd | % Generated by roxygen2 (4.0.0): do not edit by hand
\name{annotate_assembly}
\alias{annotate_assembly}
\title{match assembled transcripts to annotated transcripts}
\usage{
annotate_assembly(assembled, annotated)
}
\arguments{
\item{assembled}{\code{GRangesList} object representing assembled transcripts}
\item{annotat... |
#!/usr/bin/env R
args <- commandArgs(TRUE)
library(grid)
library(futile.logger)
library(VennDiagram)
#usage: Rscript venn_3categories.R commonDown commonDown.svg svg 15 15 2.5
venn_plot <- function(data_file, out_name, out_type, out_height, out_width, text_cex){
col_names <- colnames(data_file)
... | /scripts/vennCategory/venn_3categories.R | no_license | ZhikunWu/Bioinformatic-resources | R | false | false | 1,453 | r | #!/usr/bin/env R
args <- commandArgs(TRUE)
library(grid)
library(futile.logger)
library(VennDiagram)
#usage: Rscript venn_3categories.R commonDown commonDown.svg svg 15 15 2.5
venn_plot <- function(data_file, out_name, out_type, out_height, out_width, text_cex){
col_names <- colnames(data_file)
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{getHzhist}
\alias{getHzhist}
\title{Projected death risks}
\usage{
getHzhist(yr0, age0, yr1, M)
}
\arguments{
\item{yr0}{initial year}
\item{age0}{initial age}
\item{yr1}{final year}
\item{M}{matrix to extrapolate}
}
\val... | /man/getHzhist.Rd | no_license | petedodd/discly | R | false | true | 424 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/functions.R
\name{getHzhist}
\alias{getHzhist}
\title{Projected death risks}
\usage{
getHzhist(yr0, age0, yr1, M)
}
\arguments{
\item{yr0}{initial year}
\item{age0}{initial age}
\item{yr1}{final year}
\item{M}{matrix to extrapolate}
}
\val... |
# --- Effect of German govt spending shock on Italian exports
# Data period: 1980q1-2018q4
# 95% and 68% confidence intervals
# h = 4, 8 and 12
# OLS with left-hand side in growth rates and 4 lags of x(t-1)
source('~/Studie/MSc ECO/Period 5-6 MSc thesis/MSc thesis RStudio project/Scripts/Spillovers IT and DE... | /trade spillovers/Trade spillovers IT and DE v3 1.R | no_license | mdg9709/spilloversNL | R | false | false | 7,759 | r | # --- Effect of German govt spending shock on Italian exports
# Data period: 1980q1-2018q4
# 95% and 68% confidence intervals
# h = 4, 8 and 12
# OLS with left-hand side in growth rates and 4 lags of x(t-1)
source('~/Studie/MSc ECO/Period 5-6 MSc thesis/MSc thesis RStudio project/Scripts/Spillovers IT and DE... |
# Created on
# Course work:
# @author:
# Source:
test <- c(25,45,66,24,66,7,24,44,66,87,2)
quant = quantile(test)
print(quant) | /chaaya/list_quantile.r | no_license | tactlabs/r-samples | R | false | false | 130 | r | # Created on
# Course work:
# @author:
# Source:
test <- c(25,45,66,24,66,7,24,44,66,87,2)
quant = quantile(test)
print(quant) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_clarity_plot.R
\name{create_clarity_plot}
\alias{create_clarity_plot}
\title{create_clarity_plot}
\usage{
create_clarity_plot(data_ptds)
}
\value{
}
\description{
create_clarity_plot
}
\author{
Aaron Conway
}
| /man/create_clarity_plot.Rd | permissive | awconway/ptds | R | false | true | 295 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/create_clarity_plot.R
\name{create_clarity_plot}
\alias{create_clarity_plot}
\title{create_clarity_plot}
\usage{
create_clarity_plot(data_ptds)
}
\value{
}
\description{
create_clarity_plot
}
\author{
Aaron Conway
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.