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 |
|---|---|---|---|---|---|---|---|---|---|
## Matrix inversion is usually a costly computation and there may be some
## benefit to caching the inverse of a matrix rather than compute it repeatedly.
##
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(... | /RLang/Week3/cachematrix.R | no_license | kronik/datasciencecoursera | R | false | false | 1,107 | r | ## Matrix inversion is usually a costly computation and there may be some
## benefit to caching the inverse of a matrix rather than compute it repeatedly.
##
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calculateGCContentByInterval.R
\name{calculateGCContentByInterval}
\alias{calculateGCContentByInterval}
\title{Calculates GC content by interval}
\usage{
calculateGCContentByInterval(interval.file, reference.file,
output.file = NULL, ...)
}... | /man/calculateGCContentByInterval.Rd | no_license | raonyguimaraes/PureCN | R | false | true | 1,699 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/calculateGCContentByInterval.R
\name{calculateGCContentByInterval}
\alias{calculateGCContentByInterval}
\title{Calculates GC content by interval}
\usage{
calculateGCContentByInterval(interval.file, reference.file,
output.file = NULL, ...)
}... |
## ---- echo = T, message=F,warning=F--------------------------------------
require(RNAMagnet)
require(ggplot2)
ligrec <- getLigandsReceptors("1.0.0",cellularCompartment = c("ECM","Surface","Both"),manualAnnotation = "Correct")
head(ligrec)
## ---- echo = F-----------------------------------------------------------
N... | /inst/doc/rnamagnet-physical.R | no_license | veltenlab/rnamagnet | R | false | false | 3,237 | r | ## ---- echo = T, message=F,warning=F--------------------------------------
require(RNAMagnet)
require(ggplot2)
ligrec <- getLigandsReceptors("1.0.0",cellularCompartment = c("ECM","Surface","Both"),manualAnnotation = "Correct")
head(ligrec)
## ---- echo = F-----------------------------------------------------------
N... |
# Lesson3 GeoScripting 6 January 2015
# Siti Latifah
# Main script
library(raster)
source('R/ageCalculator.R')
source('R/HelloWorld.R')
source('R/minusRaster.R')
## Test ageCalculator function
HelloWorld('john')
## Test HelloWorld function
ageCalculator(2009)
## Test minusRaster function
# import dataset
r <- rast... | /main.R | no_license | latif003/lesson3Example | R | false | false | 512 | r | # Lesson3 GeoScripting 6 January 2015
# Siti Latifah
# Main script
library(raster)
source('R/ageCalculator.R')
source('R/HelloWorld.R')
source('R/minusRaster.R')
## Test ageCalculator function
HelloWorld('john')
## Test HelloWorld function
ageCalculator(2009)
## Test minusRaster function
# import dataset
r <- rast... |
#install.packages("car")
library(car)
library(qiime2R)
#library(ape)
library(dplyr)
library(ggplot2)
library(gplots)
#library(lme4)
#library(phangorn)
#library(phyloseq)
#library(plotly)
library(tidyr)
library(vegan)
#library(VennDiagram)
#library(naniar)
#library(zoo)
library(tidyverse)
library(ggpubr)
#library(rstati... | /project.R | no_license | munsunjuliachoi/ANSC595_Project | R | false | false | 6,857 | r | #install.packages("car")
library(car)
library(qiime2R)
#library(ape)
library(dplyr)
library(ggplot2)
library(gplots)
#library(lme4)
#library(phangorn)
#library(phyloseq)
#library(plotly)
library(tidyr)
library(vegan)
#library(VennDiagram)
#library(naniar)
#library(zoo)
library(tidyverse)
library(ggpubr)
#library(rstati... |
tpr <- function(y, delta, x, xtv=list(), z, ztv=list(), w, tis,
family = poisson(),
evstr = list(link = 5, v = 3),
alpha = NULL,
theta = NULL,
tidx = 1:length(tis),
kernstr = list(kern=1, poly=1, band=range(tis)/50),
... | /R/ee.R | no_license | cran/tpr | R | false | false | 3,487 | r | tpr <- function(y, delta, x, xtv=list(), z, ztv=list(), w, tis,
family = poisson(),
evstr = list(link = 5, v = 3),
alpha = NULL,
theta = NULL,
tidx = 1:length(tis),
kernstr = list(kern=1, poly=1, band=range(tis)/50),
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/unclean_column_names.R
\name{clean_column_names}
\alias{clean_column_names}
\title{A version of \code{\link[janitor:clean_names]{janitor::clean_names()}} that also cleans dplyr groups}
\usage{
clean_column_names(data)
}
\arguments{
\item{data... | /man/clean_column_names.Rd | permissive | 2DegreesInvesting/r2dii.utils | R | false | true | 939 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/unclean_column_names.R
\name{clean_column_names}
\alias{clean_column_names}
\title{A version of \code{\link[janitor:clean_names]{janitor::clean_names()}} that also cleans dplyr groups}
\usage{
clean_column_names(data)
}
\arguments{
\item{data... |
% Generated by roxygen2 (4.1.0.9000): do not edit by hand
% Please edit documentation in R/listEvents.R
\name{listEvents}
\alias{listEvents}
\title{Return listEvents data}
\usage{
listEvents(eventTypeIds, fromDate = (format(Sys.time(), "\%Y-\%m-\%dT\%TZ")),
toDate = (format(Sys.time() + 86400, "\%Y-\%m-\%dT\%TZ")),
... | /man/listEvents.Rd | no_license | FKotze/abettor | R | false | false | 2,985 | rd | % Generated by roxygen2 (4.1.0.9000): do not edit by hand
% Please edit documentation in R/listEvents.R
\name{listEvents}
\alias{listEvents}
\title{Return listEvents data}
\usage{
listEvents(eventTypeIds, fromDate = (format(Sys.time(), "\%Y-\%m-\%dT\%TZ")),
toDate = (format(Sys.time() + 86400, "\%Y-\%m-\%dT\%TZ")),
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_handling.R
\name{rmTradeOutliersUsingQuotes}
\alias{rmTradeOutliersUsingQuotes}
\title{Delete transactions with unlikely transaction prices}
\usage{
rmTradeOutliersUsingQuotes(tdata, qdata)
}
\arguments{
\item{tdata}{a data.table or xts ... | /man/rmTradeOutliersUsingQuotes.Rd | no_license | junfanz1/highfrequency | R | false | true | 1,065 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data_handling.R
\name{rmTradeOutliersUsingQuotes}
\alias{rmTradeOutliersUsingQuotes}
\title{Delete transactions with unlikely transaction prices}
\usage{
rmTradeOutliersUsingQuotes(tdata, qdata)
}
\arguments{
\item{tdata}{a data.table or xts ... |
library(SequentialDesign)
### Name: seq_wrapper
### Title: Execute Simulated Exact Sequential Analysis in Multi-Site
### Observational Database Studies
### Aliases: seq_wrapper
### Keywords: sequential
### ** Examples
#paramtest <- initialize.data(seed=8768, N=1, t0=0, tf=2, NStrata=2,
#strataRatio=c(0.2, 0.3, 0... | /data/genthat_extracted_code/SequentialDesign/examples/seq_wrapper.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 668 | r | library(SequentialDesign)
### Name: seq_wrapper
### Title: Execute Simulated Exact Sequential Analysis in Multi-Site
### Observational Database Studies
### Aliases: seq_wrapper
### Keywords: sequential
### ** Examples
#paramtest <- initialize.data(seed=8768, N=1, t0=0, tf=2, NStrata=2,
#strataRatio=c(0.2, 0.3, 0... |
#-----------------------------------------------------------------------------------------
#-----------------------------------------------------------------------------------------
#- make a climate envelope figure for E. tereticornis
#-----------------------------------------------------------------------------------... | /R/plot_map_spatial_climate.R | no_license | kashifmahmud/GREAT | R | false | false | 3,819 | r | #-----------------------------------------------------------------------------------------
#-----------------------------------------------------------------------------------------
#- make a climate envelope figure for E. tereticornis
#-----------------------------------------------------------------------------------... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/s3methods.R
\name{print.gformula_survival}
\alias{print.gformula_survival}
\alias{print.gformula_continuous_eof}
\alias{print.gformula_binary_eof}
\alias{summary.gformula}
\alias{print.summary.gformula}
\title{Print and summary methods for "g... | /man/print.gformula_survival.Rd | no_license | louisahsmith/gfoRmula | R | false | true | 4,636 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/s3methods.R
\name{print.gformula_survival}
\alias{print.gformula_survival}
\alias{print.gformula_continuous_eof}
\alias{print.gformula_binary_eof}
\alias{summary.gformula}
\alias{print.summary.gformula}
\title{Print and summary methods for "g... |
# This tests the multiple selection machinery.
# library(testthat); library(iSEE); source("setup_sce.R"); source("setup_other.R"); source("test_multi_select.R")
# Setting up a chain of plots.
memory <- list(
ReducedDimensionPlot(ColorByFeatureSource="RowDataTable1", ColorBy="Feature name"),
ColumnDataPlot(Colu... | /tests/testthat/test_multi_select.R | permissive | dcassol/iSEE | R | false | false | 8,707 | r | # This tests the multiple selection machinery.
# library(testthat); library(iSEE); source("setup_sce.R"); source("setup_other.R"); source("test_multi_select.R")
# Setting up a chain of plots.
memory <- list(
ReducedDimensionPlot(ColorByFeatureSource="RowDataTable1", ColorBy="Feature name"),
ColumnDataPlot(Colu... |
rm(list=ls())
library(rvest)
library(dplyr)
# ambil dbase links
load('hasil scrape.rda')
scrap = function(url){
data =
read_html(url) %>% {
tibble(
nama = html_nodes(.,'.css-x7lc0h') %>% html_text(),
harga = html_nodes(.,".css-c820vl") %>% html_text(),
seller = html_nodes(.,'.css... | /Bukan Infografis/Buku Bajakan/scrape.R | no_license | pudja2001/belajaR | R | false | false | 774 | r | rm(list=ls())
library(rvest)
library(dplyr)
# ambil dbase links
load('hasil scrape.rda')
scrap = function(url){
data =
read_html(url) %>% {
tibble(
nama = html_nodes(.,'.css-x7lc0h') %>% html_text(),
harga = html_nodes(.,".css-c820vl") %>% html_text(),
seller = html_nodes(.,'.css... |
## If not specified in DESCRIPTION
markdown_global_default <- FALSE
## Hacky global switch - this uses the fact that blocks are parsed
## one after the another, and that we set markdown on/off before each
## block
markdown_env <- new.env(parent = emptyenv())
markdown_on <- function(value = NULL) {
if (!is.null(val... | /R/markdown.R | no_license | mikmart/roxygen | R | false | false | 12,158 | r |
## If not specified in DESCRIPTION
markdown_global_default <- FALSE
## Hacky global switch - this uses the fact that blocks are parsed
## one after the another, and that we set markdown on/off before each
## block
markdown_env <- new.env(parent = emptyenv())
markdown_on <- function(value = NULL) {
if (!is.null(val... |
packageHandler <- function(packages, update_packages = TRUE, install_packages = TRUE) {
bad_packages <- list()
for (package in packages) {
if (install_packages) {
tryCatch({
find.package(package)
}, error = function(e) {
if (package %in% available.packages()) {
install.packages(pack... | /functions glm aic mod ave.R | no_license | arlionn/Brazil_state | R | false | false | 4,005 | r | packageHandler <- function(packages, update_packages = TRUE, install_packages = TRUE) {
bad_packages <- list()
for (package in packages) {
if (install_packages) {
tryCatch({
find.package(package)
}, error = function(e) {
if (package %in% available.packages()) {
install.packages(pack... |
### =========================================================================
### RestContainer objects
### -------------------------------------------------------------------------
###
### A means for accessing a URI using vector-like syntax.
###
setClass("RestContainer", representation(uri="RestUri"))
### - - - - -... | /R/RestContainer-class.R | no_license | lawremi/restfulr | R | false | false | 2,699 | r | ### =========================================================================
### RestContainer objects
### -------------------------------------------------------------------------
###
### A means for accessing a URI using vector-like syntax.
###
setClass("RestContainer", representation(uri="RestUri"))
### - - - - -... |
combine_regional_results = function(results, ids) {
if (is.factor(results$result[[1]]$observed)) {
results %>% dplyr::rowwise() %>% dplyr::do( {
tib1 <- tibble::tibble(
ROINUM=rep(.$id, length(.$result$observed)),
observed=.$result$observed,
pobserved=sapply(seq_along(.$resu... | /R/regional.R | no_license | sungoku/rMVPA | R | false | false | 3,245 | r |
combine_regional_results = function(results, ids) {
if (is.factor(results$result[[1]]$observed)) {
results %>% dplyr::rowwise() %>% dplyr::do( {
tib1 <- tibble::tibble(
ROINUM=rep(.$id, length(.$result$observed)),
observed=.$result$observed,
pobserved=sapply(seq_along(.$resu... |
rm(list=ls())
library(plotrix)
library(dplyr)
library(fields)
library(car)
library(reshape2)
library(plyr)
library(magrittr)
#Read in data
data <- read.csv("clean_data.csv")
#Check that variables are of correct types
str(data)
data$subject_number <- as.factor(data$subject_number)
#Need to re-set ordered factors
data$... | /4_calculate_effect_sizes.R | no_license | heatherkoff/Frontiers_Project | R | false | false | 11,819 | r | rm(list=ls())
library(plotrix)
library(dplyr)
library(fields)
library(car)
library(reshape2)
library(plyr)
library(magrittr)
#Read in data
data <- read.csv("clean_data.csv")
#Check that variables are of correct types
str(data)
data$subject_number <- as.factor(data$subject_number)
#Need to re-set ordered factors
data$... |
cacheSolve <- function(x,...)
{
inv <- x$getinverse()
if(!is.null(inv))
{
message("getting cached data")
return(inv)
}
data <- x$get()
inv <- solve(data,...)
x$setinverse(inv)
inv
} | /cacheSolve.R | no_license | yumingbd/ProgrammingAssignment2 | R | false | false | 221 | r | cacheSolve <- function(x,...)
{
inv <- x$getinverse()
if(!is.null(inv))
{
message("getting cached data")
return(inv)
}
data <- x$get()
inv <- solve(data,...)
x$setinverse(inv)
inv
} |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rc9.R
\name{rc9}
\alias{rc9}
\title{Rogers-Castro Migration Schedule}
\usage{
rc9(x, param = NULL, scaled = TRUE)
}
\arguments{
\item{x}{Vector of numbers}
\item{param}{List with names matching the parameters in the age schedule}
... | /man/rc9.Rd | no_license | JamesBorn/migest | R | false | true | 1,363 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rc9.R
\name{rc9}
\alias{rc9}
\title{Rogers-Castro Migration Schedule}
\usage{
rc9(x, param = NULL, scaled = TRUE)
}
\arguments{
\item{x}{Vector of numbers}
\item{param}{List with names matching the parameters in the age schedule}
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/user_functions.R
\name{VAF_plot}
\alias{VAF_plot}
\title{Variance accounted for plot}
\usage{
VAF_plot(
pca,
pca_data,
ndim = 1:5,
resample_ci = NULL,
style = "line",
colors = c("steelblue", "orange")
)
}
\arguments{
\item{pca}{Ob... | /man/VAF_plot.Rd | permissive | ATEspin/syndRomics-1 | R | false | true | 1,807 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/user_functions.R
\name{VAF_plot}
\alias{VAF_plot}
\title{Variance accounted for plot}
\usage{
VAF_plot(
pca,
pca_data,
ndim = 1:5,
resample_ci = NULL,
style = "line",
colors = c("steelblue", "orange")
)
}
\arguments{
\item{pca}{Ob... |
#'
#' H2O <-> R Communication and Utility Methods
#'
#' Collected here are the various methods used by the h2o-R package to communicate with the H2O
#' backend. There are methods for checking cluster health, polling, and inspecting objects in
#' the H2O store.
#' @import methods
#' @import RCurl
#' @importFrom graphics... | /h2o-r/h2o-package/R/communication.R | permissive | zxsted/h2o-3 | R | false | false | 29,296 | r | #'
#' H2O <-> R Communication and Utility Methods
#'
#' Collected here are the various methods used by the h2o-R package to communicate with the H2O
#' backend. There are methods for checking cluster health, polling, and inspecting objects in
#' the H2O store.
#' @import methods
#' @import RCurl
#' @importFrom graphics... |
library(configural)
### Name: wt_dist
### Title: Weighted descriptive statistics for a vector of numbers
### Aliases: wt_dist wt_mean wt_var
### Keywords: univar
### ** Examples
wt_dist(x = c(.1, .3, .5), wt = c(100, 200, 300))
wt_mean(x = c(.1, .3, .5), wt = c(100, 200, 300))
wt_var(x = c(.1, .3, .5), wt = c(100, ... | /data/genthat_extracted_code/configural/examples/wt_dist.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 334 | r | library(configural)
### Name: wt_dist
### Title: Weighted descriptive statistics for a vector of numbers
### Aliases: wt_dist wt_mean wt_var
### Keywords: univar
### ** Examples
wt_dist(x = c(.1, .3, .5), wt = c(100, 200, 300))
wt_mean(x = c(.1, .3, .5), wt = c(100, 200, 300))
wt_var(x = c(.1, .3, .5), wt = c(100, ... |
utils::globalVariables(c("yname", "treat", "treated", "x", "wname", "probs", "method", "treated", "untreated", "eachIter"))
####Cross-sectional QTE method using Firpo (2007)########
#' @title compute.ci.qte
#'
#' @description \code{compute.ci.qte} computes the QTE under selection
#' on observables
#'
#' @param qp QTEp... | /R/ciqte.R | no_license | Qisw/qte | R | false | false | 8,621 | r | utils::globalVariables(c("yname", "treat", "treated", "x", "wname", "probs", "method", "treated", "untreated", "eachIter"))
####Cross-sectional QTE method using Firpo (2007)########
#' @title compute.ci.qte
#'
#' @description \code{compute.ci.qte} computes the QTE under selection
#' on observables
#'
#' @param qp QTEp... |
#############################################################################################
######## R - Script for performing Cluster Analysis on energy consumption data##############
#############################################################################################
########## Please refere to https://gi... | /Slidify/apply_kmeans.R | no_license | hussnainahmed/Developing_Data_Products | R | false | false | 4,132 | r | #############################################################################################
######## R - Script for performing Cluster Analysis on energy consumption data##############
#############################################################################################
########## Please refere to https://gi... |
## libname alteration for user-wide installation...
getVersion <- function( libname="" ) {
##print( "getVersion" );
##print( libname );
if( libname=="" ) libname <- NULL;
return( installed.packages(lib.loc=libname)["pbatR","Version"] );
## if the above doesn't work, this is the previous
##return( inst... | /R/version.R | no_license | cran/pbatR | R | false | false | 1,992 | r | ## libname alteration for user-wide installation...
getVersion <- function( libname="" ) {
##print( "getVersion" );
##print( libname );
if( libname=="" ) libname <- NULL;
return( installed.packages(lib.loc=libname)["pbatR","Version"] );
## if the above doesn't work, this is the previous
##return( inst... |
#! /usr/bin/env Rscript
# Updating R packages
# ===================
#
# C. Marquardt, Darmstadt
#
# 29 May 2017
#
# Note: ROracle, if installed with Oracle Instant clients,
# requires the following:
#
# export OCI_LIB=$ORACLE_HOME
# unset ORACLE_HOME
#
# ...build the package ...
#
# ... | /R-packages-update.R | no_license | cmarquardt/R-packages | R | false | false | 2,378 | r | #! /usr/bin/env Rscript
# Updating R packages
# ===================
#
# C. Marquardt, Darmstadt
#
# 29 May 2017
#
# Note: ROracle, if installed with Oracle Instant clients,
# requires the following:
#
# export OCI_LIB=$ORACLE_HOME
# unset ORACLE_HOME
#
# ...build the package ...
#
# ... |
\name{labkey.security.createContainer}
\alias{labkey.security.createContainer}
\title{Creates a new container, which may be a project, folder, or workbook, on the server}
\description{
Create a new container, which may be a project, folder, or workbook, on the LabKey server with parameters to control
the containers nam... | /Rlabkey/man/labkey.security.createContainer.Rd | permissive | mpenhall-celgene/labkey-api-r | R | false | false | 1,980 | rd | \name{labkey.security.createContainer}
\alias{labkey.security.createContainer}
\title{Creates a new container, which may be a project, folder, or workbook, on the server}
\description{
Create a new container, which may be a project, folder, or workbook, on the LabKey server with parameters to control
the containers nam... |
library(dplyr)
ss.bounds <- readRDS("ss.bounds.rds")
alpha <- 0.025
method <- 'fm'
scenario <- 11
param <- 1
anal_type <- "mice"
ss <- ss.bounds%>%
dplyr::filter(method == "fm", scenario.id == scenario)
do_val <- 0.15
x1 <- parallel::mclapply(X = 1:10000,
mc.cores = parallel::detectCo... | /sim_pgms/fm/do15/2xcontH1_sc11_do15_mice.R | no_license | yuliasidi/nibinom_apply | R | false | false | 3,314 | r | library(dplyr)
ss.bounds <- readRDS("ss.bounds.rds")
alpha <- 0.025
method <- 'fm'
scenario <- 11
param <- 1
anal_type <- "mice"
ss <- ss.bounds%>%
dplyr::filter(method == "fm", scenario.id == scenario)
do_val <- 0.15
x1 <- parallel::mclapply(X = 1:10000,
mc.cores = parallel::detectCo... |
# Test Script on functions
library(raster)
library(rgdal)
library(gdalUtils)
library(gdistance)
library(gdata)
library(rgeos)
workDir = "G:/CUUATS/Sustainable Neighborhoods Toolkit/Scripts"
setwd(workDir)
source('BLTS_param.R')
source('BLTS_functions.R')
source('BLTS_score.R')
# Setting up boundary
boundary = Read_... | /BLTS_2.R | no_license | CUUATS/sn-raster | R | false | false | 1,040 | r | # Test Script on functions
library(raster)
library(rgdal)
library(gdalUtils)
library(gdistance)
library(gdata)
library(rgeos)
workDir = "G:/CUUATS/Sustainable Neighborhoods Toolkit/Scripts"
setwd(workDir)
source('BLTS_param.R')
source('BLTS_functions.R')
source('BLTS_score.R')
# Setting up boundary
boundary = Read_... |
{
# reads only the data for 02/01/2007 and 02/02/2007 from the original data text file into a Data Frame called power
power <- read.table("household_power_consumption.txt",sep=";", header=FALSE, skip=66637, nrows=2880)
# adds the right column/variables names to the power data frame
colnames(power) <- c("Date","T... | /Plot1.R | no_license | Arno1/ExData_Plotting1 | R | false | false | 724 | r | {
# reads only the data for 02/01/2007 and 02/02/2007 from the original data text file into a Data Frame called power
power <- read.table("household_power_consumption.txt",sep=";", header=FALSE, skip=66637, nrows=2880)
# adds the right column/variables names to the power data frame
colnames(power) <- c("Date","T... |
#' List training runs
#'
#' @param subset Logical expression indicating rows to keep (missing values are
#' taken as false). See [subset()].
#' @param order Columns to order by (defaults to run start time)
#' @param decreasing `TRUE` to use decreasing order (e.g. list most recent runs
#' first)
#' @param latest_n ... | /R/ls_runs.R | no_license | THE-R2/tfruns | R | false | false | 12,401 | r |
#' List training runs
#'
#' @param subset Logical expression indicating rows to keep (missing values are
#' taken as false). See [subset()].
#' @param order Columns to order by (defaults to run start time)
#' @param decreasing `TRUE` to use decreasing order (e.g. list most recent runs
#' first)
#' @param latest_n ... |
# Set global variable date_0
#' @param date ISO date to be used for date_0
set_date <- function(date) {
date_0 <<- date
}
#' Get lmic reports when using 3 parameters
#'
#' @param date ISO Date of reports
#'
#' @return data.frame of report ids and iso3c countries
#' @import orderly
#' @export
reports_3parameter_day <... | /R/reports.R | permissive | mrc-ide/global-lmic-meffs | R | false | false | 14,076 | r | # Set global variable date_0
#' @param date ISO date to be used for date_0
set_date <- function(date) {
date_0 <<- date
}
#' Get lmic reports when using 3 parameters
#'
#' @param date ISO Date of reports
#'
#' @return data.frame of report ids and iso3c countries
#' @import orderly
#' @export
reports_3parameter_day <... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zamien_na_duze.R
\name{zamien_na_duze}
\alias{zamien_na_duze}
\title{Wymiana malych zwierzat na duze}
\usage{
zamien_na_duze(zwierz, stado_tmp2, wartosc_w_krolikach_tmp2)
}
\arguments{
\item{zwierz}{przechowuje zwierze (konia, swinie lub krow... | /man/zamien_na_duze.Rd | no_license | PiotrRadzinski/SuperFarmerADiPR | R | false | true | 696 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zamien_na_duze.R
\name{zamien_na_duze}
\alias{zamien_na_duze}
\title{Wymiana malych zwierzat na duze}
\usage{
zamien_na_duze(zwierz, stado_tmp2, wartosc_w_krolikach_tmp2)
}
\arguments{
\item{zwierz}{przechowuje zwierze (konia, swinie lub krow... |
# ----------------------------------------------#
# Fast campus X 임경덕
# 데이터 분석 입문 올인원 패키지 Online
# 고등학교 수학으로 이해하는 통계와 데이터 분석 #
# --------------------------------------------- #
# Windows에서는 Ctrl+Enter
# mac에서는 Command+Enter
# -> 명령어가 한 줄씩 실행됩니다.
# Chapter2 --------------------------------------------... | /데이터분석입문/PART5/rscript/part3_H.R | no_license | dazzul94/fast_data_study | R | false | false | 3,163 | r | # ----------------------------------------------#
# Fast campus X 임경덕
# 데이터 분석 입문 올인원 패키지 Online
# 고등학교 수학으로 이해하는 통계와 데이터 분석 #
# --------------------------------------------- #
# Windows에서는 Ctrl+Enter
# mac에서는 Command+Enter
# -> 명령어가 한 줄씩 실행됩니다.
# Chapter2 --------------------------------------------... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eml.R
\name{eml_categorize_dataset}
\alias{eml_categorize_dataset}
\title{Categorize a dataset with an annotation}
\usage{
eml_categorize_dataset(doc, discipline)
}
\arguments{
\item{doc}{(emld) An EML document}
\item{discipline}{(character)... | /man/eml_categorize_dataset.Rd | permissive | NCEAS/arcticdatautils | R | false | true | 1,043 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/eml.R
\name{eml_categorize_dataset}
\alias{eml_categorize_dataset}
\title{Categorize a dataset with an annotation}
\usage{
eml_categorize_dataset(doc, discipline)
}
\arguments{
\item{doc}{(emld) An EML document}
\item{discipline}{(character)... |
# UI function for previous and next button components in study eval navbarPage
studyNavButtonButton <- function(id) {
ns <- NS(id)
return(fluidRow(
column(6, align="left", actionButton(ns("prevButton"), label = icon("angle-left"), class = "PrevButton")),
column(6, align="right", actionButton(ns(... | /Components/EvalPage/StudyNav/StudyNavButton/studyNavButton.R | no_license | sqwang94/READi | R | false | false | 841 | r | # UI function for previous and next button components in study eval navbarPage
studyNavButtonButton <- function(id) {
ns <- NS(id)
return(fluidRow(
column(6, align="left", actionButton(ns("prevButton"), label = icon("angle-left"), class = "PrevButton")),
column(6, align="right", actionButton(ns(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/7-Path.R
\name{path_lerp}
\alias{path_lerp}
\title{Linear Interpolation Path}
\usage{
path_lerp(start, end, n = 50)
}
\arguments{
\item{start}{starting \code{(row, col)} coordinate}
\item{end}{ending \code{(row, col)} coordinate}
\item{n}{n... | /man/path_lerp.Rd | no_license | cran/cursr | R | false | true | 887 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/7-Path.R
\name{path_lerp}
\alias{path_lerp}
\title{Linear Interpolation Path}
\usage{
path_lerp(start, end, n = 50)
}
\arguments{
\item{start}{starting \code{(row, col)} coordinate}
\item{end}{ending \code{(row, col)} coordinate}
\item{n}{n... |
Grid2Polygons <- function (grd, zcol=1, level=FALSE, at, cuts=20,
pretty=FALSE, xlim=NULL, ylim=NULL, ply=NULL) {
# Additional functions (subroutines)
# Find polygon nodes:
# Input: s - matrix; 2-column table giving start- and end-node
# index... | /Grid2Polygons/R/Grid2Polygons.R | no_license | ingted/R-Examples | R | false | false | 6,045 | r | Grid2Polygons <- function (grd, zcol=1, level=FALSE, at, cuts=20,
pretty=FALSE, xlim=NULL, ylim=NULL, ply=NULL) {
# Additional functions (subroutines)
# Find polygon nodes:
# Input: s - matrix; 2-column table giving start- and end-node
# index... |
#DCT2 vs myDCT2
source("Script.R")
library(dtt)
library(microbenchmark)
library(reshape2)
library(ggplot2)
max_n = 100
dim=c(1,seq(5, max_n, 5))
ldim=length(dim)
results = data.frame(myDCT2=numeric(ldim),
DCT2= numeric(ldim),
id = dim)
for(i in 1:ldim){
m=matrix(rexp(dim[i... | /Comparison.R | permissive | LidiaAlecci/CompressionDCT2DecompressionIDCT2 | R | false | false | 865 | r | #DCT2 vs myDCT2
source("Script.R")
library(dtt)
library(microbenchmark)
library(reshape2)
library(ggplot2)
max_n = 100
dim=c(1,seq(5, max_n, 5))
ldim=length(dim)
results = data.frame(myDCT2=numeric(ldim),
DCT2= numeric(ldim),
id = dim)
for(i in 1:ldim){
m=matrix(rexp(dim[i... |
#for a given SNP, calculate Cliff's Delta between the RNA and RIBO maternal / total ratio distributions
calculate_cliffs_delta = function(RNA.ratio, RIBO.ratio, num.sims) {
combined = c(RNA.ratio, RIBO.ratio)
c.delta = cliff.delta(combined, c(rep("RNA", num.sims), rep("RIBO", num.sims)))
result = c.delta$estimate... | /R/calculate_cliffs_delta.R | no_license | angelalica/ASTranslation | R | false | false | 726 | r | #for a given SNP, calculate Cliff's Delta between the RNA and RIBO maternal / total ratio distributions
calculate_cliffs_delta = function(RNA.ratio, RIBO.ratio, num.sims) {
combined = c(RNA.ratio, RIBO.ratio)
c.delta = cliff.delta(combined, c(rep("RNA", num.sims), rep("RIBO", num.sims)))
result = c.delta$estimate... |
#######################################################
#---script to create "spaghetti state" at random
#---from L1 session
#######################################################
#---required
require(ggplot2, quietly=T)
#---get map data for all 50 states
states<-map_data("state")
#---find all the states availab... | /scripts/L1-spaghetti_state.R | no_license | wj107/Model_the_learning | R | false | false | 837 | r | #######################################################
#---script to create "spaghetti state" at random
#---from L1 session
#######################################################
#---required
require(ggplot2, quietly=T)
#---get map data for all 50 states
states<-map_data("state")
#---find all the states availab... |
# Data yang digunakan shapefile / .shp
library("maptools")
library("sf")
library("tmap")
library("tmaptools")
library("leaflet")
library("spdep")
map <- readShapeSpatial("jatim.shp")
names(map)
plot(map, main = "Jawa Timur", axes = TRUE)
## PEMBOBOT SPASIAL ##
#bobot queen contiguity
queen.w <- poly2nb(m... | /Autokorelasi Spasial 2020.R | no_license | GANGGAANURAGA/Analisis-Spasial | R | false | false | 3,271 | r | # Data yang digunakan shapefile / .shp
library("maptools")
library("sf")
library("tmap")
library("tmaptools")
library("leaflet")
library("spdep")
map <- readShapeSpatial("jatim.shp")
names(map)
plot(map, main = "Jawa Timur", axes = TRUE)
## PEMBOBOT SPASIAL ##
#bobot queen contiguity
queen.w <- poly2nb(m... |
##' @method as_tibble phylo
##' @export
##' @importFrom dplyr full_join
##' @importFrom ape Ntip
##' @importFrom ape Nnode
as_tibble.phylo <- function(x, ...) {
phylo <- x
ntip <- Ntip(phylo)
N <- Nnode(phylo, internal.only=FALSE)
tip.label <- phylo[["tip.label"]]
edge <- phylo[["edge"]]
colnam... | /R/as-tibble.R | no_license | xiangpin/tidytree | R | false | false | 4,139 | r | ##' @method as_tibble phylo
##' @export
##' @importFrom dplyr full_join
##' @importFrom ape Ntip
##' @importFrom ape Nnode
as_tibble.phylo <- function(x, ...) {
phylo <- x
ntip <- Ntip(phylo)
N <- Nnode(phylo, internal.only=FALSE)
tip.label <- phylo[["tip.label"]]
edge <- phylo[["edge"]]
colnam... |
#! /usr/bin/Rscript --no-save --no-restore
.libPaths("/pica/h1/jingwang/R/x86_64-redhat-linux-gnu-library/3.2")
####this script is used to make a plot of diversity and Tajima's D separately in four northern, two middle and six southern populations
library(RColorBrewer)
library(dplyr)
library(ggplot2)
colors <- brewer.p... | /6-Positive selection/chr10_genome.sig.sweepfinder2.group_plot.R | permissive | Huyuxi08/GenomeBiology-2018-PhotoperiodLocalAdaptation | R | false | false | 6,911 | r | #! /usr/bin/Rscript --no-save --no-restore
.libPaths("/pica/h1/jingwang/R/x86_64-redhat-linux-gnu-library/3.2")
####this script is used to make a plot of diversity and Tajima's D separately in four northern, two middle and six southern populations
library(RColorBrewer)
library(dplyr)
library(ggplot2)
colors <- brewer.p... |
library(shiny)
library(shinythemes)
library(markdown)
library(knitr)
library(curl)
library(ggplot2)
library(dplyr)
library(leaflet)
library(reshape2)
library(NCmisc)
#####
# loading and naming the files into data.frames
# setting the working directory is not neccesary, unless you want to check the data ... | /app.R | no_license | bogind/proj1_Dman | R | false | false | 22,737 | r | library(shiny)
library(shinythemes)
library(markdown)
library(knitr)
library(curl)
library(ggplot2)
library(dplyr)
library(leaflet)
library(reshape2)
library(NCmisc)
#####
# loading and naming the files into data.frames
# setting the working directory is not neccesary, unless you want to check the data ... |
#
# look the README.md for an explanation on how I read the data
#
## now ill be Reading Relevent data
data <- read.table('household_power_consumption.txt', header = T, sep = ';', stringsAsFactors = F, na.strings = '?', skip = 66636, nrow = 2880)
colnames(data) <- c('Date', 'Time', 'Global_active_power', 'Global_rea... | /plot1.R | no_license | pedropabloma/ExData_Plotting1 | R | false | false | 690 | r | #
# look the README.md for an explanation on how I read the data
#
## now ill be Reading Relevent data
data <- read.table('household_power_consumption.txt', header = T, sep = ';', stringsAsFactors = F, na.strings = '?', skip = 66636, nrow = 2880)
colnames(data) <- c('Date', 'Time', 'Global_active_power', 'Global_rea... |
/R/[기초] R을 이용한 데이터처리 & 분석 실무/4_데이터조작2_code.R | no_license | GaYoung87/Data-Science | R | false | false | 770 | r | ||
library(testthat)
source("../R/ccf21.R")
source("../R/printccf21.R")
test_that("print.ccf21", {
# non-stationary result: all r = 1
# note: for some unknown reason print.default prints only
# as much decimals as needed. It ignores 'digits'. It
# does the final printing.
result <- ccf( 1:10, 1:10, shiftactio... | /test/print_test.R | permissive | SigurdJanson/ccf21 | R | false | false | 1,317 | r | library(testthat)
source("../R/ccf21.R")
source("../R/printccf21.R")
test_that("print.ccf21", {
# non-stationary result: all r = 1
# note: for some unknown reason print.default prints only
# as much decimals as needed. It ignores 'digits'. It
# does the final printing.
result <- ccf( 1:10, 1:10, shiftactio... |
#' @title
#' Parse personal identity numbers to ABS format
#'
#' @description
#' \code{as.pin} Converts personal identity numbers of different formats to standard (ABS)
#' pin format \code{YYYYMMDDNNNC} where \code{YYYYMMDD} is the date of birth, \code{NNN}
#' is the birth number and \code{C} is the
#' control numbe... | /R/pin.R | no_license | cran/sweidnumbr | R | false | false | 16,205 | r | #' @title
#' Parse personal identity numbers to ABS format
#'
#' @description
#' \code{as.pin} Converts personal identity numbers of different formats to standard (ABS)
#' pin format \code{YYYYMMDDNNNC} where \code{YYYYMMDD} is the date of birth, \code{NNN}
#' is the birth number and \code{C} is the
#' control numbe... |
#!/usr/bin/env Rscript
args<-commandArgs(TRUE)
dat_filename = args[1]
pdf_filename = paste(dat_filename, ".plot.pdf", sep='')
pdf(pdf_filename)
data = read.table(dat_filename, com='', header=T, row.names=1)
plot(data$E.N50, xlab="Pct. Ex.", ylab="N50 contig length", col='blue', t='b')
write(cat("ExN50 data plotted a... | /trinity/resources/trinityrnaseq/util/misc/plot_ExN50_statistic.Rscript | permissive | sammyjava/DNAnexus | R | false | false | 399 | rscript | #!/usr/bin/env Rscript
args<-commandArgs(TRUE)
dat_filename = args[1]
pdf_filename = paste(dat_filename, ".plot.pdf", sep='')
pdf(pdf_filename)
data = read.table(dat_filename, com='', header=T, row.names=1)
plot(data$E.N50, xlab="Pct. Ex.", ylab="N50 contig length", col='blue', t='b')
write(cat("ExN50 data plotted a... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plug-and-play.R
\name{add_meas_BrS_param_NoNest_Slice_jags}
\alias{add_meas_BrS_param_NoNest_Slice_jags}
\title{add parameters for a BrS measurement slice among cases and controls (conditional independence)}
\usage{
add_meas_BrS_param_NoNest_... | /man/add_meas_BrS_param_NoNest_Slice_jags.Rd | permissive | wendylin23/baker | R | false | true | 2,041 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plug-and-play.R
\name{add_meas_BrS_param_NoNest_Slice_jags}
\alias{add_meas_BrS_param_NoNest_Slice_jags}
\title{add parameters for a BrS measurement slice among cases and controls (conditional independence)}
\usage{
add_meas_BrS_param_NoNest_... |
library(shiny)
library(dygraphs)
library(datasets)
# Define the UI
ui <- shiny::shinyUI(fluidPage(
titlePanel("Predicted Deaths from Lung Disease (UK)"),
sidebarLayout(
sidebarPanel(
numericInput("months", label = "Months to Predict",
value = 72, min = 12, max = 144, step = 12)... | /app_dygraphs.R | no_license | algoquant/presentations | R | false | false | 1,207 | r | library(shiny)
library(dygraphs)
library(datasets)
# Define the UI
ui <- shiny::shinyUI(fluidPage(
titlePanel("Predicted Deaths from Lung Disease (UK)"),
sidebarLayout(
sidebarPanel(
numericInput("months", label = "Months to Predict",
value = 72, min = 12, max = 144, step = 12)... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/processing.R
\name{growthinterval}
\alias{growthinterval}
\title{growth over intervals}
\usage{
growthinterval(volumematrix = micematrix, datecolumn = col)
}
\arguments{
\item{volumematrix}{matrix of the format: rows = mice, columns = dates,
... | /man/growthinterval.Rd | permissive | CJBgon/RVivo | R | false | true | 617 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/processing.R
\name{growthinterval}
\alias{growthinterval}
\title{growth over intervals}
\usage{
growthinterval(volumematrix = micematrix, datecolumn = col)
}
\arguments{
\item{volumematrix}{matrix of the format: rows = mice, columns = dates,
... |
# Place the data file "household_power_consumption.txt" in the working directory
file <- "household_power_consumption.txt"
data <- read.table(file, sep = ";", na.strings = "?", skip = 66637, nrows = 2880, colClasses = c(rep("character", 2), rep("numeric", 7)))
dataH <- read.table(file, sep = ";", na.strings = "?", head... | /plot2.R | no_license | kc-chiu/ExData_Plotting1 | R | false | false | 798 | r | # Place the data file "household_power_consumption.txt" in the working directory
file <- "household_power_consumption.txt"
data <- read.table(file, sep = ";", na.strings = "?", skip = 66637, nrows = 2880, colClasses = c(rep("character", 2), rep("numeric", 7)))
dataH <- read.table(file, sep = ";", na.strings = "?", head... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Penalty-class.R
\name{Penalty-class}
\alias{Penalty-class}
\alias{Penalty}
\title{Penalty class}
\description{
This class is used to represent penalties used in optimization.
\strong{Only experts should use the fields and methods for this cla... | /man/Penalty-class.Rd | no_license | prioritizr/prioritizr | R | false | true | 4,286 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Penalty-class.R
\name{Penalty-class}
\alias{Penalty-class}
\alias{Penalty}
\title{Penalty class}
\description{
This class is used to represent penalties used in optimization.
\strong{Only experts should use the fields and methods for this cla... |
#' Create a data frame of datasets that your log in can download
#'
#' DHS datasets that can be downloaded
#' @param config Object of class `rdhs_config` as produced by `read_rdhs_config`
#' that must contain a valid `email`, `project` and `password`.
#' @param datasets_api_results Data.table for the api results for ... | /R/authentication.R | no_license | tXiao95/rdhs | R | false | false | 17,517 | r | #' Create a data frame of datasets that your log in can download
#'
#' DHS datasets that can be downloaded
#' @param config Object of class `rdhs_config` as produced by `read_rdhs_config`
#' that must contain a valid `email`, `project` and `password`.
#' @param datasets_api_results Data.table for the api results for ... |
`selDepth`<- function(x= NULL, notAt= NULL, at= NULL, baseline= NULL, out= "df", ties=TRUE){
if(is.null(x)){
stop("Vector of allele ratios is null!")
}
if(min(x)<0 | max(x)>1){
warning("\nFound allele ratios below 0 or above 1!")
}
if(!is.null(notAt)){
if(length(notAt)>le... | /R/selDepth.R | no_license | cran/LGS | R | false | false | 1,676 | r | `selDepth`<- function(x= NULL, notAt= NULL, at= NULL, baseline= NULL, out= "df", ties=TRUE){
if(is.null(x)){
stop("Vector of allele ratios is null!")
}
if(min(x)<0 | max(x)>1){
warning("\nFound allele ratios below 0 or above 1!")
}
if(!is.null(notAt)){
if(length(notAt)>le... |
source("~/Dropbox (Instream)/Projects/62 - PIT R & D/3 - Analyses/PITR/pit_data_function.R")
#Number of unique tag codes detected on each reader - this would be the NULL option
num_codes <- function(dat){
ddply(dat, c("reader"), function(x){
num_codes <- length(unique(x$tag_code))
data.frame(num_codes)... | /temporal_resolution_base_function.R | no_license | joelmsharding/PITR | R | false | false | 2,722 | r | source("~/Dropbox (Instream)/Projects/62 - PIT R & D/3 - Analyses/PITR/pit_data_function.R")
#Number of unique tag codes detected on each reader - this would be the NULL option
num_codes <- function(dat){
ddply(dat, c("reader"), function(x){
num_codes <- length(unique(x$tag_code))
data.frame(num_codes)... |
library(shiny)
# Plotting
library(ggplot2)
library(rCharts)
library(ggvis)
# Data processing libraries
library(data.table)
library(reshape2)
library(dplyr)
# Required by Markdown
library(markdown)
# shinyapps.io requirement
library(mapproj)
library(maps)
library(maptools)
# Load helper functions
source("helpers.R... | /server.R | no_license | bgrappai/dataproducts | R | false | false | 2,142 | r | library(shiny)
# Plotting
library(ggplot2)
library(rCharts)
library(ggvis)
# Data processing libraries
library(data.table)
library(reshape2)
library(dplyr)
# Required by Markdown
library(markdown)
# shinyapps.io requirement
library(mapproj)
library(maps)
library(maptools)
# Load helper functions
source("helpers.R... |
## This file contains the analysis of Tourism data using Hierarchical forecasting methods.
## Data form a hierarchy with 3 levels - 8-states, -Zones, -Regions.
## Length of data expands from Jan-1998 to Dec-2017
# Here we fit univariate ARIMA models for the log transformed data
# The back transformed data will be bi... | /Application-R/Application-TourismData/Bias_correction/BoxCoxTrans/Trash/TourismForecasting_BoxCoxTrans_BiasAdjust_126-140.R | no_license | PuwasalaG/Hierarchical-forecast-reconciliation | R | false | false | 13,566 | r | ## This file contains the analysis of Tourism data using Hierarchical forecasting methods.
## Data form a hierarchy with 3 levels - 8-states, -Zones, -Regions.
## Length of data expands from Jan-1998 to Dec-2017
# Here we fit univariate ARIMA models for the log transformed data
# The back transformed data will be bi... |
testlist <- list(type = 1L, z = 3.77715251020571e-312)
result <- do.call(esreg::G1_fun,testlist)
str(result) | /esreg/inst/testfiles/G1_fun/libFuzzer_G1_fun/G1_fun_valgrind_files/1609892260-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 108 | r | testlist <- list(type = 1L, z = 3.77715251020571e-312)
result <- do.call(esreg::G1_fun,testlist)
str(result) |
\name{expokit_dgpadm_Qmat2_prebyte}
\alias{expokit_dgpadm_Qmat2_prebyte}
\title{A version of expokit_dgpadm_Qmat to byte-compile}
\usage{
expokit_dgpadm_Qmat2_prebyte(times, Qmat,
transpose_needed = TRUE)
}
\arguments{
\item{times}{one or more time values to exponentiate by}
\item{Qmat}{an input Q transition... | /man/expokit_dgpadm_Qmat2_prebyte.Rd | no_license | pedroreys/BioGeoBEARS | R | false | false | 1,597 | rd | \name{expokit_dgpadm_Qmat2_prebyte}
\alias{expokit_dgpadm_Qmat2_prebyte}
\title{A version of expokit_dgpadm_Qmat to byte-compile}
\usage{
expokit_dgpadm_Qmat2_prebyte(times, Qmat,
transpose_needed = TRUE)
}
\arguments{
\item{times}{one or more time values to exponentiate by}
\item{Qmat}{an input Q transition... |
## Import libraries---
library("tidyverse")
library('plyr')
library('dplyr')
library('lubridate')
library('stringr')
library("data.table")
library("ggpubr")
library("finalfit")
setwd(here::here("output"))
df.19 <- readRDS("combined_c1_2019.rds")
set.seed(777)
df0_1pat.19 <- df.19 %>% dplyr::group_by(patient_id) %>... | /analysis/descriptive/cohort_1_baseline_table_pat_one.R | permissive | opensafely/amr-uom-brit | R | false | false | 2,801 | r | ## Import libraries---
library("tidyverse")
library('plyr')
library('dplyr')
library('lubridate')
library('stringr')
library("data.table")
library("ggpubr")
library("finalfit")
setwd(here::here("output"))
df.19 <- readRDS("combined_c1_2019.rds")
set.seed(777)
df0_1pat.19 <- df.19 %>% dplyr::group_by(patient_id) %>... |
# PPP Correlations
## Bowen J Fung, 2016
require(Hmisc)
require(corrgram)
require(ggplot2)
require(xtable)
require(ppcor)
source("/Users/Bowen/Documents/R/misc functions/corrstars.R")
source("/Users/Bowen/Documents/R/misc functions/xtable.decimal.R")
# Load behavioural data
timeData <- read.csv("~/Documents/R/PPP/tim... | /R/PPP/PPP correlations.R | no_license | Decision-Neuroscience-Lab/boPro | R | false | false | 1,247 | r | # PPP Correlations
## Bowen J Fung, 2016
require(Hmisc)
require(corrgram)
require(ggplot2)
require(xtable)
require(ppcor)
source("/Users/Bowen/Documents/R/misc functions/corrstars.R")
source("/Users/Bowen/Documents/R/misc functions/xtable.decimal.R")
# Load behavioural data
timeData <- read.csv("~/Documents/R/PPP/tim... |
# 1 Reading the file ----
p <- read.table(file="household_power_consumption.txt", sep = ";")
p[] <- lapply(p, as.character)
names <- as.character(p[1,])
p <- p[-1,]
colnames(p) <- names
# 2 Subseting the dataset
p2 <- p[p$Date == "1/2/2007" | p$Date == "2/2/2007", ]
# 3 Asigning NA to missing values recorded as: "?"
... | /plot1.R | no_license | alfredojavier55/Exploratory_Analisys | R | false | false | 981 | r | # 1 Reading the file ----
p <- read.table(file="household_power_consumption.txt", sep = ";")
p[] <- lapply(p, as.character)
names <- as.character(p[1,])
p <- p[-1,]
colnames(p) <- names
# 2 Subseting the dataset
p2 <- p[p$Date == "1/2/2007" | p$Date == "2/2/2007", ]
# 3 Asigning NA to missing values recorded as: "?"
... |
/Suicide rates/suiciderates.R | no_license | victoraccete/Data_science_for_business | R | false | false | 1,428 | r | ||
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/revscale.R
\name{revScale}
\alias{revScale}
\title{Potentially reverse and rescale variables}
\usage{
revScale(var, reverse = F, to = c(0, 1))
}
\arguments{
\item{var}{A variable or a selection of variables}
\item{reverse}{Logical, defaults ... | /man/revScale.Rd | permissive | sjkiss/skpersonal | R | false | true | 1,375 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/revscale.R
\name{revScale}
\alias{revScale}
\title{Potentially reverse and rescale variables}
\usage{
revScale(var, reverse = F, to = c(0, 1))
}
\arguments{
\item{var}{A variable or a selection of variables}
\item{reverse}{Logical, defaults ... |
dummy_proxy_url <- "http://user:pwd@proxy.info:5656"
dummy_env_var_lc <- c(http_proxy = dummy_proxy_url,
https_proxy = dummy_proxy_url,
no_proxy = ".dummy.domain")
dummy_env_var_uc <- purrr::set_names(dummy_env_var_lc, toupper(names(dummy_env_var_lc)))
dummy_env_var <- c(d... | /tests/testthat/helper-dummy-vars.R | permissive | cderv/proxyconfig | R | false | false | 355 | r | dummy_proxy_url <- "http://user:pwd@proxy.info:5656"
dummy_env_var_lc <- c(http_proxy = dummy_proxy_url,
https_proxy = dummy_proxy_url,
no_proxy = ".dummy.domain")
dummy_env_var_uc <- purrr::set_names(dummy_env_var_lc, toupper(names(dummy_env_var_lc)))
dummy_env_var <- c(d... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 1726
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 1726
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/query02_query36_1344/query02_query36_1344.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 707 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 1726
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 1726
c
c Input Parameter (command line, file):
c input filename QBFLIB/Jordan-Kaiser/reduction-finding-full-set-params-k1c3n4/q... |
\name{LIHNPSD_plot_std4gr}
\alias{LIHNPSD_plot_std4gr}
\title{
Standard utility to plot a 4-chart graph on a given data set and PSD fit
}
\description{
Standard utility to plot a 4-chart graph on a given data set and PSD fit.
}
\usage{
LIHNPSD_plot_std4gr(th, dt, EPS, file = NA)
}
\arguments{
\item{th... | /man/LIHNPSD_plot_std4gr.Rd | no_license | cran/LIHNPSD | R | false | false | 615 | rd | \name{LIHNPSD_plot_std4gr}
\alias{LIHNPSD_plot_std4gr}
\title{
Standard utility to plot a 4-chart graph on a given data set and PSD fit
}
\description{
Standard utility to plot a 4-chart graph on a given data set and PSD fit.
}
\usage{
LIHNPSD_plot_std4gr(th, dt, EPS, file = NA)
}
\arguments{
\item{th... |
# dplyr.R
# source: http://cran.rstudio.com/web/packages/dplyr/vignettes/introduction.html
# next generation of plyr - Hadley Wickham's implementation of "grammar of data manipulation"
# where ggplot2 implemented "grammar of graphics"
# * plyr primarily designed to provide more consistent api over same surface area as ... | /dplyr.R | no_license | jonygeta/DATA607WEEK5ASSIGNMENTBYYOHANNEDDEBOCH | R | false | false | 5,908 | r | # dplyr.R
# source: http://cran.rstudio.com/web/packages/dplyr/vignettes/introduction.html
# next generation of plyr - Hadley Wickham's implementation of "grammar of data manipulation"
# where ggplot2 implemented "grammar of graphics"
# * plyr primarily designed to provide more consistent api over same surface area as ... |
context("carre")
test_that("longueur du vecteur", {
x <- c(5,7,8,2)
res <- squared(x)
expect_length(res,4)
})
| /tests/testthat/test_squared.R | no_license | ClemMap/cartography | R | false | false | 119 | r |
context("carre")
test_that("longueur du vecteur", {
x <- c(5,7,8,2)
res <- squared(x)
expect_length(res,4)
})
|
library(jsonlite)
library(rjson)
library(tidyverse)
##jsonLink <- "http://ec2-35-173-124-198.compute-1.amazonaws.com/s3/initialization/fileStatus/singleFileStatus.php"
##jsonFile <- read_json("C:/Users/Dharam/Downloads/MDCAS Files/LabelComputationFromJSON/labels.json", simplifyVector = TRUE)
jsonFile2 <- fromJSON... | /readJSONFile.R | no_license | adityaponnada/JSON-annotation-parser | R | false | false | 1,010 | r | library(jsonlite)
library(rjson)
library(tidyverse)
##jsonLink <- "http://ec2-35-173-124-198.compute-1.amazonaws.com/s3/initialization/fileStatus/singleFileStatus.php"
##jsonFile <- read_json("C:/Users/Dharam/Downloads/MDCAS Files/LabelComputationFromJSON/labels.json", simplifyVector = TRUE)
jsonFile2 <- fromJSON... |
########################################################################################
## Install required packages for Advanced R course section from CRAN and Bioconductor
required_packages <- c('reshape2','ggplot2','dplyr','gplots','RColorBrewer', 'limma', 'Biobase', 'bioDist', 'genefilter', 'VennDiagram', 'UpSetR'... | /Program6_Data Viz/installation/Install required packages_P6-DataViz.R | no_license | MaratKasakin/MayInstitute2017 | R | false | false | 1,103 | r | ########################################################################################
## Install required packages for Advanced R course section from CRAN and Bioconductor
required_packages <- c('reshape2','ggplot2','dplyr','gplots','RColorBrewer', 'limma', 'Biobase', 'bioDist', 'genefilter', 'VennDiagram', 'UpSetR'... |
data <- npk
fit <- aov(yield ~ N*P, data)
summary(fit)
fit2 <- aov(yield ~ N+P+K, data)
summary(fit2)
| /aov_npk.R | no_license | anastasiiakhil/Data_analysis | R | false | false | 103 | r | data <- npk
fit <- aov(yield ~ N*P, data)
summary(fit)
fit2 <- aov(yield ~ N+P+K, data)
summary(fit2)
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gmail_objects.R
\name{ListThreadsResponse}
\alias{ListThreadsResponse}
\title{ListThreadsResponse Object}
\usage{
ListThreadsResponse(nextPageToken = NULL, resultSizeEstimate = NULL,
threads = NULL)
}
\arguments{
\item{nextPageToken}{Page t... | /googlegmailv1.auto/man/ListThreadsResponse.Rd | permissive | GVersteeg/autoGoogleAPI | R | false | true | 647 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gmail_objects.R
\name{ListThreadsResponse}
\alias{ListThreadsResponse}
\title{ListThreadsResponse Object}
\usage{
ListThreadsResponse(nextPageToken = NULL, resultSizeEstimate = NULL,
threads = NULL)
}
\arguments{
\item{nextPageToken}{Page t... |
\name{B2ZM_IMIS}
\alias{B2ZM_IMIS}
\title{Bayesian Two-Zone Models: using IMIS sampler}
\description{
\code{B2ZM_IMIS} obtains random samples from the posterior distribution of the parameters and exposure concentrations for the Bayesian two-zone model proposed by Zhang et al. (2009) using the Incremental Mixture Im... | /man/B2ZM_IMIS.Rd | no_license | cran/B2Z | R | false | false | 9,942 | rd | \name{B2ZM_IMIS}
\alias{B2ZM_IMIS}
\title{Bayesian Two-Zone Models: using IMIS sampler}
\description{
\code{B2ZM_IMIS} obtains random samples from the posterior distribution of the parameters and exposure concentrations for the Bayesian two-zone model proposed by Zhang et al. (2009) using the Incremental Mixture Im... |
# Read all datasets from local computer
Claims_cleaned <- read.csv("G:/My Drive/DSBA 6100 Big Data/Group Project/Midterm Due 11-4/Claims_cleaned.csv", stringsAsFactors=FALSE)
Trans.Part.1 <- read.csv("G:/My Drive/DSBA 6100 Big Data/Group Project/Midterm Due 11-4/Trans Part 1.csv", stringsAsFactors=FALSE)
Trans.Part.2 <... | /claims.R | no_license | canshot/Stat | R | false | false | 1,933 | r | # Read all datasets from local computer
Claims_cleaned <- read.csv("G:/My Drive/DSBA 6100 Big Data/Group Project/Midterm Due 11-4/Claims_cleaned.csv", stringsAsFactors=FALSE)
Trans.Part.1 <- read.csv("G:/My Drive/DSBA 6100 Big Data/Group Project/Midterm Due 11-4/Trans Part 1.csv", stringsAsFactors=FALSE)
Trans.Part.2 <... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/theft.R
\docType{package}
\name{theft}
\alias{theft}
\alias{theft-package}
\title{Tools for Handling Extraction of Features from Time-series}
\description{
Tools for Handling Extraction of Features from Time-series
}
| /man/theft.Rd | permissive | hendersontrent/theft | R | false | true | 295 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/theft.R
\docType{package}
\name{theft}
\alias{theft}
\alias{theft-package}
\title{Tools for Handling Extraction of Features from Time-series}
\description{
Tools for Handling Extraction of Features from Time-series
}
|
testlist <- list(doy = c(-Inf, 0), latitude = c(-6.93132091139805e-107, 1.86807199752012e+112, -Inf, 2.00994342527714e-162, 1.81541609400943e-79, 2.31972938441834e+101, 2.3317908961407e-93, NaN, -1.51345790188863e+21, 1.44942408802595e-285, -1.72131968218895e+83, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+... | /meteor/inst/testfiles/ET0_ThornthwaiteWilmott/AFL_ET0_ThornthwaiteWilmott/ET0_ThornthwaiteWilmott_valgrind_files/1615832141-test.R | no_license | akhikolla/updatedatatype-list3 | R | false | false | 421 | r | testlist <- list(doy = c(-Inf, 0), latitude = c(-6.93132091139805e-107, 1.86807199752012e+112, -Inf, 2.00994342527714e-162, 1.81541609400943e-79, 2.31972938441834e+101, 2.3317908961407e-93, NaN, -1.51345790188863e+21, 1.44942408802595e-285, -1.72131968218895e+83, 0), temp = c(8.5728629954997e-312, 1.56898424065867e+... |
# xgbImpute
#
# Imputation using XGBoosted
# Fill each column by treating it as a regression problem. For each
# column i, use XGboost to predict i using all other
# columns except i.
#
# @param raw.data a data frame where each row is a different sample
# @param learner the base learner that the xgboost will use, incl... | /R/xgbImpute.R | no_license | YuAirLab/xgbImpute | R | false | false | 2,444 | r | # xgbImpute
#
# Imputation using XGBoosted
# Fill each column by treating it as a regression problem. For each
# column i, use XGboost to predict i using all other
# columns except i.
#
# @param raw.data a data frame where each row is a different sample
# @param learner the base learner that the xgboost will use, incl... |
##Author: AnyaMit
##Date:12/27/2015
##Purpose: Project2: Exploratory Data Analysis - Data Science Specialization
setwd("C:/Users/Anya/Documents/EDA/Project2")
print("Make sure you download the data into your working directory first")
##reading in the data -
#NEI <- readRDS("summarySCC_PM25.rds")
#SCC <- readRDS("So... | /plot1.R | no_license | AnyaMit/EDA_Assignment2 | R | false | false | 1,052 | r | ##Author: AnyaMit
##Date:12/27/2015
##Purpose: Project2: Exploratory Data Analysis - Data Science Specialization
setwd("C:/Users/Anya/Documents/EDA/Project2")
print("Make sure you download the data into your working directory first")
##reading in the data -
#NEI <- readRDS("summarySCC_PM25.rds")
#SCC <- readRDS("So... |
setwd("C:/Users/Pranav/Desktop/Piyusha")
#Import Sales Data
data = read.table('R/Train_UWu5bXk.txt', header = T, sep = ",")
#Choose smaller data of item type, sales and MRP
new_data = data.frame(data$Item_Type,data$Item_MRP,data$Item_Outlet_Sales)
colnames(new_data) = c("Type","MRP","Sales")
head(new_data)
#... | /partition.R | no_license | KPIYUSHA7/Data-Science-and-ML | R | false | false | 1,538 | r | setwd("C:/Users/Pranav/Desktop/Piyusha")
#Import Sales Data
data = read.table('R/Train_UWu5bXk.txt', header = T, sep = ",")
#Choose smaller data of item type, sales and MRP
new_data = data.frame(data$Item_Type,data$Item_MRP,data$Item_Outlet_Sales)
colnames(new_data) = c("Type","MRP","Sales")
head(new_data)
#... |
testlist <- list(n = 170590208L)
result <- do.call(breakfast:::setBitNumber,testlist)
str(result) | /breakfast/inst/testfiles/setBitNumber/libFuzzer_setBitNumber/setBitNumber_valgrind_files/1609960585-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 97 | r | testlist <- list(n = 170590208L)
result <- do.call(breakfast:::setBitNumber,testlist)
str(result) |
#
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define UI for application that draws a histogram
ui <- shinyUI(fluidPage(
titlePanel("Centra... | /app.R | no_license | meilan0514/597A_HW6_MeilanChen | R | false | false | 2,299 | r | #
# This is a Shiny web application. You can run the application by clicking
# the 'Run App' button above.
#
# Find out more about building applications with Shiny here:
#
# http://shiny.rstudio.com/
#
library(shiny)
# Define UI for application that draws a histogram
ui <- shinyUI(fluidPage(
titlePanel("Centra... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zchunk_L270.limits_USA.R
\name{module_gcamusa_L270.limits_USA}
\alias{module_gcamusa_L270.limits_USA}
\title{module_gcamusa_L270.limits_USA}
\usage{
module_gcamusa_L270.limits_USA(command, ...)
}
\arguments{
\item{command}{API command to exec... | /man/module_gcamusa_L270.limits_USA.Rd | permissive | JGCRI/gcamdata | R | false | true | 1,302 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/zchunk_L270.limits_USA.R
\name{module_gcamusa_L270.limits_USA}
\alias{module_gcamusa_L270.limits_USA}
\title{module_gcamusa_L270.limits_USA}
\usage{
module_gcamusa_L270.limits_USA(command, ...)
}
\arguments{
\item{command}{API command to exec... |
#This list opens the files with the posterior probabilities
#for the training data and saves all the results for each database
#in a list.
#Each element in the list is a matrix that corresponds to one series in the database.
#Each row of the matrix corresponds to a different earlyness value.
numbd <- 4
probabilit... | /Code/Train.probabilities/formatting.probabilitiestrain.R | no_license | Usue/EarlyClassification | R | false | false | 1,208 | r | #This list opens the files with the posterior probabilities
#for the training data and saves all the results for each database
#in a list.
#Each element in the list is a matrix that corresponds to one series in the database.
#Each row of the matrix corresponds to a different earlyness value.
numbd <- 4
probabilit... |
library(dashCoreComponents)
library(dashHtmlComponents)
library(dash)
utils <- new.env()
source('dash_docs/utils.R', local=utils)
examples <- list(
radioitemsproptable = utils$LoadExampleCode('dash_docs/chapters/dash_core_components/RadioItems/examples/radioitemsproptable.R')
)
layout = htmlDiv(list(
htmlH3('Rad... | /dash_docs/chapters/dash_core_components/RadioItems/index.R | permissive | plotly/dash-docs | R | false | false | 482 | r | library(dashCoreComponents)
library(dashHtmlComponents)
library(dash)
utils <- new.env()
source('dash_docs/utils.R', local=utils)
examples <- list(
radioitemsproptable = utils$LoadExampleCode('dash_docs/chapters/dash_core_components/RadioItems/examples/radioitemsproptable.R')
)
layout = htmlDiv(list(
htmlH3('Rad... |
# Errors Handling
# sqrt('any string')
# print('will this line be executed?')
"
sqrt('any string') will throw an error.
if you run the above two lines, both will run. Error will not stop the script.
Becuase R will run each line separately.
However, if source the whole file. The script will stop at the first error.
"
... | /notes/14-try-catch.R | no_license | alhoqbani/r-practice | R | false | false | 970 | r | # Errors Handling
# sqrt('any string')
# print('will this line be executed?')
"
sqrt('any string') will throw an error.
if you run the above two lines, both will run. Error will not stop the script.
Becuase R will run each line separately.
However, if source the whole file. The script will stop at the first error.
"
... |
## Example usage with a square matrix:
## x<-matrix(c(3,2,4,16),2,2)
## y <- makeCacheMatrix(x)
## cacheSolve(y)
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
invMatrix <- NULL
## set the given value and matrix outside of the current envi... | /cachematrix.R | no_license | cguegi/ProgrammingAssignment2 | R | false | false | 1,364 | r | ## Example usage with a square matrix:
## x<-matrix(c(3,2,4,16),2,2)
## y <- makeCacheMatrix(x)
## cacheSolve(y)
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {
invMatrix <- NULL
## set the given value and matrix outside of the current envi... |
Power <- read.table("household_power_consumption.txt",skip=1,sep=";")
names(Power) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3")
SubPower <- subset(Power,Power$Date=="1/2/2007" | Power$Date =="2/2/2007")
SubPower$Da... | /Exploratory_Data_Analysis/Plot4.R | no_license | Chen-XueWen/Johns_Hopkins_DataScience | R | false | false | 1,559 | r | Power <- read.table("household_power_consumption.txt",skip=1,sep=";")
names(Power) <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3")
SubPower <- subset(Power,Power$Date=="1/2/2007" | Power$Date =="2/2/2007")
SubPower$Da... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/delete_loop_edges_ws.R
\name{delete_loop_edges_ws}
\alias{delete_loop_edges_ws}
\title{Delete all loop edges associated with a selection of nodes}
\usage{
delete_loop_edges_ws(graph)
}
\arguments{
\item{graph}{a graph object of class \code{dg... | /man/delete_loop_edges_ws.Rd | permissive | lionel-/DiagrammeR | R | false | true | 1,662 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/delete_loop_edges_ws.R
\name{delete_loop_edges_ws}
\alias{delete_loop_edges_ws}
\title{Delete all loop edges associated with a selection of nodes}
\usage{
delete_loop_edges_ws(graph)
}
\arguments{
\item{graph}{a graph object of class \code{dg... |
VarEst <- function(y,m,p,X,Z,u,nRand,nComp,nRandComp,OLDall.sigma,OLDphi,q,nDim){
#Number of observations
nObs <- length(y)/nDim
#The wiegth matrix S
s <- c(p*(1-p))
# Defining the variance of the random effects
d <- d. <- NULL
for (i in 1:nComp){
d <- c(d,rep(OLDall.sigma[i]^2,nRa... | /R/BBmm_VarEst.R | no_license | cran/PROreg | R | false | false | 5,504 | r | VarEst <- function(y,m,p,X,Z,u,nRand,nComp,nRandComp,OLDall.sigma,OLDphi,q,nDim){
#Number of observations
nObs <- length(y)/nDim
#The wiegth matrix S
s <- c(p*(1-p))
# Defining the variance of the random effects
d <- d. <- NULL
for (i in 1:nComp){
d <- c(d,rep(OLDall.sigma[i]^2,nRa... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geom_icon.R
\name{list.icon}
\alias{list.icon}
\title{list.icon}
\usage{
list.icon()
}
\value{
icon vector
}
\description{
list available icon
}
\author{
guangchuang yu
}
| /man/list.icon.Rd | no_license | GuangchuangYu/ggimage | R | false | true | 249 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geom_icon.R
\name{list.icon}
\alias{list.icon}
\title{list.icon}
\usage{
list.icon()
}
\value{
icon vector
}
\description{
list available icon
}
\author{
guangchuang yu
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/multifac_covariate.R
\name{PlotImpVarMeta}
\alias{PlotImpVarMeta}
\title{Plot PLS important variables,}
\usage{
PlotImpVarMeta(
mSetObj = NA,
imp.vec,
xlbl,
feat.num = 15,
color.BW = FALSE,
type = "meta"
)
}
\arguments{
\item{mSet... | /man/PlotImpVarMeta.Rd | permissive | xia-lab/MetaboAnalystR | R | false | true | 813 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/multifac_covariate.R
\name{PlotImpVarMeta}
\alias{PlotImpVarMeta}
\title{Plot PLS important variables,}
\usage{
PlotImpVarMeta(
mSetObj = NA,
imp.vec,
xlbl,
feat.num = 15,
color.BW = FALSE,
type = "meta"
)
}
\arguments{
\item{mSet... |
add.textB <-
structure(function(xp = 0.5, yp = 0.5)
{
### Purpose:- Gets basic coordinates a la add.text
### ----------------------------------------------------------------------
### Modified from:- add.text
### ----------------------------------------------------------------------
### Arguments:-
### --------------... | /.tmp/hrapgc.add.textB.R | no_license | Tuxkid/Gems | R | false | false | 681 | r | add.textB <-
structure(function(xp = 0.5, yp = 0.5)
{
### Purpose:- Gets basic coordinates a la add.text
### ----------------------------------------------------------------------
### Modified from:- add.text
### ----------------------------------------------------------------------
### Arguments:-
### --------------... |
# plot2.R
# Setup
df <- read.csv('household_power_consumption.txt', sep=';')
# Subset the data frame for just the two days of interest.
dfsub <- df[grepl("^[1-2]/2/2007", df$Date),]
# Convert the date column
dfsub$DateTime <- strptime(paste(dfsub$Date, dfsub$Time), "%d/%m/%Y %H:%M:%S" )
# Convert the active column ... | /plot2.R | no_license | gitmijn/ExData_Plotting1 | R | false | false | 559 | r | # plot2.R
# Setup
df <- read.csv('household_power_consumption.txt', sep=';')
# Subset the data frame for just the two days of interest.
dfsub <- df[grepl("^[1-2]/2/2007", df$Date),]
# Convert the date column
dfsub$DateTime <- strptime(paste(dfsub$Date, dfsub$Time), "%d/%m/%Y %H:%M:%S" )
# Convert the active column ... |
#!/usr/bin/env $CODEBASE/Rscript
#
# Define constants and methods used in the analysis of the 10x scRNA-seq data.
#
# run("single_cell", "init")
###################################
### SCRNA-SEQ-SPECIFIC LIBARIES ###
###################################
if(lib$projectName!="lch") run("common")
setCurrentAnalysis("")
l... | /src/single_cell/init.R | no_license | epigen/lch_hierarchy | R | false | false | 26,268 | r | #!/usr/bin/env $CODEBASE/Rscript
#
# Define constants and methods used in the analysis of the 10x scRNA-seq data.
#
# run("single_cell", "init")
###################################
### SCRNA-SEQ-SPECIFIC LIBARIES ###
###################################
if(lib$projectName!="lch") run("common")
setCurrentAnalysis("")
l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.