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 |
|---|---|---|---|---|---|---|---|---|---|
#
# This is a Shiny web application.
#
# If you have downloaded the file, you can run the application by
# - opening it with RStudio, and
# - clicking the 'Run App' button above.
#
# To download RStudio: https://rstudio.com/products/rstudio/download/ (choose "free")
#
# To deploy
# install.packages('rs... | /shiny/app.R | no_license | pczuppon/virus_establishment | R | false | false | 12,293 | r | #
# This is a Shiny web application.
#
# If you have downloaded the file, you can run the application by
# - opening it with RStudio, and
# - clicking the 'Run App' button above.
#
# To download RStudio: https://rstudio.com/products/rstudio/download/ (choose "free")
#
# To deploy
# install.packages('rs... |
library(dplyr)
library(magrittr)
options(stringsAsFactors = FALSE)
uscodes <- read.csv("data/us_codes_raw.csv")
simsumcurr <- read.csv("data/sim_all_sum_curr.csv")
simsumcurr %<>%
filter(Code %in% uscodes$Code) | /unused R code/airport_filter_example.R | no_license | ecohealthalliance/zika-flirt-val | R | false | false | 215 | r | library(dplyr)
library(magrittr)
options(stringsAsFactors = FALSE)
uscodes <- read.csv("data/us_codes_raw.csv")
simsumcurr <- read.csv("data/sim_all_sum_curr.csv")
simsumcurr %<>%
filter(Code %in% uscodes$Code) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/downloadPSet.R
\name{availablePSets}
\alias{availablePSets}
\title{Return a table of PharmacoSets available for download}
\usage{
availablePSets(canonical = TRUE)
}
\arguments{
\item{canonical}{[`logical`] Should available PSets show only off... | /man/availablePSets.Rd | no_license | saisaitian/PharmacoGx | R | false | true | 1,000 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/downloadPSet.R
\name{availablePSets}
\alias{availablePSets}
\title{Return a table of PharmacoSets available for download}
\usage{
availablePSets(canonical = TRUE)
}
\arguments{
\item{canonical}{[`logical`] Should available PSets show only off... |
gtfToBed <- function(gtf, correctBases=TRUE){
correction <- 0
if(correctBases) correction <- 1
if(sum(class(gtf)=="gtf")==0) stop("This function requires a gtf-object as import (as given by the importGTF() function)")
bedOut <- data.frame(Chr=gtf[,1],
Start=gtf[,4] - correction,
... | /R/gtfToBed.R | no_license | fischuu/GenomicTools | R | false | false | 554 | r | gtfToBed <- function(gtf, correctBases=TRUE){
correction <- 0
if(correctBases) correction <- 1
if(sum(class(gtf)=="gtf")==0) stop("This function requires a gtf-object as import (as given by the importGTF() function)")
bedOut <- data.frame(Chr=gtf[,1],
Start=gtf[,4] - correction,
... |
library(shiny)
grapevine <- read.csv("data/bronze.csv")
gold <- read.csv("data/gold.csv")
goldPlus <- read.csv("data/goldPlusElim.csv")
platinum <- read.csv("data/danieldf.csv")
shinyServer(function(input, output, session) {
dataInput <- reactive({
switch(input$dataset,
"Grapevine" = grapevine... | /tourn/Shiny/app4/server.R | no_license | ariel-shin/tourn | R | false | false | 3,063 | r | library(shiny)
grapevine <- read.csv("data/bronze.csv")
gold <- read.csv("data/gold.csv")
goldPlus <- read.csv("data/goldPlusElim.csv")
platinum <- read.csv("data/danieldf.csv")
shinyServer(function(input, output, session) {
dataInput <- reactive({
switch(input$dataset,
"Grapevine" = grapevine... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getDeepSpCas9Scores.R
\name{getDeepSpCas9Scores}
\alias{getDeepSpCas9Scores}
\title{Calculate on-target sgRNA activity scores for SpCas9 using DeepSpCas9}
\usage{
getDeepSpCas9Scores(sequences, fork = FALSE)
}
\arguments{
\item{sequences}{Cha... | /man/getDeepSpCas9Scores.Rd | permissive | crisprVerse/crisprScore | R | false | true | 1,624 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getDeepSpCas9Scores.R
\name{getDeepSpCas9Scores}
\alias{getDeepSpCas9Scores}
\title{Calculate on-target sgRNA activity scores for SpCas9 using DeepSpCas9}
\usage{
getDeepSpCas9Scores(sequences, fork = FALSE)
}
\arguments{
\item{sequences}{Cha... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/publish_dataset.R
\name{publish_dataset}
\alias{publish_dataset}
\title{Publish dataset}
\usage{
publish_dataset(dataset, minor = TRUE,
key = Sys.getenv("DATAVERSE_KEY"),
server = Sys.getenv("DATAVERSE_SERVER"), ...)
}
\arguments{
\item{d... | /man/publish_dataset.Rd | permissive | wibeasley/dataverse-client-r | R | false | true | 2,440 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/publish_dataset.R
\name{publish_dataset}
\alias{publish_dataset}
\title{Publish dataset}
\usage{
publish_dataset(dataset, minor = TRUE,
key = Sys.getenv("DATAVERSE_KEY"),
server = Sys.getenv("DATAVERSE_SERVER"), ...)
}
\arguments{
\item{d... |
##
##
##
##
##
##
##
## script to run interactive 3D visual of pore network
## in two coupons: 'realCoupon', the data collected from
## XCT scans, and 'simulatedCoupon', data simulated using
## a bivariate kernel density estimate (KDE) on z and theta
## --------------------------------------------------------
install... | /nlsAxis/axisUncertainty/uncertaintyVisualizations/sampleVizScript.R | no_license | dnychka/Coupons | R | false | false | 861 | r | ##
##
##
##
##
##
##
## script to run interactive 3D visual of pore network
## in two coupons: 'realCoupon', the data collected from
## XCT scans, and 'simulatedCoupon', data simulated using
## a bivariate kernel density estimate (KDE) on z and theta
## --------------------------------------------------------
install... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extExpRSE.R
\name{extExpRSE}
\alias{extExpRSE}
\title{Extract Expression Matrix}
\usage{
extExpRSE(data, geneSymbol=NA, long = FALSE)
}
\arguments{
\item{data}{data imported using recount2}
\item{geneSymbol}{the gene "name" or "symbol"}
\it... | /man/extExpRSE.Rd | permissive | ndhutso/geneSummary | R | false | true | 661 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/extExpRSE.R
\name{extExpRSE}
\alias{extExpRSE}
\title{Extract Expression Matrix}
\usage{
extExpRSE(data, geneSymbol=NA, long = FALSE)
}
\arguments{
\item{data}{data imported using recount2}
\item{geneSymbol}{the gene "name" or "symbol"}
\it... |
#' @title R Client for the Microsoft Cognitive Services Text Analytics REST API
#'
#' @description \pkg{mscstexta4r} is a client/wrapper/interface for the Microsoft
#' Cognitive Services (MSCS) Text Analytics (Text Analytics) REST API. To use this
#' package, you MUST have a valid account with \url{https://www.microso... | /R/textaPackage.R | permissive | anavaldi/mscstexta4r | R | false | false | 8,561 | r |
#' @title R Client for the Microsoft Cognitive Services Text Analytics REST API
#'
#' @description \pkg{mscstexta4r} is a client/wrapper/interface for the Microsoft
#' Cognitive Services (MSCS) Text Analytics (Text Analytics) REST API. To use this
#' package, you MUST have a valid account with \url{https://www.microso... |
################################################################################################################
#
# Script which holds various miscellaneous functions and constants.
#
################################################################################################################
# CONSTANTS ##########... | /src/miscellaneous.R | permissive | achmand/datascience-brexit | R | false | false | 3,795 | r | ################################################################################################################
#
# Script which holds various miscellaneous functions and constants.
#
################################################################################################################
# CONSTANTS ##########... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/modeEmpty.R
\name{modeEmpty}
\alias{modeEmpty}
\title{App pre-configured to launch with no visible panel}
\usage{
modeEmpty(...)
}
\arguments{
\item{...}{Arguments passed to \code{\link[=iSEE]{iSEE()}}.}
}
\value{
A Shiny app object is return... | /man/modeEmpty.Rd | permissive | iSEE/iSEEu | R | false | true | 867 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/modeEmpty.R
\name{modeEmpty}
\alias{modeEmpty}
\title{App pre-configured to launch with no visible panel}
\usage{
modeEmpty(...)
}
\arguments{
\item{...}{Arguments passed to \code{\link[=iSEE]{iSEE()}}.}
}
\value{
A Shiny app object is return... |
iparmbox <- function(iparmbox.site.selection,
iparmbox.plotparm,
iparmbox.show.points,
iparmbox.log.scale){
medium.colors <- c("#000000", "#E69F00", "#56B4E9", "#009E73", "#D55E00")
names(medium.colors) <- c("WS ","WG ","WSQ","WGQ","OAQ")
#... | /R/iparmbox_function.R | permissive | ldecicco-USGS/QWToolbox | R | false | false | 1,671 | r | iparmbox <- function(iparmbox.site.selection,
iparmbox.plotparm,
iparmbox.show.points,
iparmbox.log.scale){
medium.colors <- c("#000000", "#E69F00", "#56B4E9", "#009E73", "#D55E00")
names(medium.colors) <- c("WS ","WG ","WSQ","WGQ","OAQ")
#... |
#' Create a list of functions calls.
#'
#' `funs()` provides a flexible way to generate a named list of
#' functions for input to other functions like [summarise_at()].
#'
#' @param ... A list of functions specified by:
#'
#' - Their name, `"mean"`
#' - The function itself, `mean`
#' - A call to the function with `.... | /R/funs.R | permissive | EssaAya/dplyr | R | false | false | 3,548 | r | #' Create a list of functions calls.
#'
#' `funs()` provides a flexible way to generate a named list of
#' functions for input to other functions like [summarise_at()].
#'
#' @param ... A list of functions specified by:
#'
#' - Their name, `"mean"`
#' - The function itself, `mean`
#' - A call to the function with `.... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/status-bar.R
\name{cli_process_start}
\alias{cli_process_start}
\alias{cli_process_done}
\alias{cli_process_failed}
\title{Indicate the start and termination of some computation in the status bar}
\usage{
cli_process_start(
msg,
msg_done ... | /man/cli_process_start.Rd | permissive | AkhilGNair/cli | R | false | true | 3,515 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/status-bar.R
\name{cli_process_start}
\alias{cli_process_start}
\alias{cli_process_done}
\alias{cli_process_failed}
\title{Indicate the start and termination of some computation in the status bar}
\usage{
cli_process_start(
msg,
msg_done ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/umxSimplex.R
\name{umxSimplex}
\alias{umxSimplex}
\title{Build and run a simplex twin model}
\usage{
umxSimplex(name = "simplex", selDVs, dzData, mzData, sep = NULL,
equateMeans = TRUE, dzAr = 0.5, dzCr = 1, addStd = TRUE,
addCI = TRUE, a... | /man/umxSimplex.Rd | no_license | arinbasu/umx | R | false | true | 5,463 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/umxSimplex.R
\name{umxSimplex}
\alias{umxSimplex}
\title{Build and run a simplex twin model}
\usage{
umxSimplex(name = "simplex", selDVs, dzData, mzData, sep = NULL,
equateMeans = TRUE, dzAr = 0.5, dzCr = 1, addStd = TRUE,
addCI = TRUE, a... |
setwd("D://Data Analytics/Project 1")
data<-read.csv("qfc.csv")
require(stringr)
demo1 <- strsplit(as.character(data$Qualification),"\\,|\\-")
len = length(demo1)
valuecol=0
qscore=0
value=0
i=1
j=1
for(i in 1:len)
{
len1 = length(demo1[[i]])
j=1
for(j in 1:len1)
{
a=demo1[[i]][j... | /Qual.R | no_license | rahulkumara/predict-a-doctors-consultation-fees-hackathon- | R | false | false | 2,349 | r | setwd("D://Data Analytics/Project 1")
data<-read.csv("qfc.csv")
require(stringr)
demo1 <- strsplit(as.character(data$Qualification),"\\,|\\-")
len = length(demo1)
valuecol=0
qscore=0
value=0
i=1
j=1
for(i in 1:len)
{
len1 = length(demo1[[i]])
j=1
for(j in 1:len1)
{
a=demo1[[i]][j... |
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#' Compute the ordinary least squares.
#'
#' @param D the the response vector
#' @param W the the predictor vector
#' @return the estamated regression coefficients
#' @export
naiveRegression ... | /measError/measError/R/RcppExports.R | no_license | shiyuanhe/ruccomputerskills | R | false | false | 1,182 | r | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
#' Compute the ordinary least squares.
#'
#' @param D the the response vector
#' @param W the the predictor vector
#' @return the estamated regression coefficients
#' @export
naiveRegression ... |
##' Plot helper
##' @param fit the fitted object from sam.fit
##' @param what quoted name of object to extract
##' @param x x-alues
##' @param ylab label on y-axis
##' @param xlab label on x-axis
##' @param ex extra y's to make room for
##' @param trans function to transform values by
##' @param add logical, plotting i... | /stockassessment/R/plot.R | no_license | iambaim/SAM | R | false | false | 20,581 | r | ##' Plot helper
##' @param fit the fitted object from sam.fit
##' @param what quoted name of object to extract
##' @param x x-alues
##' @param ylab label on y-axis
##' @param xlab label on x-axis
##' @param ex extra y's to make room for
##' @param trans function to transform values by
##' @param add logical, plotting i... |
\name{Rpenny}
\alias{Rpenny}
\title{R interface for penny}
\usage{
Rpenny(X, path=NULL, ...)
}
\arguments{
\item{X}{an object of class \code{"phylip.data"} with a binary character; or a matrix. Data should be \code{"0"}, \code{"1"}, and \code{"?"}.}
\item{path}{path to the executable containing penny. If \code{path =... | /Rphylip/man/Rpenny.Rd | no_license | liamrevell/Rphylip | R | false | false | 3,968 | rd | \name{Rpenny}
\alias{Rpenny}
\title{R interface for penny}
\usage{
Rpenny(X, path=NULL, ...)
}
\arguments{
\item{X}{an object of class \code{"phylip.data"} with a binary character; or a matrix. Data should be \code{"0"}, \code{"1"}, and \code{"?"}.}
\item{path}{path to the executable containing penny. If \code{path =... |
## This is the set of function that allow you to cache the inverse matrix
## so this is calculated only once
## This functions is used to create a special object that stores an inverse matrix
makeCacheMatrix <- function(x = matrix()) {
## set the inverse matrix to null
m <- NULL
## set function: set the passed v... | /cachematrix.R | no_license | nasonova/ProgrammingAssignment2 | R | false | false | 1,298 | r | ## This is the set of function that allow you to cache the inverse matrix
## so this is calculated only once
## This functions is used to create a special object that stores an inverse matrix
makeCacheMatrix <- function(x = matrix()) {
## set the inverse matrix to null
m <- NULL
## set function: set the passed v... |
rm (list=ls())
train.raw <- read.csv("WomenHealth_Training.csv", header=TRUE, stringsAsFactors=FALSE)
train.raw$religion.adj <- train.raw$religion
# Classify religion into Christian vs. Non-Christian vs. Other (Unknowns)
#train.raw$religion.adj[train.raw$religion == "Evangelical/Bo"] <- "Christian" #coun... | /womenhealth.r | no_license | sfarris823/WomensHealth | R | false | false | 7,796 | r | rm (list=ls())
train.raw <- read.csv("WomenHealth_Training.csv", header=TRUE, stringsAsFactors=FALSE)
train.raw$religion.adj <- train.raw$religion
# Classify religion into Christian vs. Non-Christian vs. Other (Unknowns)
#train.raw$religion.adj[train.raw$religion == "Evangelical/Bo"] <- "Christian" #coun... |
setwd("C:/work/workitem/ES_696417_GVC_T1")
calls <- read.table(
file = "stream.txt",
sep = ",",
header = TRUE,
quote = "\"", fill = TRUE
)
head(calls$c("mcr_record_timestamp", "mcl_record_timestamp"))
| /WorkAnalysis/S4L_analyze.R | no_license | lbl1985/RLearning | R | false | false | 211 | r | setwd("C:/work/workitem/ES_696417_GVC_T1")
calls <- read.table(
file = "stream.txt",
sep = ",",
header = TRUE,
quote = "\"", fill = TRUE
)
head(calls$c("mcr_record_timestamp", "mcl_record_timestamp"))
|
# Year by Year plotting with ggplot
library(readr)
library(dplyr)
library(lubridate)
library(ggplot2)
D = read_csv("C:/Users/Jacob/Downloads/ml-latest-small/ml-latest-small/ratings.csv")
i = 1
D %>% filter(movieId == i) %>%
mutate(date = as.Date(as.POSIXct(timestamp, origin = "1970-01-01"))) %>%
mutate... | /year_by_year_overlay_plotting.R | no_license | jacobmunson/PetProjects | R | false | false | 748 | r | # Year by Year plotting with ggplot
library(readr)
library(dplyr)
library(lubridate)
library(ggplot2)
D = read_csv("C:/Users/Jacob/Downloads/ml-latest-small/ml-latest-small/ratings.csv")
i = 1
D %>% filter(movieId == i) %>%
mutate(date = as.Date(as.POSIXct(timestamp, origin = "1970-01-01"))) %>%
mutate... |
#' @include reproductionFunction.R
#' @include deathFunction.R
#' @include durationFunction.R
#' @include immigrationFunction.R
#' @include developmentFunction.R
#' @include emigrationFunction.R
NULL
#' defaultRateFunctions
#'
#' These default implementations will simply generate errors when
#' run. To create implemen... | /R/defaultRateFunctions.R | no_license | cran/stagePop | R | false | false | 1,331 | r | #' @include reproductionFunction.R
#' @include deathFunction.R
#' @include durationFunction.R
#' @include immigrationFunction.R
#' @include developmentFunction.R
#' @include emigrationFunction.R
NULL
#' defaultRateFunctions
#'
#' These default implementations will simply generate errors when
#' run. To create implemen... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mdaplotg.R
\name{mdaplotg.prepareData}
\alias{mdaplotg.prepareData}
\title{Prepare data for mdaplotg}
\usage{
mdaplotg.prepareData(data, type, groupby)
}
\arguments{
\item{data}{datasets (in form of list, matrix or data frame)}
\item{type}{v... | /man/mdaplotg.prepareData.Rd | permissive | svkucheryavski/mdatools | R | false | true | 825 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mdaplotg.R
\name{mdaplotg.prepareData}
\alias{mdaplotg.prepareData}
\title{Prepare data for mdaplotg}
\usage{
mdaplotg.prepareData(data, type, groupby)
}
\arguments{
\item{data}{datasets (in form of list, matrix or data frame)}
\item{type}{v... |
source("model.R")
library(dplyr)
KNNModel <- setRefClass("KNNModel", contains = "Classifier",
fields = list(k = "numeric", x_train = "data.frame", y_train = "data.frame"), methods = list(
initialize = function(k) {
.self$k <- k
},
fit = function(x_train, y_train) {
.sel... | /knn.R | permissive | ControlNet/ml-algorithms | R | false | false | 3,618 | r | source("model.R")
library(dplyr)
KNNModel <- setRefClass("KNNModel", contains = "Classifier",
fields = list(k = "numeric", x_train = "data.frame", y_train = "data.frame"), methods = list(
initialize = function(k) {
.self$k <- k
},
fit = function(x_train, y_train) {
.sel... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getMDFR.Surveys.Biomass.R
\name{getMDFR.Surveys.Biomass}
\alias{getMDFR.Surveys.Biomass}
\title{Get survey biomass time series from model results from TCSAM02 model runs as a dataframe}
\usage{
getMDFR.Surveys.Biomass(
tcsams,
category = ... | /man/getMDFR.Surveys.Biomass.Rd | permissive | wStockhausen/rTCSAM02 | R | false | true | 971 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getMDFR.Surveys.Biomass.R
\name{getMDFR.Surveys.Biomass}
\alias{getMDFR.Surveys.Biomass}
\title{Get survey biomass time series from model results from TCSAM02 model runs as a dataframe}
\usage{
getMDFR.Surveys.Biomass(
tcsams,
category = ... |
#' @title Modify a color to get brighter and tranparent for the confidence intervals
#' @param color color value, e.g. "red"
#' @param alpha (0..1) transparency value
#' @param beta (0..255) to make it brighter, this value gets added on the RGB values
#' @return modified color
#' @author Thomas Laepple
#' @export
Col... | /R/ColTransparent.R | permissive | EarthSystemDiagnostics/paleospec | R | false | false | 506 | r | #' @title Modify a color to get brighter and tranparent for the confidence intervals
#' @param color color value, e.g. "red"
#' @param alpha (0..1) transparency value
#' @param beta (0..255) to make it brighter, this value gets added on the RGB values
#' @return modified color
#' @author Thomas Laepple
#' @export
Col... |
# loadLaCorpus.R
#
# Load a corpus into memory before processing samples for features
loadLaCorpus <- function(corpus) {
# Prepare corpus
corpusList <- dir(corpus, full.names=TRUE)
# for F_* features
corpusStemmed <- c()
# for TF-IDF features
corpusIndFiles <- new.env()
for (i in 1:lengt... | /chapter7/src/loadLaCorpus.R | no_license | wjs3/quantitative-intertextuality | R | false | false | 702 | r | # loadLaCorpus.R
#
# Load a corpus into memory before processing samples for features
loadLaCorpus <- function(corpus) {
# Prepare corpus
corpusList <- dir(corpus, full.names=TRUE)
# for F_* features
corpusStemmed <- c()
# for TF-IDF features
corpusIndFiles <- new.env()
for (i in 1:lengt... |
#' Forecast Infections and the Time-Varying Reproduction Number
#'
#' @description `r lifecycle::badge("experimental")`
#' Provides optional tools for forecasting cases and Rt estimates using the timeseries methods
#' (via the `EpiSoon` package). It requires the `Episoon` package. Installation instructions for the EpiS... | /R/forecast_infections.R | permissive | medewitt/EpiNow2 | R | false | false | 7,792 | r | #' Forecast Infections and the Time-Varying Reproduction Number
#'
#' @description `r lifecycle::badge("experimental")`
#' Provides optional tools for forecasting cases and Rt estimates using the timeseries methods
#' (via the `EpiSoon` package). It requires the `Episoon` package. Installation instructions for the EpiS... |
library(ape)
testtree <- read.tree("9616_1.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="9616_1_unrooted.txt") | /codeml_files/newick_trees_processed/9616_1/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("9616_1.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="9616_1_unrooted.txt") |
# Perform a DEG comparison for a subset of samples between a pair of conditions.
# Append experiment info to a title text.
appendExprtInfo <- function(title_text, exprt_info)
{
if(!is.null(title_text) && !is.null(exprt_info))
{
if(!is.na(exprt_info["cell"])) title_text <- paste(title_text, "in", exprt_... | /src/Library/compareGeneExpDiffSubset.R | no_license | DToxS/Differential-Comparison | R | false | false | 16,917 | r | # Perform a DEG comparison for a subset of samples between a pair of conditions.
# Append experiment info to a title text.
appendExprtInfo <- function(title_text, exprt_info)
{
if(!is.null(title_text) && !is.null(exprt_info))
{
if(!is.na(exprt_info["cell"])) title_text <- paste(title_text, "in", exprt_... |
########################################################################
############################ UI #########################
########################################################################
#install.packages("shinyjs")
library(shinyjs)
library(stats)
library(shinydashboard)
library(sqldf)
libr... | /docs/ui.R | permissive | nathanh36/the_scattegories_game | R | false | false | 7,398 | r | ########################################################################
############################ UI #########################
########################################################################
#install.packages("shinyjs")
library(shinyjs)
library(stats)
library(shinydashboard)
library(sqldf)
libr... |
context("Skeletor with configure")
options(skeletor.name="Neal Richardson",
skeletor.email="neal.p.richardson@gmail.com",
skeletor.github="nealrichardson")
public({
tmpd <- tempdir()
pkgdir <- tempfile(tmpdir="")
pkgdir <- substr(pkgdir, 2, nchar(pkgdir)) ## Remove the leading /
dest <... | /tests/testthat/test-skeletor-conf.R | no_license | nealrichardson/skeletor | R | false | false | 3,390 | r | context("Skeletor with configure")
options(skeletor.name="Neal Richardson",
skeletor.email="neal.p.richardson@gmail.com",
skeletor.github="nealrichardson")
public({
tmpd <- tempdir()
pkgdir <- tempfile(tmpdir="")
pkgdir <- substr(pkgdir, 2, nchar(pkgdir)) ## Remove the leading /
dest <... |
##' PETACC3 segmented data as a GRanges object
##'
##' \code{GRanges} object containing the segmented data from the
##' PETACC3 trial cohort. In addition to the ranges containing the
##' segments, the object contains also the following metadata.
##'
##' \itemize{
##' \item num.mark: number of markers falling in the s... | /R/SegmentRanges.R | no_license | gdario/cnvtools | R | false | false | 649 | r | ##' PETACC3 segmented data as a GRanges object
##'
##' \code{GRanges} object containing the segmented data from the
##' PETACC3 trial cohort. In addition to the ranges containing the
##' segments, the object contains also the following metadata.
##'
##' \itemize{
##' \item num.mark: number of markers falling in the s... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mlf.test.R
\name{mlf.test}
\alias{mlf.test}
\title{Maxima Likelihood First Scan Test}
\usage{
mlf.test(coords, cases, pop, w, ex = sum(cases)/sum(pop) * pop,
nsim = 499, alpha = 0.1, ubpop = 0.5, ubd = 0.5,
longlat = FALSE, cl = NULL)
}
\... | /man/mlf.test.Rd | no_license | t-pollington/smerc | R | false | true | 4,196 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mlf.test.R
\name{mlf.test}
\alias{mlf.test}
\title{Maxima Likelihood First Scan Test}
\usage{
mlf.test(coords, cases, pop, w, ex = sum(cases)/sum(pop) * pop,
nsim = 499, alpha = 0.1, ubpop = 0.5, ubd = 0.5,
longlat = FALSE, cl = NULL)
}
\... |
#Install Rfacebook package from CRAN and run the following code.
#for extra fb crawling visit "http://pablobarbera.com/blog/archives/3.html","http://analyticsastra.com/complete-guide-facebook-data-mining-using-r/#a4"
require("Rfacebook")
fb_oauth<-fbOAuth(app_id="XXXXXXXXXXXXXXX", app_secret="YYYYYYYYYYYYYYYYYYY... | /Facebook crawler using r.R | no_license | satheeshmanikandan/Facebook-Crawling-using-R | R | false | false | 1,678 | r | #Install Rfacebook package from CRAN and run the following code.
#for extra fb crawling visit "http://pablobarbera.com/blog/archives/3.html","http://analyticsastra.com/complete-guide-facebook-data-mining-using-r/#a4"
require("Rfacebook")
fb_oauth<-fbOAuth(app_id="XXXXXXXXXXXXXXX", app_secret="YYYYYYYYYYYYYYYYYYY... |
library(ggplot2)
qplot(displ, hwy, data = mpg, color = drv, shape = drv)
# adding statistics: geom = c("points", "smooth") = add a smoother/'low S'
# + 'points' plots the data themselves, 'smooth' plots a smooth mean line in blue with an area of 95% confidence interval shaded in dark gray
# + method = "lm" = additio... | /Notes/Data Visualization/ggplot - qplot.R | no_license | k173man/R | R | false | false | 2,990 | r | library(ggplot2)
qplot(displ, hwy, data = mpg, color = drv, shape = drv)
# adding statistics: geom = c("points", "smooth") = add a smoother/'low S'
# + 'points' plots the data themselves, 'smooth' plots a smooth mean line in blue with an area of 95% confidence interval shaded in dark gray
# + method = "lm" = additio... |
## Plotting Schuchmann 1983 data to look at min Tbs for a number of species
library(ggplot2)
schuchmann_data <-
read.csv("C:\\Users\\ANUSHA\\Dropbox\\Hummingbird energetics\\Schuchmann1983_data_digitized_savings.csv")
my_theme <- theme_classic(base_size = 32) +
theme(panel.border = element_rect(colour = "black"... | /Schuchmann1983_data_plot.R | no_license | nushiamme/AShankar_hummers | R | false | false | 516 | r | ## Plotting Schuchmann 1983 data to look at min Tbs for a number of species
library(ggplot2)
schuchmann_data <-
read.csv("C:\\Users\\ANUSHA\\Dropbox\\Hummingbird energetics\\Schuchmann1983_data_digitized_savings.csv")
my_theme <- theme_classic(base_size = 32) +
theme(panel.border = element_rect(colour = "black"... |
normalise_link_positions <- function(lp, type, six_node) {
n <- 29 + six_node *(106 - 29)
if(inherits(lp,"matrix") != TRUE) {
lp <- as.matrix(lp, ncol = n)
}
if (type == "sum") {
# divide by total number of times that each edge occurs in any position
# the required number is exactly the rowsum
... | /bmotif/R/normalise_link_positions.R | permissive | akhikolla/InformationHouse | R | false | false | 6,277 | r | normalise_link_positions <- function(lp, type, six_node) {
n <- 29 + six_node *(106 - 29)
if(inherits(lp,"matrix") != TRUE) {
lp <- as.matrix(lp, ncol = n)
}
if (type == "sum") {
# divide by total number of times that each edge occurs in any position
# the required number is exactly the rowsum
... |
c5a119f9aa532acfa1a26f3f7ddc2b3f counter8_4.qdimacs 87 678 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/A1/Database/NuSMV_diam/Counter8/counter8_4/counter8_4.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 58 | r | c5a119f9aa532acfa1a26f3f7ddc2b3f counter8_4.qdimacs 87 678 |
library(sp)
library(rgdal)
library(GISTools)
library(spdep)
library(dplyr)
### this code combines same owner cost data for parcels in the study area
mt<- st_read("D:/PrivateLand.shp")
#summary(mt)
#plot(mt)
mt$new <- paste(mt$OwnerName, mt$OwnerCity, sep = "_")
mt2 <- as(mt, "Spatial")
#mt3 <- as(mt,... | /combining_cadastral_cost_data.R | permissive | KCarrollEcology/StarProtocols2021_Wolverine | R | false | false | 1,178 | r | library(sp)
library(rgdal)
library(GISTools)
library(spdep)
library(dplyr)
### this code combines same owner cost data for parcels in the study area
mt<- st_read("D:/PrivateLand.shp")
#summary(mt)
#plot(mt)
mt$new <- paste(mt$OwnerName, mt$OwnerCity, sep = "_")
mt2 <- as(mt, "Spatial")
#mt3 <- as(mt,... |
log_neg_log_complement <- function(x){
log(-log(1 - x))
}
| /R/misc-log_neg_log_complement.R | permissive | bcjaeger/survival.calib | R | false | false | 62 | r |
log_neg_log_complement <- function(x){
log(-log(1 - x))
}
|
movies <- list('Toy Story', 1995, c('Animation', 'Adventure', 'Comedy'))
movies[2]
movies[2:3]
movie_details <- list(name = 'Toy Story', year = 1995, genre = c('Animation', 'Adventure', 'Comedy'))
movie_details$genre #Access name
movie_details['genre']
movie_details['Age'] <- 5
movie_details['Age'] <- 6 #Reassign
movie... | /1. Data Structure in R/lists.R | no_license | piyushkumar102/R-Programs | R | false | false | 1,011 | r | movies <- list('Toy Story', 1995, c('Animation', 'Adventure', 'Comedy'))
movies[2]
movies[2:3]
movie_details <- list(name = 'Toy Story', year = 1995, genre = c('Animation', 'Adventure', 'Comedy'))
movie_details$genre #Access name
movie_details['genre']
movie_details['Age'] <- 5
movie_details['Age'] <- 6 #Reassign
movie... |
########################
### Shiny App ###
########################
install.packages('rsconnect')
library(rsconnect)
library(shiny)
library(dplyr)
library(plotly)
library(leaflet)
source("sim_lib.r")
library(readxl)
library(shinythemes)
library(htmltools)
ristoranti <- read_excel("DoveAndiamoAMangia... | /UIeSERVER.r | no_license | marcoabbiati/SL | R | false | false | 9,699 | r | ########################
### Shiny App ###
########################
install.packages('rsconnect')
library(rsconnect)
library(shiny)
library(dplyr)
library(plotly)
library(leaflet)
source("sim_lib.r")
library(readxl)
library(shinythemes)
library(htmltools)
ristoranti <- read_excel("DoveAndiamoAMangia... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/palettes.R
\docType{data}
\name{palette_main}
\alias{palette_main}
\title{Function to extract pdw colors as hex codes}
\format{
An object of class \code{character} of length 3.
}
\usage{
palette_main
}
\arguments{
\item{...}{Character names o... | /man/palette_main.Rd | permissive | phildwalker/TeamBrand | R | false | true | 441 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/palettes.R
\docType{data}
\name{palette_main}
\alias{palette_main}
\title{Function to extract pdw colors as hex codes}
\format{
An object of class \code{character} of length 3.
}
\usage{
palette_main
}
\arguments{
\item{...}{Character names o... |
def myTestRule(rule_args, callback, rei):
user = global_vars['*User'][1:-1]
path = global_vars['*Path'][1:-1]
acl = global_vars['*Acl'][1:-1]
callback.msiSetACL('default', acl, user, path)
callback.writeLine('stdout', 'Set ' + acl + ' access for ' + user + ' on file ' + path)
INPUT *User="rods", ... | /python_rules/rulemsiSetACL.r | no_license | heliumdatacommons/irods_rule_engine_plugin_python | R | false | false | 391 | r | def myTestRule(rule_args, callback, rei):
user = global_vars['*User'][1:-1]
path = global_vars['*Path'][1:-1]
acl = global_vars['*Acl'][1:-1]
callback.msiSetACL('default', acl, user, path)
callback.writeLine('stdout', 'Set ' + acl + ' access for ' + user + ' on file ' + path)
INPUT *User="rods", ... |
setClassUnion("numericORNULL", c("numeric", "NULL"))
setClassUnion("abifORNULL", c("abif", "NULL"))
setClassUnion("characterORNULL", c("character", "NULL"))
### ============================================================================
### Defined in QualityReport, SangerRead, SangerContig
### ====================... | /R/AllGenerics.R | permissive | ukaraoz/sangeranalyseR | R | false | false | 13,122 | r | setClassUnion("numericORNULL", c("numeric", "NULL"))
setClassUnion("abifORNULL", c("abif", "NULL"))
setClassUnion("characterORNULL", c("character", "NULL"))
### ============================================================================
### Defined in QualityReport, SangerRead, SangerContig
### ====================... |
#' @title Bed shear stress calculation
#' @description Calculates the combined bed shear stress from waves and tides
#' @param bathymetry Bathymetry of location
#' @param D50 Median grain size (mm).
#' @param tidal_velocity A numeric vector of tidal velocity (m/s). If not given, this is set to zero.
#' @param tidal_di... | /R/shear_stress.R | permissive | robertjwilson/bedshear | R | false | false | 4,868 | r |
#' @title Bed shear stress calculation
#' @description Calculates the combined bed shear stress from waves and tides
#' @param bathymetry Bathymetry of location
#' @param D50 Median grain size (mm).
#' @param tidal_velocity A numeric vector of tidal velocity (m/s). If not given, this is set to zero.
#' @param tidal_di... |
c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 41786
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 41786
c
c Input Parameter (command line, file):
c input filename QBFLIB/Tentrup/mult-matrix/mult_bool_matrix_dyn_9_10.sat.qdim... | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Tentrup/mult-matrix/mult_bool_matrix_dyn_9_10.sat/mult_bool_matrix_dyn_9_10.sat.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 669 | r | c DCNF-Autarky [version 0.0.1].
c Copyright (c) 2018-2019 Swansea University.
c
c Input Clause Count: 41786
c Performing E1-Autarky iteration.
c Remaining clauses count after E-Reduction: 41786
c
c Input Parameter (command line, file):
c input filename QBFLIB/Tentrup/mult-matrix/mult_bool_matrix_dyn_9_10.sat.qdim... |
#' @export
figure <- function(title, p, sub_title = if(exists("data_set")) data_set else character(0), ...){
RESULT_FOLDER <- "results"
file_name <- paste0(make.names(title), "-", make.names(sub_title))
cowplot::ggsave(file.path(RESULT_FOLDER, paste0(file_name,".pdf")), p, ...)#, device=cairo_pdf)
cowplot::ggs... | /R/common.R | permissive | jan-glx/pertInv | R | false | false | 10,659 | r |
#' @export
figure <- function(title, p, sub_title = if(exists("data_set")) data_set else character(0), ...){
RESULT_FOLDER <- "results"
file_name <- paste0(make.names(title), "-", make.names(sub_title))
cowplot::ggsave(file.path(RESULT_FOLDER, paste0(file_name,".pdf")), p, ...)#, device=cairo_pdf)
cowplot::ggs... |
my_data <- data.frame(no=seq(1,10), name=rep(NA, 10), count=rep(0,10))
names(my_data)
head(my_data)
View(my_data)
names(my_data)
my_data$no
names(my_data[2])
colnames(my_data)
rownames(my_data)
colnames(my_data)[2]
rownames(my_data)[3]
rownames(my_data)[3] <- "3"
head(my_data)
my_da... | /Database_Marketing/TA_session_practice.R | no_license | sanjiny3000backup/SNU_BigData_Institute | R | false | false | 1,474 | r | my_data <- data.frame(no=seq(1,10), name=rep(NA, 10), count=rep(0,10))
names(my_data)
head(my_data)
View(my_data)
names(my_data)
my_data$no
names(my_data[2])
colnames(my_data)
rownames(my_data)
colnames(my_data)[2]
rownames(my_data)[3]
rownames(my_data)[3] <- "3"
head(my_data)
my_da... |
###### CLUSTER ANALYSIS #########33
### Calculate & plot the distance between two players
### You've obtained the coordinates relative to the center of the field for two players
### in a soccer match and would like to calculate the distance between them.
#In this exercise you will plot the positions of th... | /Corte2/Clustering/Practica Cluster/code_cluster.R | no_license | johnj-hernandez/Ciencia-de-los-Datos-R | R | false | false | 21,021 | r | ###### CLUSTER ANALYSIS #########33
### Calculate & plot the distance between two players
### You've obtained the coordinates relative to the center of the field for two players
### in a soccer match and would like to calculate the distance between them.
#In this exercise you will plot the positions of th... |
\name{response.sendError}
\Rdversion{1.1}
\alias{response.sendError}
\title{
response.sendError
}
\description{
Shows a formatted error message and aborts operations.
}
\usage{
response.sendError(errStr)
}
\arguments{
\item{errStr}{
A description for error.
}
}
\author{
Mehmet Hakan Satman
}
\seealso{
\link{res... | /man/response.sendError.Rd | no_license | cran/SSSR | R | false | false | 409 | rd | \name{response.sendError}
\Rdversion{1.1}
\alias{response.sendError}
\title{
response.sendError
}
\description{
Shows a formatted error message and aborts operations.
}
\usage{
response.sendError(errStr)
}
\arguments{
\item{errStr}{
A description for error.
}
}
\author{
Mehmet Hakan Satman
}
\seealso{
\link{res... |
library(ggplot2)
expdata <- read.delim(file="/public/ZhangJinLab/project_stress/StressesRNAseqData/stringtiefile_erv/repeat_seq_TPM.txt",header=TRUE,row.names=1,stringsAsFactors=FALSE)
targetedGenes <- c("MERVL-int|LTR|ERVL","MT2_Mm|LTR|ERVL","GSAT_MM|Satellite|Satellite")
plotdata <- aggregate(cbind(Control.1, Cont... | /scripts/tpm_vs_fc_scatter_erv.R | no_license | summer-yangqin/rRNAproj | R | false | false | 7,159 | r | library(ggplot2)
expdata <- read.delim(file="/public/ZhangJinLab/project_stress/StressesRNAseqData/stringtiefile_erv/repeat_seq_TPM.txt",header=TRUE,row.names=1,stringsAsFactors=FALSE)
targetedGenes <- c("MERVL-int|LTR|ERVL","MT2_Mm|LTR|ERVL","GSAT_MM|Satellite|Satellite")
plotdata <- aggregate(cbind(Control.1, Cont... |
ms_sev <- function(data, type="global_armss", range=2, matrix=F, omsss=FALSE ){
names <- colnames(data)
if(type=="local_armss"){
if(!is.na(match("edss",names)) && !is.na(match("ageatedss", names)))
results <- local_armss(data, range)
else stop("Variable name edss or ageatedss missing in ... | /R/ms_sev.R | no_license | cran/ms.sev | R | false | false | 6,471 | r | ms_sev <- function(data, type="global_armss", range=2, matrix=F, omsss=FALSE ){
names <- colnames(data)
if(type=="local_armss"){
if(!is.na(match("edss",names)) && !is.na(match("ageatedss", names)))
results <- local_armss(data, range)
else stop("Variable name edss or ageatedss missing in ... |
#week01
library(UsingR); data(galton)
library(manipulate)
step1<-function()
{
par(mfrow=c(1,2))
hist(galton$child,col="blue",breaks=100)
hist(galton$parent,col="blue",breaks=100)
}
step2<-function()
{
par(mfrow=c(1,1))
myHist <- function(mu){
hist(galton$child,col="blue",brea... | /07_RegressionModels/week01.R | no_license | Hagser/RProgramming | R | false | false | 2,697 | r | #week01
library(UsingR); data(galton)
library(manipulate)
step1<-function()
{
par(mfrow=c(1,2))
hist(galton$child,col="blue",breaks=100)
hist(galton$parent,col="blue",breaks=100)
}
step2<-function()
{
par(mfrow=c(1,1))
myHist <- function(mu){
hist(galton$child,col="blue",brea... |
# File URL to download
fileURL <- 'https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip'
dataFileZip <- "./household_power_consumption.zip"
# Download the file
if (file.exists(dataFileZip) == FALSE) {
download.file(fileURL,destfile=dataFileZip ,method="curl")
# Unzip the... | /plot4.R | no_license | jorgelarasanchez/ExData_Plotting1 | R | false | false | 1,970 | r | # File URL to download
fileURL <- 'https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip'
dataFileZip <- "./household_power_consumption.zip"
# Download the file
if (file.exists(dataFileZip) == FALSE) {
download.file(fileURL,destfile=dataFileZip ,method="curl")
# Unzip the... |
\name{medianNaN}
\alias{medianNaN}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Median }
\description{
Compute median value disregarding NaN values
}
\usage{
medianNaN(x)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{x}{ a vector or a matrix }
}
\value{
\i... | /DbtTools/nanHandling/man/medianNaN.Rd | no_license | markus-flicke/KD_Projekt_1 | R | false | false | 489 | rd | \name{medianNaN}
\alias{medianNaN}
%- Also NEED an '\alias' for EACH other topic documented here.
\title{ Median }
\description{
Compute median value disregarding NaN values
}
\usage{
medianNaN(x)
}
%- maybe also 'usage' for other objects documented here.
\arguments{
\item{x}{ a vector or a matrix }
}
\value{
\i... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ms2match.R
\name{match_ms2}
\alias{match_ms2}
\title{Match lipid molecules from MS2 data}
\usage{
match_ms2(ms2, libs, ppm_tol = 30, intensity_cutoff = 1000,
collapse = TRUE, odd_chain = FALSE, chain_modifs = c("all", "only",
"none"))
}
\... | /man/match_ms2.Rd | permissive | ahmohamed/lipID | R | false | true | 2,230 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ms2match.R
\name{match_ms2}
\alias{match_ms2}
\title{Match lipid molecules from MS2 data}
\usage{
match_ms2(ms2, libs, ppm_tol = 30, intensity_cutoff = 1000,
collapse = TRUE, odd_chain = FALSE, chain_modifs = c("all", "only",
"none"))
}
\... |
library(dplyr)
#reads the features file and filter it by meand ans std
features <- read.table("./data/UCI HAR Dataset/features.txt")
clean_features <- features[c(grep("std",features$V2), grep("mean",features$V2)), ]
#read activities and rows, add the activity
activity_labels <- read.table("./data/UCI HAR Dataset/act... | /run_analysis.R | no_license | RidleySMorales/GCD_Project1 | R | false | false | 1,797 | r |
library(dplyr)
#reads the features file and filter it by meand ans std
features <- read.table("./data/UCI HAR Dataset/features.txt")
clean_features <- features[c(grep("std",features$V2), grep("mean",features$V2)), ]
#read activities and rows, add the activity
activity_labels <- read.table("./data/UCI HAR Dataset/act... |
#' @title area statistics of raster
#'
#' @description area statistics of raster
#'
#' @param
#'
#' @return NULL
#'
#' @examples
#'
#' @export f.raster.area.stats
#'
#'
f.raster.area.stats<-function(l){
area<-lapply(
list(1,ncell(l)),
FUN=function(n){
# n<-1
s<-rasterFromCells(l,n)
a<-raste... | /R/f.raster.area.stats.R | no_license | eliascis/ecRutils | R | false | false | 574 | r | #' @title area statistics of raster
#'
#' @description area statistics of raster
#'
#' @param
#'
#' @return NULL
#'
#' @examples
#'
#' @export f.raster.area.stats
#'
#'
f.raster.area.stats<-function(l){
area<-lapply(
list(1,ncell(l)),
FUN=function(n){
# n<-1
s<-rasterFromCells(l,n)
a<-raste... |
##
# Testing glm performance (reasonable coefficients) on balanced synthetic dataset with perfect separation.
# Separation recognized by R glm with following warning:
# 1: glm.fit: algorithm did not converge
# 2: glm.fit: fitted probabilities numerically 0 or 1 occurred
##
setwd(normalizePath(dirname(R... | /h2o-r/tests/testdir_algos/glm/runit_GLM_perfectSeparation_balanced.R | permissive | StephaneFeniar/h2o-dev | R | false | false | 1,152 | r | ##
# Testing glm performance (reasonable coefficients) on balanced synthetic dataset with perfect separation.
# Separation recognized by R glm with following warning:
# 1: glm.fit: algorithm did not converge
# 2: glm.fit: fitted probabilities numerically 0 or 1 occurred
##
setwd(normalizePath(dirname(R... |
library(foreign)
HPRICE1 <- read_dta("Regressao/Aula 9/HPRICE1-Kayo.dta")
Ex06 <- lm(formula = price ~ lotsize + sqrft + bdrms, data = HPRICE1)
summary(Ex06)
library(lmtest)
bptest(Ex06)
| /Regressao/Ex06.R | no_license | grandegulo/FIA_data_mining | R | false | false | 189 | r | library(foreign)
HPRICE1 <- read_dta("Regressao/Aula 9/HPRICE1-Kayo.dta")
Ex06 <- lm(formula = price ~ lotsize + sqrft + bdrms, data = HPRICE1)
summary(Ex06)
library(lmtest)
bptest(Ex06)
|
library(BiocManager)
library(motifbreakR)
library(BSgenome.Hsapiens.UCSC.hg19)
library(tidyverse)
##install and load relevant datasets for RSIDs
BiocManager::install("SNPlocs.Hsapiens.dbSNP144.GRCh37")
library(SNPlocs.Hsapiens.dbSNP144.GRCh37)
df <- readxl::read_xlsx("AHR_CCVs.xlsx")
rsids <- df$rsID
snps.mb <- snp... | /motifbreakR.R | no_license | hsowards/finelymapped | R | false | false | 1,052 | r | library(BiocManager)
library(motifbreakR)
library(BSgenome.Hsapiens.UCSC.hg19)
library(tidyverse)
##install and load relevant datasets for RSIDs
BiocManager::install("SNPlocs.Hsapiens.dbSNP144.GRCh37")
library(SNPlocs.Hsapiens.dbSNP144.GRCh37)
df <- readxl::read_xlsx("AHR_CCVs.xlsx")
rsids <- df$rsID
snps.mb <- snp... |
install.packages("SnowballC")
library(wordcloud)
library(SnowballC)
library(tm)
terror <- searchTwitter("#coldplay",n=1000)
terro_text <- sapply(terror, function(x) x$getText())
terro_text_corpus <- Corpus(VectorSource(terro_text))
# clean the data
#1. remove punctuations
#2. convert all to lower case
#3. remove stop... | /visualizeTweets.R | no_license | hemamalini406/Twitter-Sentiment-Analysis | R | false | false | 1,803 | r | install.packages("SnowballC")
library(wordcloud)
library(SnowballC)
library(tm)
terror <- searchTwitter("#coldplay",n=1000)
terro_text <- sapply(terror, function(x) x$getText())
terro_text_corpus <- Corpus(VectorSource(terro_text))
# clean the data
#1. remove punctuations
#2. convert all to lower case
#3. remove stop... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bold_p.R
\name{bold_p.tbl_summary}
\alias{bold_p.tbl_summary}
\title{Bold significant p-values or q-values}
\usage{
\method{bold_p}{tbl_summary}(x, t = 0.05, q = FALSE, ...)
}
\arguments{
\item{x}{Object created using \code{tbl_summary} funct... | /man/bold_p.tbl_summary.Rd | permissive | Glewando/gtsummary | R | false | true | 1,348 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/bold_p.R
\name{bold_p.tbl_summary}
\alias{bold_p.tbl_summary}
\title{Bold significant p-values or q-values}
\usage{
\method{bold_p}{tbl_summary}(x, t = 0.05, q = FALSE, ...)
}
\arguments{
\item{x}{Object created using \code{tbl_summary} funct... |
library(ape)
testtree <- read.tree("5417_4.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="5417_4_unrooted.txt") | /codeml_files/newick_trees_processed/5417_4/rinput.R | no_license | DaniBoo/cyanobacteria_project | R | false | false | 135 | r | library(ape)
testtree <- read.tree("5417_4.txt")
unrooted_tr <- unroot(testtree)
write.tree(unrooted_tr, file="5417_4_unrooted.txt") |
#' @title
#' Kaplan-Meier survival plot
#'
#' @description
#' I mostly user the package \code{survminer} when making quick and easy
#' survival plots. But when I want to make a plot for publication or for higher
#' quality, I will use this function \code{ggkm}. Most of the code was cobbled
#' together from many differe... | /R/ggkm.R | no_license | emilelatour/laviz | R | false | false | 31,451 | r | #' @title
#' Kaplan-Meier survival plot
#'
#' @description
#' I mostly user the package \code{survminer} when making quick and easy
#' survival plots. But when I want to make a plot for publication or for higher
#' quality, I will use this function \code{ggkm}. Most of the code was cobbled
#' together from many differe... |
4ce62a0c99c8a62b769c50b0ac39b64a tlc02-nonuniform-depth-233.qdimacs 53587 141328 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Miller-Marin/trafficlight-controller/tlc02-nonuniform-depth-233/tlc02-nonuniform-depth-233.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 80 | r | 4ce62a0c99c8a62b769c50b0ac39b64a tlc02-nonuniform-depth-233.qdimacs 53587 141328 |
data1 <- 1:5
data1
#Call names
names(data1)
#Assign names with same function!
names(data1) <- c("a", "b", "c", "d", "e")
data1
data1[4]
data1["d"]
names(data1) <- NULL
data1
#Naming of matices
temp_vect <- rep(c(3, 7, 2), each = 4)
temp_vect
?rbind()
?matrix
#matrix1 <- rbind(temp_vect, nrow(3))
matrix1 <- matr... | /RCourse/4. Matices/ColRowNames.R | no_license | Shaila96/Stastical-Methods-for-Research | R | false | false | 663 | r | data1 <- 1:5
data1
#Call names
names(data1)
#Assign names with same function!
names(data1) <- c("a", "b", "c", "d", "e")
data1
data1[4]
data1["d"]
names(data1) <- NULL
data1
#Naming of matices
temp_vect <- rep(c(3, 7, 2), each = 4)
temp_vect
?rbind()
?matrix
#matrix1 <- rbind(temp_vect, nrow(3))
matrix1 <- matr... |
# HW3
library(readxl)
states <- read_excel("USStates.xlsx")
# 1 #########################################
# A
#Separating data into Obama / McCain voters
states<-states[,6:16]
states<-states[,-2:-6]
obama <- subset(states, ObamaMcCain=="O")[,-1]
mccain <- subset(states, ObamaMcCain=="M")[,-1]
#Calculating the basic st... | /HW3.R | no_license | galenbyrd/multivariate_stats | R | false | false | 10,273 | r | # HW3
library(readxl)
states <- read_excel("USStates.xlsx")
# 1 #########################################
# A
#Separating data into Obama / McCain voters
states<-states[,6:16]
states<-states[,-2:-6]
obama <- subset(states, ObamaMcCain=="O")[,-1]
mccain <- subset(states, ObamaMcCain=="M")[,-1]
#Calculating the basic st... |
# R code is run line by line
# '#' symbol denotes comments and are not run
# You can be creative with # symbols to delineate code segments
###############################################
##### Running Code Directly from R Script #####
###############################################
# Code is run and output appears in... | /rbasics.R | no_license | stwtseng/R-Workshop-2020 | R | false | false | 1,413 | r | # R code is run line by line
# '#' symbol denotes comments and are not run
# You can be creative with # symbols to delineate code segments
###############################################
##### Running Code Directly from R Script #####
###############################################
# Code is run and output appears in... |
#### 03B STR DATA IMPORT SUPPLEMENT ############################################
source("R/01_startup.R")
# Load previous data ------------------------------------------------------
qload("output/str_raw.qsm", nthreads = availableCores())
qload("output/geometry.qsm", nthreads = availableCores())
# Import December... | /R/03a_str_data_import_dec.R | permissive | UPGo-McGill/toronto-report | R | false | false | 5,032 | r | #### 03B STR DATA IMPORT SUPPLEMENT ############################################
source("R/01_startup.R")
# Load previous data ------------------------------------------------------
qload("output/str_raw.qsm", nthreads = availableCores())
qload("output/geometry.qsm", nthreads = availableCores())
# Import December... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DCML.R
\name{MMPY}
\alias{MMPY}
\title{MM regression estimator using Pen~a-Yohai candidates}
\usage{
MMPY(X, y, control, mf)
}
\arguments{
\item{X}{design matrix}
\item{y}{response vector}
\item{control}{a list of control parameters as retu... | /man/MMPY.Rd | no_license | msalibian/RobStatTM | R | false | true | 1,122 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DCML.R
\name{MMPY}
\alias{MMPY}
\title{MM regression estimator using Pen~a-Yohai candidates}
\usage{
MMPY(X, y, control, mf)
}
\arguments{
\item{X}{design matrix}
\item{y}{response vector}
\item{control}{a list of control parameters as retu... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggPlotting.R
\name{plotSCEBarColData}
\alias{plotSCEBarColData}
\title{Bar plot of colData.}
\usage{
plotSCEBarColData(
inSCE,
sample = NULL,
coldata,
groupBy = NULL,
dots = TRUE,
xlab = NULL,
ylab = NULL,
axisSize = 10,
axi... | /man/plotSCEBarColData.Rd | permissive | vidyaap/singleCellTK | R | false | true | 2,301 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggPlotting.R
\name{plotSCEBarColData}
\alias{plotSCEBarColData}
\title{Bar plot of colData.}
\usage{
plotSCEBarColData(
inSCE,
sample = NULL,
coldata,
groupBy = NULL,
dots = TRUE,
xlab = NULL,
ylab = NULL,
axisSize = 10,
axi... |
##### filename: plot3.R
##### goal: this script is to generate plot3.png for course project #1. The data file is assumed to be stored in the data folder in same directory as the script.
##read the entire electric date set
if (!file.exists("./data")) {dir.create("./data")}
powerdata <- read.table("./data/household_pow... | /plot3.R | no_license | wlau0721/ExData_Plotting1 | R | false | false | 1,576 | r | ##### filename: plot3.R
##### goal: this script is to generate plot3.png for course project #1. The data file is assumed to be stored in the data folder in same directory as the script.
##read the entire electric date set
if (!file.exists("./data")) {dir.create("./data")}
powerdata <- read.table("./data/household_pow... |
# Reads ensemble formated Gtf into data table which will be used to annotate
# probes.
#
# Author: Ernur Saka
###############################################################################
#TRERE IS A TRY LINE MUST BE CHECKES FOR THE SPEED
setGeneric("ReadGeneStructure", function(.object)
standardGeneric("R... | /R/ReadGeneStructure.R | no_license | UofLBioinformatics/affyCustomCdf | R | false | false | 4,195 | r | # Reads ensemble formated Gtf into data table which will be used to annotate
# probes.
#
# Author: Ernur Saka
###############################################################################
#TRERE IS A TRY LINE MUST BE CHECKES FOR THE SPEED
setGeneric("ReadGeneStructure", function(.object)
standardGeneric("R... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/exportPDF.R
\name{exportPdf}
\alias{exportPdf}
\alias{exportPdf.redcapDbConnection}
\alias{exportPdf.redcapApiConnection}
\title{Export PDF file of Data Collection Instruments (either as blank or with data)}
\usage{
exportPdf(rcon, di... | /man/exportPdf.Rd | no_license | kholsteen/redcapAPI | R | false | true | 3,212 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/exportPDF.R
\name{exportPdf}
\alias{exportPdf}
\alias{exportPdf.redcapDbConnection}
\alias{exportPdf.redcapApiConnection}
\title{Export PDF file of Data Collection Instruments (either as blank or with data)}
\usage{
exportPdf(rcon, di... |
#' Append all available chunks to a discoveryengine definition
#'
#' @param constituency A discoveryengine definition
#' @return data frame with columns from all available chunks
#' @seealso \code{\link{basic_bio}},
#' \code{\link{degrees}},
#' \code{\link{employment}},
#' \code{\link{rating}},
#' \code{\link{screening... | /R/chunk-all.R | no_license | tarakc02/discoappend | R | false | false | 2,473 | r | #' Append all available chunks to a discoveryengine definition
#'
#' @param constituency A discoveryengine definition
#' @return data frame with columns from all available chunks
#' @seealso \code{\link{basic_bio}},
#' \code{\link{degrees}},
#' \code{\link{employment}},
#' \code{\link{rating}},
#' \code{\link{screening... |
require("EpiDISH")
require("CellMix")
require("estimate")
require("MCPcounter")
require("xCell")
require(pheatmap)
require(magrittr)
library(wesanderson)
# data in the form of a matrix, gene names in row names and sample names in column names
combinedEstimates <- function(data, LM22 = NULL, AbbasGenes = NULL, datadir ... | /combine_immune_function.R | no_license | marissadi/celltype | R | false | false | 5,356 | r | require("EpiDISH")
require("CellMix")
require("estimate")
require("MCPcounter")
require("xCell")
require(pheatmap)
require(magrittr)
library(wesanderson)
# data in the form of a matrix, gene names in row names and sample names in column names
combinedEstimates <- function(data, LM22 = NULL, AbbasGenes = NULL, datadir ... |
#' Combine two MCMC objects by dimensions
#'
#' Combines multiple MCMC objects (with the same parameters, chains and iterations)
#' by parameter dimensions.
#'
#' @param x An MCMC object.
#' @param x2 a second MCMC object.
#' @param along A count (or NULL) indicating the parameter dimension to bind along.
#' @param ...... | /R/bind-dimensions.R | permissive | krlmlr/mcmcr | R | false | false | 1,926 | r | #' Combine two MCMC objects by dimensions
#'
#' Combines multiple MCMC objects (with the same parameters, chains and iterations)
#' by parameter dimensions.
#'
#' @param x An MCMC object.
#' @param x2 a second MCMC object.
#' @param along A count (or NULL) indicating the parameter dimension to bind along.
#' @param ...... |
\name{sequentialDistances}
\alias{sequentialDistances}
\title{ SequentialDistances}
\description{
Returns a vector containing in a row the distances of consecutive rows of data.
}
\usage{
sequentialDistances(data, distance)
}
\arguments{
\item{data}{ A matrix containing the data as row vectors.}
\item{di... | /DbtTools/Distances/man/sequentialDistances.Rd | no_license | markus-flicke/KD_Projekt_1 | R | false | false | 555 | rd | \name{sequentialDistances}
\alias{sequentialDistances}
\title{ SequentialDistances}
\description{
Returns a vector containing in a row the distances of consecutive rows of data.
}
\usage{
sequentialDistances(data, distance)
}
\arguments{
\item{data}{ A matrix containing the data as row vectors.}
\item{di... |
plot4 <- function(){
library(sqldf)
##Download the file to local directory and read it.
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",
"household_power_consumption.zip")
unzip("household_power... | /plot4.R | no_license | bgarnz/ExData_Plotting1 | R | false | false | 1,714 | r | plot4 <- function(){
library(sqldf)
##Download the file to local directory and read it.
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",
"household_power_consumption.zip")
unzip("household_power... |
# 24.1
library("MASS")
?UScereal
summary(UScereal)
pairs(UScereal)
cereal <- UScereal
mfr <- as.numeric(cereal$mfr)
mfr[mfr>2] <- 3
cereal$mfr <- factor(mfr, labels = c("General Mills", "Kelloggs", "Other"))
cereal$shelf <- factor(cereal$shelf)
library(ggplot2)
b1 <- ggplot(cereal, aes(x = protein, y = calories, col ... | /ch24/exercises.R | no_license | MikeMKH/the-book-of-r | R | false | false | 4,071 | r | # 24.1
library("MASS")
?UScereal
summary(UScereal)
pairs(UScereal)
cereal <- UScereal
mfr <- as.numeric(cereal$mfr)
mfr[mfr>2] <- 3
cereal$mfr <- factor(mfr, labels = c("General Mills", "Kelloggs", "Other"))
cereal$shelf <- factor(cereal$shelf)
library(ggplot2)
b1 <- ggplot(cereal, aes(x = protein, y = calories, col ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gmo.r
\name{print.gmo.glogit}
\alias{print.gmo.glogit}
\title{Print GMO glogit}
\usage{
\method{print}{gmo.glogit}(x, ...)
}
\arguments{
\item{x}{gom glogit object}
\item{...}{additional params to \code{print(x, ...)}}
}
\value{
None
}
\desc... | /man/print.gmo.glogit.Rd | permissive | Express50/omgee | R | false | true | 357 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gmo.r
\name{print.gmo.glogit}
\alias{print.gmo.glogit}
\title{Print GMO glogit}
\usage{
\method{print}{gmo.glogit}(x, ...)
}
\arguments{
\item{x}{gom glogit object}
\item{...}{additional params to \code{print(x, ...)}}
}
\value{
None
}
\desc... |
NAtoFALSE <- function(x){
ifelse(is.na(x),FALSE,x)
} | /R/08_outputHelpers_NAtoFALSE.R | no_license | SachaEpskamp/psychonetrics | R | false | false | 54 | r | NAtoFALSE <- function(x){
ifelse(is.na(x),FALSE,x)
} |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{KenyaSNP_EHHdata}
\alias{KenyaSNP_EHHdata}
\title{Lineage Map of Kenya SNP data}
\format{
A data frame
}
\description{
Lineage map used in the EHH analysis.
}
\references{
Stu Field, Martin Donnelly
}
| /man/KenyaSNP_EHHdata.Rd | permissive | stufield/mosquitoSNP | R | false | true | 307 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{KenyaSNP_EHHdata}
\alias{KenyaSNP_EHHdata}
\title{Lineage Map of Kenya SNP data}
\format{
A data frame
}
\description{
Lineage map used in the EHH analysis.
}
\references{
Stu Field, Martin Donnelly
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mtbs-transform.R
\name{get_transform_mtbs}
\alias{get_transform_mtbs}
\title{Transform the MTBS file}
\usage{
get_transform_mtbs(fpath, exp_orig_colnames, new_colnames, target_srid = 4326)
}
\arguments{
\item{fpath}{(character) : The path to ... | /man/get_transform_mtbs.Rd | permissive | shamindras/backburner | R | false | true | 829 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/mtbs-transform.R
\name{get_transform_mtbs}
\alias{get_transform_mtbs}
\title{Transform the MTBS file}
\usage{
get_transform_mtbs(fpath, exp_orig_colnames, new_colnames, target_srid = 4326)
}
\arguments{
\item{fpath}{(character) : The path to ... |
basedir <- "//home/hoski/Tac2018/HCR/Plaice"
basedir1 <- "/home/hoski/Tac2018/HCR/"
source(paste(basedir1,"Model/Read.r",sep="/"))
inputprogfile <- paste(basedir,"Files/plaiceprognosis.dat.biorule",sep="/")
progoutfile <- "plaiceprognosis.dat"
savefile <- "HCRrun.rdata"
sumfile <- "HCRrunsum.rdata"
inputfile <- "icepl... | /Files/ReadPlaice.r | permissive | einarhjorleifsson/23_mse_2019 | R | false | false | 2,375 | r | basedir <- "//home/hoski/Tac2018/HCR/Plaice"
basedir1 <- "/home/hoski/Tac2018/HCR/"
source(paste(basedir1,"Model/Read.r",sep="/"))
inputprogfile <- paste(basedir,"Files/plaiceprognosis.dat.biorule",sep="/")
progoutfile <- "plaiceprognosis.dat"
savefile <- "HCRrun.rdata"
sumfile <- "HCRrunsum.rdata"
inputfile <- "icepl... |
#' Asks for user input with a generic Apple dialogue box.
#'
#' Note: only works on Apple computers, as BitBar is Apple-only.
#'
#' @param query Prompt to display. Defaults to "Input below".
#' @param submitButton Button to submit input. Defaults to "Submit".
#' @param cancelButton Button to cancel. Defaults to "Cancel... | /R/bb_PopUp.R | no_license | jsowder/bitbaR | R | false | false | 1,268 | r | #' Asks for user input with a generic Apple dialogue box.
#'
#' Note: only works on Apple computers, as BitBar is Apple-only.
#'
#' @param query Prompt to display. Defaults to "Input below".
#' @param submitButton Button to submit input. Defaults to "Submit".
#' @param cancelButton Button to cancel. Defaults to "Cancel... |
#' Search for a place, name or location.
#'
#' This function searches a locally created SQLite database created
#' from csv files.
#'
#' @export
#' @param query A place ID. If left NULL, returns the table, which is of
#' class \code{tbl}, which can then be passed on to other
#' \pkg{dplyr} functions.
#' @param ... Furt... | /R/pl_search.R | permissive | stevenysw/pleiades | R | false | false | 4,072 | r | #' Search for a place, name or location.
#'
#' This function searches a locally created SQLite database created
#' from csv files.
#'
#' @export
#' @param query A place ID. If left NULL, returns the table, which is of
#' class \code{tbl}, which can then be passed on to other
#' \pkg{dplyr} functions.
#' @param ... Furt... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/classes.R
\docType{class}
\name{cmt_list-class}
\alias{cmt_list-class}
\title{S4 cmt_list class}
\description{
S4 cmt_list class
}
\details{
cmt_list is a \code{\link{numericlist-class}}
}
| /rdev/man/cmt_list-class.Rd | no_license | curtisKJ/mrgsolve | R | false | true | 268 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/classes.R
\docType{class}
\name{cmt_list-class}
\alias{cmt_list-class}
\title{S4 cmt_list class}
\description{
S4 cmt_list class
}
\details{
cmt_list is a \code{\link{numericlist-class}}
}
|
library(readODS)
library(readxl)
library(dplyr)
print("ULEVs")
yearstart <- 2015
yearend <- format(Sys.Date(), "%Y")
### Set the Working Directory for the Scripts ###
setwd("J:/ENERGY BRANCH/Statistics/Energy Statistics Processing")
ULEV <- read_ods("Data Sources/Vehicles/CurrentULEV.ods", skip = 6, sheet = "VEH0... | /Legacy/R Scripts/Part 1/ULEVs.R | no_license | ischerr/ScottishEnergyStatsProcessing | R | false | false | 6,899 | r | library(readODS)
library(readxl)
library(dplyr)
print("ULEVs")
yearstart <- 2015
yearend <- format(Sys.Date(), "%Y")
### Set the Working Directory for the Scripts ###
setwd("J:/ENERGY BRANCH/Statistics/Energy Statistics Processing")
ULEV <- read_ods("Data Sources/Vehicles/CurrentULEV.ods", skip = 6, sheet = "VEH0... |
"surface.krig"<-
function(obj, grid.list = NA, extrap = F, graphics.reset = T, xlab = NULL, ylab
= NULL, main = NULL, zlab = NULL, zlim = NULL, levels = NULL,
nx=30, ny=30, ...)
{
## modified so that you can give main, and ylab as arguments
## in ... and have them passed correctly
old.par <- par("mfrow", "o... | /R/surface.krig.R | no_license | cran/funfits | R | false | false | 798 | r | "surface.krig"<-
function(obj, grid.list = NA, extrap = F, graphics.reset = T, xlab = NULL, ylab
= NULL, main = NULL, zlab = NULL, zlim = NULL, levels = NULL,
nx=30, ny=30, ...)
{
## modified so that you can give main, and ylab as arguments
## in ... and have them passed correctly
old.par <- par("mfrow", "o... |
# conversion from standard deviation to full width at half maximum
std2fwhm <- function(std) return(std*2.35482)
| /R/std2fwhm.R | permissive | ilkkavir/radarPointings | R | false | false | 114 | r | # conversion from standard deviation to full width at half maximum
std2fwhm <- function(std) return(std*2.35482)
|
# N-CELLS
coordinates <- read.delim("enhancerAnnotation/peakAnalysis/coordinates.bed",header = FALSE)
N_ac <- read.delim(file = "enhancerAnnotation/peakAnalysis/N_ac_per_sample.tab",header = FALSE, sep = " ")
N_me <- read.delim(file = "enhancerAnnotation/peakAnalysis/N_me_per_sample.tab",header = FALSE, sep = " ")
peak... | /enhancerAnnotation.R | no_license | cailab-tamu/ConsensusPeaks | R | false | false | 2,384 | r | # N-CELLS
coordinates <- read.delim("enhancerAnnotation/peakAnalysis/coordinates.bed",header = FALSE)
N_ac <- read.delim(file = "enhancerAnnotation/peakAnalysis/N_ac_per_sample.tab",header = FALSE, sep = " ")
N_me <- read.delim(file = "enhancerAnnotation/peakAnalysis/N_me_per_sample.tab",header = FALSE, sep = " ")
peak... |
# remove all saved values from R
rm(list=ls())
library("Amelia")
library("ellipse")
library("plyr")
library("corrgram")
library("Hmisc")
library(caret)
library(pscl)
library(glmnet)
# create a PDF file. The file location needs to be edited.
pdf("... | /src/logisticstepwisetitanic.R | no_license | markwh/STAT691P | R | false | false | 12,397 | r |
# remove all saved values from R
rm(list=ls())
library("Amelia")
library("ellipse")
library("plyr")
library("corrgram")
library("Hmisc")
library(caret)
library(pscl)
library(glmnet)
# create a PDF file. The file location needs to be edited.
pdf("... |
library(rsurfer)
### Name: eliminateabnormalities.rows
### Title: Eliminate Abnormal Rows
### Aliases: eliminateabnormalities.rows
### ** Examples
data <- generaterandomsubjects(10)
eliminateabnormalities.rows(data)
| /data/genthat_extracted_code/rsurfer/examples/eliminateabnormalities.rows.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 223 | r | library(rsurfer)
### Name: eliminateabnormalities.rows
### Title: Eliminate Abnormal Rows
### Aliases: eliminateabnormalities.rows
### ** Examples
data <- generaterandomsubjects(10)
eliminateabnormalities.rows(data)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.