id stringlengths 40 40 | repo_name stringlengths 5 110 | path stringlengths 2 233 | content stringlengths 0 1.03M ⌀ | size int32 0 60M ⌀ | license stringclasses 15
values |
|---|---|---|---|---|---|
b0a4868f2742e69b955bca24ca5693de1b30df72 | Ectelion/facial-expression-recognition | SVMClassifier.R | # Dependencies
library(kernlab)
library(e1071)
## Optimal features for multi-class SVM classification (landmarks displacement approach)
overallOptimalFormulaSVMDisplacement <- emotion ~ X33+X55+X65+X89+X91+X111+X117+X121+X127+X128+X130
## Optimal features for multi-class SVM classification using Kernlab ksvm ... | 3,404 | gpl-3.0 |
11814d31781664e48c6465f5dd3461cf901cb30d | ClaraHapp/funData | R/plotMethods.R | ### Plot methods for functional data objects ###
#### Standard Plot ####
#' Plotting univariate functional data
#'
#' This function plots observations of univariate functional data on their
#' domain.
#'
#' If some observations contain missing values (coded via \code{NA}), the
#' functions can be interpolated usi... | 32,541 | gpl-2.0 |
404c13dc043dd4a3782a2adec6d9bd73117ec733 | dpcrook/SR_Foundations_DS_Fall_2015 | 15.071x_The_Analytics_Edge/Unit02_Linear_Regression/Unit2_Recitation.R | # VIDEO 1
# Read in the data
NBA = read.csv("NBA_train.csv")
str(NBA)
# VIDEO 2
# How many wins to make the playoffs?
table(NBA$W, NBA$Playoffs)
madePlayoffs <- subset(NBA, Playoffs == 1 )
# plot(madePlayoffs$W)
hist(madePlayoffs$W, breaks = 30)
summary(madePlayoffs$W)
# Compute Points Difference
NBA$PTSdiff = NB... | 1,836 | mit |
c36204a7c17e96503c0edfb6c1e72aa510d041ee | ColumbusCollaboratory/electron-quick-start | R-Portable-Mac/library/broom/doc/broom_and_dplyr.R | ## ----opts_chunk, echo=FALSE----------------------------------------------
library(knitr)
opts_chunk$set(message=FALSE, warning=FALSE)
## ----setup---------------------------------------------------------------
library(broom)
library(dplyr)
data(Orange)
dim(Orange)
head(Orange)
## ----------------------------------... | 1,567 | cc0-1.0 |
df2d3c33b55492ace81c544cc6f49ee047a77aaa | daattali/shiny-server | peer-review/ui.R | # Dean Attali
# September 2014
# This is the ui portion of a shiny app that mimics a Google form that will
# allow students to submit peer review marks
source("helpers.R")
library(shiny)
shinyUI(fluidPage(
# add external JS and CSS
singleton(
tags$head(includeScript(file.path('www', 'message-handler.js'... | 2,556 | mit |
df2d3c33b55492ace81c544cc6f49ee047a77aaa | englianhu/daattali-shiny-server | peer-review/ui.R | # Dean Attali
# September 2014
# This is the ui portion of a shiny app that mimics a Google form that will
# allow students to submit peer review marks
source("helpers.R")
library(shiny)
shinyUI(fluidPage(
# add external JS and CSS
singleton(
tags$head(includeScript(file.path('www', 'message-handler.js'... | 2,556 | mit |
df2d3c33b55492ace81c544cc6f49ee047a77aaa | LucianoSP/shiny-server_daattali | peer-review/ui.R | # Dean Attali
# September 2014
# This is the ui portion of a shiny app that mimics a Google form that will
# allow students to submit peer review marks
source("helpers.R")
library(shiny)
shinyUI(fluidPage(
# add external JS and CSS
singleton(
tags$head(includeScript(file.path('www', 'message-handler.js'... | 2,556 | mit |
4d2551acae28d64da427abf382913fdcba568f1d | k-barton/komodor | src/R/pkg/R/Rmd2html.R | #' Convert Rmarkdown file to HTML
#'
#' @export
#' @param file the path to the Rmarkdown input file.
#' @param pandoc character string. Path to 'pandoc' executable or `NULL` in
#' which case `pandoc` is searched for on the system path.
#' @param verbose if `TRUE`, messages from `knitr` and `pandoc` are print... | 2,159 | gpl-2.0 |
b5bc84b8697eb10085c6191c4d6004180c567036 | rdinter/NOAA-migration | 1-tidy/migration/1-migration_controls_tidy.R | # Robert Dinterman
# ---- Start --------------------------------------------------------------
print(paste0("Started 1-migration_controls_tidy at ", Sys.time()))
# library(dplyr)
# library(maptools)
# library(readr)
# library(tidyr)
# Create a directory for the data
localDir <- "1-tidy/migration"
if (!file.exists(l... | 458 | mit |
c2cb05d8ba687223ae3f464cda114a9223412343 | teramonagi/dpurifyr | tests/testthat/test-chain.R | context("chain")
expect_almost_equal <- function(x, y, tolerance=1e-4)
{
expect_equal(sqrt(sum(x-y)^2), 0.0, tolerance=tolerance)
}
test_that("scale_standarad & scale_minmax combination are agree with each preprocessing and dpurifyr::apply", {
df <- head(iris, 10)
rng <- c(0, 1)
pp <- df %>%
dp... | 919 | mit |
3e1110a90bf8589864399ec1dbd0f5dc81900c91 | alexeckert/parallelDist | R/parDist.R | ## parDist.R
##
## Copyright (C) 2017, 2021 Alexander Eckert
##
## This file is part of parallelDist.
##
## parallelDist is free software: you can redistribute it and/or modify it
## under the terms of the GNU General Public License as published by
## the Free Software Foundation, either version 2 of the License, or
... | 5,590 | gpl-2.0 |
659b445a88916821d40439c54622560f8b90d9cc | AccipitrisArti/APPR-2017 | shiny/server.R | library(shiny)
require(stats)
library(mgcv)
#source("../vizualizacija/vizualizacija.r", encoding = "UTF-8")
shinyServer(function(input, output) {
output$tabele <- DT::renderDataTable({
dcast(velika_tabela[c('leto', 'drzava', input$sprem1)], drzava ~ leto, value.var = input$sprem1) %>%
rename(`Država` = dr... | 6,059 | mit |
01b27ceb5c5d5302316aaf85ac8f06f8dff8c30d | marchtaylor/sinkr | R/plotStacked.R | #' @title Stacked plot
#' @description \code{plotStacked} makes a stacked plot where each \code{y}
#' series is plotted on top of each other using filled polygons.
#' @param x A vector of values
#' @param y A matrix of data series (columns) corresponding to x
#' @param order.method Method of ordering y plotting order.... | 3,997 | gpl-3.0 |
a765154aee43a1eb55a6ac8b26a9edec0e0dd553 | Rebecca1217/RTest | RCode/auditCNPC.R | library(RODBC)
library(GCAMCPUB)
library(openxlsx)
library(data.table)
dateBegin <- as.Date("2016-09-16")
dateBased <- as.Date("2016-10-17")
myConn <- activate_conn(myconn_)
# data loading ------------------------------------------------------------
sql <- "select b.Class_L3_CN, Sec_Name, IAS, AV_Book_LC, AV_Mix_LC, ... | 3,948 | gpl-2.0 |
c079798088a679448cd43c362710f7bb782d5004 | mdozmorov/deconvolution | functions/mtx.rand.R | #' Randomize a matrix
#'
#' A function to randomize a matrix using different methods
#'
#' @param mtx a matrix of numerical values
#' @param randomize a method to randomize the matrix.
#' "row" (default) - replace each row with numbers sampled from a normal distribution with mean and SD of the original row. M... | 2,128 | artistic-2.0 |
b82b5365b9a800b0031f8914fb907a258b7286c6 | pridkett/TSASimulation | stats.R | df <- read.table("sim.csv", header=TRUE)
# fix something strangely wrong with my simulation
df$risk_cancer_per_micro_sv <- rnorm(10000, mean=1/12500000, sd=1/1250000000)
df$expected_cancer_fatalities <- df$passenger_enplanements * df$passenger_exposure_per_screening * df$percentage_ait_screening * df$risk_cancer_per_m... | 3,628 | mit |
cc04be120f35d8121cb0d4d9df3fbdaa826f0c96 | OHDSI/ETL-CDMBuilder | man/TRUVEN_CCAE_MDCR/ARCHIVE/TEST_CASES_2017/Truven_TestingFramework/R/MeasurementTests.R | createMeasurementTests <- function () {
if (Sys.getenv("truvenType") != "MDCD")
{
patient <- createPatient()
encounter <- createEncounter()
declareTest("LOINC code does not have a dash in the second to last character, record is dropped", source_pid = patient$enrolid, cdm_pid = patient$person_id)
ad... | 2,528 | apache-2.0 |
cc04be120f35d8121cb0d4d9df3fbdaa826f0c96 | OHDSI/ETL-CDMBuilder | man/TRUVEN_CCAE_MDCR/ARCHIVE/TEST_CASES_2017_MDCD/Truven_TestingFramework/R/MeasurementTests.R | createMeasurementTests <- function () {
if (Sys.getenv("truvenType") != "MDCD")
{
patient <- createPatient()
encounter <- createEncounter()
declareTest("LOINC code does not have a dash in the second to last character, record is dropped", source_pid = patient$enrolid, cdm_pid = patient$person_id)
ad... | 2,528 | apache-2.0 |
94e1d1bb0911955c2b5110be4993de658caad69b | grishagin/SangerSeq | _code_SangerSeq-MAIN-v1.R | ######################################
#script to perform analyses of multiple *.ab1 files
#asks for folders with:
#code dependencies, *.ab1 files, and *.txt files with theoretical sequences
#returns
#(1) chromatograms
#(2) sequences
#(3) experimental sequences aligned with theoretical ones
main.code.folder<-"D:\\_\\... | 1,877 | gpl-2.0 |
ab25a59b8b6888dab4b94cea58e15468dff694fb | rmhorton/statprog | week_03_linear_algebra/office_hours_20140214.R | attach(mtcars)
head(mtcars)
layout(matrix(c(1,1,2,3), 2, 2, byrow = TRUE))
hist(wt)
hist(mpg)
hist(disp)
detach(mtcars)
matrix(c(1,1,2,3), 2, 2, byrow = TRUE)
attach(mtcars)
mtcars
disp
hist(disp)
layout(matrix(c(1,1,2,3), 2, 2, byrow = TRUE))
hist(disp)
plot(mpg ~ wt)
pie(disp)
dev.new()
layout(matrix(c(1,2,1,3),2,2,... | 5,090 | gpl-2.0 |
e3134d160efb56f8682c735be7d9a253425b4a6d | GeoscienceAustralia/ptha | ptha_access/example_event_access_scripts/gauge_and_deformation_plots/find_unit_sources_near_hypocentre.R | #
# Copied from PTHA codes to get events similar to DART buoys
#
find_unit_sources_near_hypocentre<-function(
event_hypocentre,
unit_source_geometry,
unit_source_statistics,
event_magnitude,
scaling_relation_type='Strasser'){
# Find which events contain the hypocentre, by finding which unit so... | 2,005 | bsd-3-clause |
f0d4cace1530d5f212ec60829e93c7cb6003003d | robertzk/tundra | R/hooks.R | #' Add a hook to a tundraContainer.
#'
#' Hooks are useful for defining additional checks that should be
#' performed prior to and during training and prediction. For example,
#' one might want to issue a warning if the user is predicting on
#' rows that were used for training, or a sanity check might be
#' present p... | 2,895 | mit |
f0d4cace1530d5f212ec60829e93c7cb6003003d | syberia/tundra | R/hooks.R | #' Add a hook to a tundraContainer.
#'
#' Hooks are useful for defining additional checks that should be
#' performed prior to and during training and prediction. For example,
#' one might want to issue a warning if the user is predicting on
#' rows that were used for training, or a sanity check might be
#' present p... | 2,895 | mit |
49fbf4471611664ddceda08c77b8c7ad3f67571b | johndharrison/webpagetestr | tests/testthat/test-getTesters.R | context("getTesters")
test_that("canGetTesters", {
WPT <- server()
testers <- getTesters(WPT)
expect_s3_class(testers, "testers")
})
test_that("canGetErrorFromGetTesters", {
WPT <- server()
with_mock(
`httr::POST` = function(...){
list(statusCode = 400,
statusText = "Some testers erro... | 696 | mit |
c3bfbb42e771ed905c6b18dee86a627f584dcbf9 | pedrovictori/recombinationRF | perfTestROCR.R | library(ROCR)
library(randomForest)
library(readr)
load("fit1.RData")
validation = read_csv("validation.csv")
prediction = predict(fit,validation, type = "prob")
predictionROCR = prediction(prediction[,2], validation$isHot)
perf_AUC=performance(predictionROCR,"auc") #Calculate the AUC value
AUC=perf_AUC@y.values[[1... | 502 | mit |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/java/scagnostics/workspace/workspace_al/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/project/scagnostics/java/workspace/workspace_ak/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/project/scagnostics/java/workspace/workspace_ap/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/java/scagnostics/workspace/workspace_ac/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/java/scagnostics/workspace/workspace_an/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/java/scagnostics/workspace/workspace_ab/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/project/scagnostics/java/workspace/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/project/scagnostics/java/workspace/workspace_aa/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/project/scagnostics/java/workspace/workspace_ad/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
8b07aaf92129260eb189d00b76e0577c21fa84a4 | maatouk/constrKriging | R/simulate.kmConvex1D.R | #' @title Simulate responses vectors from a kmConvex1D object
#' @param object kmConvex1D model
#' @param newdata a vector which represents the points where to performs predictions
#' @param nsim the number of response vectors to simulate
#' @param seed optional random seed
#' @import MASS
#' @examples
#' design = c(... | 2,152 | gpl-3.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/java/scagnostics/workspace/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/java/scagnostics/workspace/workspace_ap/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/project/scagnostics/java/workspace/workspace_ai/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/project/scagnostics/java/workspace/workspace_aj/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/project/scagnostics/java/workspace/workspace_ao/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/R/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/java/scagnostics/workspace/workspace_ae/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/java/scagnostics/workspace/workspace_ag/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/project/scagnostics/java/workspace/workspace_af/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/project/scagnostics/java/workspace/workspace_ae/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/project/scagnostics/java/workspace/workspace_al/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/java/scagnostics/workspace/workspace_ak/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/java/scagnostics/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/project/scagnostics/java/workspace/workspace_ag/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/project/scagnostics/java/workspace/workspace_ac/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/java/scagnostics/workspace/workspace_ah/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/java/scagnostics/workspace/workspace_ai/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/project/scagnostics/java/workspace/workspace_am/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/java/scagnostics/workspace/workspace_ad/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/java/scagnostics/workspace/workspace_aj/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/java/scagnostics/workspace/workspace_am/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/project/scagnostics/java/workspace/workspace_ah/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/java/scagnostics/workspace/workspace_af/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/project/scagnostics/java/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/project/scagnostics/java/workspace/workspace_ab/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/project/scagnostics/java/workspace/workspace_an/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/java/scagnostics/workspace/workspace_ao/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
de8ccf5393219bd58bd73ca820f8ed24cfb09495 | ElvisLouis/code | work/java/scagnostics/workspace/workspace_aa/auto_alpha.R | library(ggplot2)
library(scagnostics)
inputCSV <- paste(directory, originName, ".csv", sep = "")
pngName <- paste(outputDirectory, originName, ".png", sep = "")
alphaHullInfo <- "./alphaHull.csv"
width <- 320
height <- 320
lwdAlpha = 3
col = ""
flag <- grep("rate_0.2", originName, value = F)
if(length(flag) != 0)
... | 2,239 | gpl-2.0 |
1497588766471c4b9a421b1e384da1c4a171794c | gertvv/gemtc | gemtc/R/likelihoods.R | #' @include template.R
fixna <- function(x, v) {
x[is.na(x)] <- v
x
}
likelihood.code.binom <- list(
read.template("gemtc.likelihood.binom.txt"),
read.template("gemtc.likelihood.binom.power.txt"))
deviance.binom <- function(data, val, alpha=1) {
r <- data$r
n <- data$n
rfit <- val
2 * alpha * (fixna(... | 1,069 | gpl-3.0 |
d6b523bebcbcda687c6ea375d71db769c9c0ff5f | ArunChauhan/cxxr | src/extra/testr/filtered-test-suite/isrecursive/tc_isrecursive_4.R | expected <- TRUE
test(id=0, code={
argv <- list(expression(quote(expression(4, 1.12837916709551))))
do.call('is.recursive', argv);
}, o = expected);
| 175 | gpl-2.0 |
d6b523bebcbcda687c6ea375d71db769c9c0ff5f | cxxr-devel/cxxr | src/extra/testr/filtered-test-suite/isrecursive/tc_isrecursive_4.R | expected <- TRUE
test(id=0, code={
argv <- list(expression(quote(expression(4, 1.12837916709551))))
do.call('is.recursive', argv);
}, o = expected);
| 175 | gpl-2.0 |
d6b523bebcbcda687c6ea375d71db769c9c0ff5f | kmillar/cxxr | src/extra/testr/filtered-test-suite/isrecursive/tc_isrecursive_4.R | expected <- TRUE
test(id=0, code={
argv <- list(expression(quote(expression(4, 1.12837916709551))))
do.call('is.recursive', argv);
}, o = expected);
| 175 | gpl-2.0 |
d6b523bebcbcda687c6ea375d71db769c9c0ff5f | rho-devel/rho | src/extra/testr/filtered-test-suite/isrecursive/tc_isrecursive_4.R | expected <- TRUE
test(id=0, code={
argv <- list(expression(quote(expression(4, 1.12837916709551))))
do.call('is.recursive', argv);
}, o = expected);
| 175 | gpl-2.0 |
d6b523bebcbcda687c6ea375d71db769c9c0ff5f | kmillar/rho | src/extra/testr/filtered-test-suite/isrecursive/tc_isrecursive_4.R | expected <- TRUE
test(id=0, code={
argv <- list(expression(quote(expression(4, 1.12837916709551))))
do.call('is.recursive', argv);
}, o = expected);
| 175 | gpl-2.0 |
d6b523bebcbcda687c6ea375d71db769c9c0ff5f | krlmlr/cxxr | src/extra/testr/filtered-test-suite/isrecursive/tc_isrecursive_4.R | expected <- TRUE
test(id=0, code={
argv <- list(expression(quote(expression(4, 1.12837916709551))))
do.call('is.recursive', argv);
}, o = expected);
| 175 | gpl-2.0 |
6437e3df7f8d5d53441c0bd4b5fc599624859cae | droglenc/FSAdata | R/WalleyeWad.R | #' @title Catches-at-age for male and female Walleye from Lake Winnebago, WI, 2010.
#'
#' @description Catches-at-age for male and female Walleye from Lake Winnebago, WI, 2010.
#'
#' @details Koenigs et al. (2015) captured adult Walleye from Lake Winnebago during spawning assessments in 2010. The sex was recorded and... | 1,416 | gpl-2.0 |
24deef4a89621848b3b84b7159b44105e146a35f | gtesei/fast-furious | competitions/caterpillar-tube-pricing/build_tube_tech_v2.R | ################################
# The main difference of this v2 version respect baseline
# is that here we extract also weigth and orientation from bom for each
# tube component
################################
library(binhf)
library(fBasics)
library(lattice)
require(xgboost)
require(methods)
library(data.table)
... | 11,390 | mit |
56473feedae8d8550d1a00d9c2509e9ff5dbc3c0 | timyates/EnsemblRest | R/Classes.R | # Classes for data-types that have a non-R ish structure
setRefClass( "EnsHomologyResponse",
fields=list(
id='character',
homologies='data.frame'
),
methods = list(
initialize = function( x=NULL, ... ) {
'Initialize a Homol... | 18,061 | apache-2.0 |
38018f78e69d5d99b2131c77e7c1cfcaf1ec789e | MaximePonsart/Velib | JLA _ script_julien_Lamarche.R | rep <- file.path("//telemaque","Usergroupes","CEPE-FORMATION","Salle 1")
setwd(rep)
# import données :
don <- read.csv2(file = file.path(rep,"donneesSFR.txt"),sep=" ", dec=".")
y <- don$Y
type_var <- sapply(X = don , FUN = class)
table(type_var)
summary(don)
## Nous n'avons que des variables numériques
## ... | 5,288 | gpl-3.0 |
afe9eb640c908b66d7b40c84ded32075892c69ab | vivihe/zoocat | tests/testthat/test_filter_col.R | context('Test filter_col')
test_that('test filter_col_q.zoocat and filter_col.zoocat', {
x <- matrix(1 : 20, nrow = 5)
colAttr <- data.frame(month = c(2, 3, 5, 6),
site = c('a', 'a', 'b', 'b'))
zc <- zoocat(x, order.by = 1991 : 1995, colattr = colAttr)
expect_equal(filter_co... | 2,726 | gpl-3.0 |
b5c597e6e54eaaaf02deb6844030549193c68889 | JoeyBernhardt/OA-meta | R/01_weighted_mean_growth_main_reverse.R | library(tidyverse)
library(janitor)
library(purrr)
library(broom)
library(dplyr)
library(tidyr)
library(modelr)
library(readr)
library(ggplot2)
# Under the random effects model we need to take account of two levels of
# sampling, and two source of error. First, the true effect sizes θ are distributed
# about μ with a ... | 9,961 | mit |
5716f01ef50d3fb3e9a504354d8f355d8301af12 | YvesBas/Tadarida-L | examples/Crex_crex/MakeWAVFileTestSet.R | #####################################################################################
#
# Sample test set
# SamplingRecordingsCrex.R
#
# INPUT: a lot of (eg. 100000) WAV files in subdirectories
#
# OUTPUT: a random sample of these WAV files copied into a new directory into subdirectories
#
#
###########... | 1,467 | lgpl-3.0 |
afe9eb640c908b66d7b40c84ded32075892c69ab | ran-ran/zoocat | tests/testthat/test_filter_col.R | context('Test filter_col')
test_that('test filter_col_q.zoocat and filter_col.zoocat', {
x <- matrix(1 : 20, nrow = 5)
colAttr <- data.frame(month = c(2, 3, 5, 6),
site = c('a', 'a', 'b', 'b'))
zc <- zoocat(x, order.by = 1991 : 1995, colattr = colAttr)
expect_equal(filter_co... | 2,726 | gpl-3.0 |
b09b549d5905efcf113ffec947ebe03dbe3f1b87 | wesm/arrow | r/tests/testthat/test-dataset-dplyr.R | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not u... | 11,188 | apache-2.0 |
fc1ba71c7e9211fbc16b19f82cc3a85aa97b494b | andyikchu/insightproject | inputdata/trades.R | set.seed(1)
traderIDs = seq(1,1000000)
tickerIDs = c("MMM", "AXP", "AAPL", "BA", "CAT", "CVX", "CSCO", "KO", "DD", "XOM", "GE", "GS", "HD", "INTC", "IBM", "JNJ", "JPM", "MCD", "MRK", "MSFT", "NKE", "PFE", "PG", "TRV", "UNH", "UTX", "VZ", "V", "WMT", "DIS")
numtraders_persec=500000
library(rkafka)
kafkanode="ec2-54-2... | 1,128 | gpl-2.0 |
04b83dfc60c7d574463522893acfbd4734f660ee | sc-camp/2016-R-data-analysis | course_data_modeling/install_packages.R | #!/usr/local/bin/Rscript
packages = c("arm", "boot", "broom", "car", "dplyr", "ggplot2", "lme4", "MASS", "Matrix", "MuMIn", "nlme", "nlstools", "sjPlot", "tidyr", "visreg")
install.packages(packages, dependencies=TRUE)
print("Install Done.")
lapply(packages, require, character.only = TRUE)
print("Loading Done.")
| 315 | gpl-3.0 |
06e37b8662ad4a0a71f42ed137849d9f635dbcf5 | brennanpincardiff/RforBiochemists | BattleOfTheBeards_Health_Viz/HealthyHabitsApp/ui.R | # ui.R
shinyUI(fluidPage(
# titlePanel("Can exercise help you?"),
sidebarLayout(
sidebarPanel(
h3("Please describe yourself"),
# radio Buttons for Gender given at Birth
radioButtons("gender",
label = "Gender Given at Birth",
choices = c("No choi... | 1,787 | mit |
0ddb6747a0988076545df2976fe7d9dd96f926f5 | pcarbo/QTLRel | R/qqPlot.R |
pk<- function(z, nx, ny = Inf){ # exaxt from R "stats"
if(nx==Inf || ny==Inf){
pp <- .C("pkolmogorov2x",
p = as.double(z),
as.integer(min(nx,ny)))$p
}else{
pp <- .C("psmirnov2x",
p = as.double(z),
as.integer(nx), as.integer(ny))$p
}
... | 5,720 | gpl-3.0 |
a979e8aacdb0005c57f0ac8fd250072bc2f7b29e | duttashi/LearningR | scripts/Full Case Studies/CaseStudy-Sberbank-HousePricePrediction.R | # clear the workspace
rm(list=ls())
# Objective of this script: EDA of Sberbank Russian Housing Market (https://www.kaggle.com/c/sberbank-russian-housing-market)
# dataset: In this competition, Sberbank is challenging Kagglers to develop algorithms which use a broad spectrum of features to predict realty prices.
# L... | 2,994 | mit |
0ae98d454460d3fdbe494da9313f1b36fcdb7e28 | datashield/dsStatsClient | R/getPooledVar.R | #'
#' @title Gets a pooled variance
#' @description This is an internal function.
#' @details This function is called to avoid calling the client function 'ds.var'
#' which may stop the process due to some checks not required when computing a mean inside
#' a function.
#' @param dtsources a list of opal object(s) ob... | 1,193 | gpl-3.0 |
7f1618d1cd7dce32fe68311c11c6d0a7274177b5 | Waleem/MSM | R/Bmsm_std_err.R | #' Standard Error for \code{\link{Bmsm}} Model.
#'
#' Calculates standard error for \code{\link{Bmsm}} model.
#'
#' @param para is a vector of parameters returned by \code{\link{Bmsm}}.
#' @param kbar is the number of frequency components in the \code{\link{Bmsm}}(k) model.
#' @param ret is a column matrix of returns.
... | 1,428 | gpl-3.0 |
b385cb79b6139ab07f1cef6a7faeba11f941dc33 | ganna10/Meteorology_and_Ozone | Testing/Trials/regression_temperature_plots.R | library(reshape2)
library(ggplot2)
library(dplyr, warn.conflicts = FALSE)
library(akima)
library(directlabels)
library(Cairo)
library(ggthemes)
d = read.table(file = "out_Temperature_06092015.csv", header = TRUE, sep = ",")
d = tbl_df(d)
mozart.data = d %>% filter(Mechanism == "MOZART") %>% select(O3, NOx.Emissions,... | 3,154 | gpl-2.0 |
39a8a66849f25472ed7addae41502443e888cef0 | mlcoding/asdca | sdca/R/stocml.svm.R | #----------------------------------------------------------------------------------#
# Package: stocml #
# stocml.svm(): The user interface for svm() #
# Author: Xingguo Li ... | 4,345 | gpl-2.0 |
dd532fcb130382d305bd82bd776dcdf421d2a684 | pschreiner/piClusterBuster | bin/filterBLASThits.R | #!/usr/bin/Rscript
ags = commandArgs(TRUE)
xls=ags[1]; out=ags[2]; filt=ags[3]; wd=ags[4];
source(paste(wd, "bin/piClusterBuster_source.R", sep="")
library(GenomicRanges)
query<-NULL; subject<-NULL; perc_id<-NULL; len<-NULL; mis<-NULL; gap<-NULL; qstart<-NULL; qend<-NULL; sstart<-NULL; send<-NULL; sim<-NULL; bit<-NUL... | 2,301 | gpl-3.0 |
8fe9361539b7b562fca07ebea670a287392fdc6a | USGS-R/sbtools | R/gql_helpers.R | get_gql_header <- function() {
httr::add_headers(
.headers = c(`content-type` = "application/json",
accept = "application/json",
authorization = paste("Bearer",
get_access_token())))
}
#' @noRd
#' @param q character gql query to embed into json body
#' @param gql handle to p... | 2,378 | cc0-1.0 |
a0fc2643575f758f4c31f1afca3fa68549954256 | chenglinli/chemical_mutagenesis | R/indel_chr2.R | #' Annotate Indels with masked chr2
#'
#' @param input_file file path of the vcf file (e.g. input_file = "./test.vcf")
#' @param parental_strain the name of the parental strain. The name should not contain -. (e.g. parental_strain = "par")
#' @param mutant_strain please use a prefix to name mutant strains. Specify the ... | 35,086 | mit |
3ef7dfa451168946e47d3e772437bb00ab03af28 | dacuevas/bioinformatics | R_scripts/bootstrap.R | # bootstrap.R
# Bootstrap function from Dr. Barbara Bailey
# Downloaded 23 Jun 2017
"bootstrap"<- function(x,nboot,theta,...,func=NULL){
call <- match.call()
n <- length(x)
bootsam<- matrix(sample(x,size=n*nboot,replace=T),nrow=nboot)
thetastar <- apply(bootsam,1,theta,...)
func.thetastar <- NULL; jack.boot.val <- NUL... | 1,103 | mit |
b20a149e6cfaa18dc5695eccb86f4e9369dc39d8 | klmr/trna | chip/scripts/de-plots.R | source('scripts/de.R')
trnaPlotCountMatrix <- function () {
mkdir('plots/de')
categories <- list(genes = trnaDeCounts,
acc = trnaAccDe$counts,
type = trnaTypeDe$counts)
plotSingle <- function (data, name) {
on.exit(dev.off())
pdf(sprintf('plots... | 767 | apache-2.0 |
b6aec5482352e53a328e92621d7696c9eacb7c17 | kkdang/sage-data-analysis | NIA-AMP-AD/reprocessing/assessing_filtering_on_counts.R |
recounts = read.delim("~/Computing/NIA-AMP-AD/reprocessed/102_120418_filtered_comparison.txt", skip = 1)
head(recounts)
plot(log(recounts$X102_120418.bam), log(recounts$X102_120418_filtered.bam))
re.diff = recounts$X102_120418.bam - recounts$X102_120418_filtered.bam
# How many non-zero differences? = 1647
nonZero =... | 1,948 | mit |
1a5ec3ebdfbc1fd9cc88ec9d613a15686376395b | spundhir/ChIP-seq | pnorm.R | ## help(distribution) to see other distributions
ARGV <- commandArgs(TRUE)
pnorm(as.numeric(ARGV[1]), as.numeric(ARGV[2]), as.numeric(ARGV[3]), lower.tail=F)
q()
| 162 | gpl-2.0 |
1a5ec3ebdfbc1fd9cc88ec9d613a15686376395b | spundhir/findNFR | share/R/pnorm.R | ## help(distribution) to see other distributions
ARGV <- commandArgs(TRUE)
pnorm(as.numeric(ARGV[1]), as.numeric(ARGV[2]), as.numeric(ARGV[3]), lower.tail=F)
q()
| 162 | gpl-3.0 |
63fd04ecf8e3e775576c909baa70068f70b0c5ab | mingkaijiang/IBSS_climate | modules/R01PS_pred_move.R |
##############################################################################################################
##Calculate predictability of 30-year running mean of R01PS based on > 60 year dataset
R01PS_pred_move<-function(sourceDir = DAILY.DATA.DIRECTORY, destDir = DAILY.OUTPUT.DIRECTORY)
{
dir.create(destDir, s... | 6,530 | gpl-3.0 |
4f3cafdbaf1ee968dd8d132b276336f3d102525d | BIRL/SPECTRUM | ToolBox/OpenMS/share/SCRIPTS/ProduceQCFigures_setid.R | ## This is an R script to produce the figures that are attached to the qcML format
#options
options(digits=10)
file<-commandArgs(TRUE)[1]
post<-commandArgs(TRUE)[2]
######
###setid
######
a<-read.table(file=file, header=TRUE, sep="\t", na.strings="NA", dec=".", strip.white=TRUE)
#####################################... | 510 | gpl-3.0 |
1c18a08abd5e1bf3d565ae5fb41c052ec3a237fa | btupper/spnc | R/NAMANL.R | #' Test if an NCDF contains NAM-ANL data.
#'
#' @export
#' @param x ncdf4 object or NAMANLRefClass
#' @return logical
is_NAMANL <- function(x){
ok <- FALSE
if (inherits(x, "SPNCRefClass")){
atts <- try(ncglobal_atts(x$NC))
} else if(inherits(x, "ncdf4")){
atts <- try(ncglobal_atts(x))
} el... | 10,927 | mit |
1795528c181278bf74a7e661684b5ba697313623 | cran/accuracy | R/sechol.R | # sechol.R
#
# Schnabel-Eskow generalized cholesky.
#
# Part of the Accuracy package. Available from www.r-project.org and
# www.hmdc.harvard.edu/numerical_issues/
#
# Copyright (C) 2004-6 Jeff Gill, Micah Altman
#
# This program is free software; you can redistribute it and/or modify
# it under the... | 5,388 | agpl-3.0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.