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 |
|---|---|---|---|---|---|---|---|---|---|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tableApi.r
\name{table$getSecurity}
\alias{table$getSecurity}
\title{Get the security information of the specified security item associated with the table for a specified user.}
\arguments{
\item{webId}{The ID of the table for the security to... | /man/table-cash-getSecurity.Rd | permissive | frbl/PI-Web-API-Client-R | R | false | true | 1,244 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/tableApi.r
\name{table$getSecurity}
\alias{table$getSecurity}
\title{Get the security information of the specified security item associated with the table for a specified user.}
\arguments{
\item{webId}{The ID of the table for the security to... |
library(plyr)
library(ape)
compare_all_order <- function(number_br,number_cell,ts){
####################################################################################################
####################################################################################################
#extract the tree, ... | /simulation/Figures3_4_Scenarios1_2/Scenario2_result_SCITE/accuracy/Ternary_All_order_20Missing.R | no_license | DavidSimone/MO | R | false | false | 8,955 | r | library(plyr)
library(ape)
compare_all_order <- function(number_br,number_cell,ts){
####################################################################################################
####################################################################################################
#extract the tree, ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geom_rootedge.R
\name{geom_rootedge}
\alias{geom_rootedge}
\title{geom_rootedge}
\usage{
geom_rootedge(rootedge = NULL)
}
\arguments{
\item{rootedge}{length of rootedge; use phylo$root.edge if rootedge = NULL (by default).}
}
\value{
ggplot l... | /man/geom_rootedge.Rd | no_license | smyang2018/ggtree | R | false | true | 387 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/geom_rootedge.R
\name{geom_rootedge}
\alias{geom_rootedge}
\title{geom_rootedge}
\usage{
geom_rootedge(rootedge = NULL)
}
\arguments{
\item{rootedge}{length of rootedge; use phylo$root.edge if rootedge = NULL (by default).}
}
\value{
ggplot l... |
\name{pogc}
\alias{pogc}
\title{
Parent Offspring Group Constructor
}
\description{
Assign offsprings to the parents.
}
\usage{
pogc(oh, genotypeError)
}
\arguments{
\item{oh}{ \code{integer} opposing homozygotes matrix (Output of \code{\link{ohg}})
}
\item{genotypeError}{\code{integer}
number of genotypeing error ... | /fuzzedpackages/hsphase/man/pogc.Rd | no_license | akhikolla/testpackages | R | false | false | 1,132 | rd | \name{pogc}
\alias{pogc}
\title{
Parent Offspring Group Constructor
}
\description{
Assign offsprings to the parents.
}
\usage{
pogc(oh, genotypeError)
}
\arguments{
\item{oh}{ \code{integer} opposing homozygotes matrix (Output of \code{\link{ohg}})
}
\item{genotypeError}{\code{integer}
number of genotypeing error ... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/newnode_org_beamer.R, R/newnode_rmd.R
\name{newnode_rmd}
\alias{newnode_org_beamer}
\alias{newnode_rmd}
\title{newnode_rmd}
\usage{
newnode_org_beamer(indat = NULL, names_col = NULL, in_col = NULL,
out_col = NULL, desc_col = NULL, c... | /man/newnode_rmd.Rd | permissive | ivanhanigan/disentangle | R | false | false | 1,672 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/newnode_org_beamer.R, R/newnode_rmd.R
\name{newnode_rmd}
\alias{newnode_org_beamer}
\alias{newnode_rmd}
\title{newnode_rmd}
\usage{
newnode_org_beamer(indat = NULL, names_col = NULL, in_col = NULL,
out_col = NULL, desc_col = NULL, c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/traceback.r
\name{try_capture_stack}
\alias{try_capture_stack}
\title{Try, capturing stack on error.}
\usage{
try_capture_stack(quoted_code, env)
}
\arguments{
\item{quoted_code}{code to evaluate, in quoted form}
\item{env}{environment in wh... | /man/try_capture_stack.Rd | no_license | lanshiren/evaluate | R | false | true | 476 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/traceback.r
\name{try_capture_stack}
\alias{try_capture_stack}
\title{Try, capturing stack on error.}
\usage{
try_capture_stack(quoted_code, env)
}
\arguments{
\item{quoted_code}{code to evaluate, in quoted form}
\item{env}{environment in wh... |
color_exchange = function(image1){
image = image1
for (i in 1: nrow(image)){
for (j in 1:ncol(image)){
if(image[i,j] == 1){
image[i,j] = 0
}
else
image[i,j] = 1
}
}
return (image)
}
#image1 = readPNG("~/Desktop/Visible/initial1.png")
#image = color_exchange(image1)
#writePNG(image,"~/Deskto... | /R/Color_Exchange 2.R | no_license | rwang14/abc | R | false | false | 345 | r | color_exchange = function(image1){
image = image1
for (i in 1: nrow(image)){
for (j in 1:ncol(image)){
if(image[i,j] == 1){
image[i,j] = 0
}
else
image[i,j] = 1
}
}
return (image)
}
#image1 = readPNG("~/Desktop/Visible/initial1.png")
#image = color_exchange(image1)
#writePNG(image,"~/Deskto... |
# TOOL bwa-mem-paired-end.R: "BWA MEM for paired-end reads" (Aligns reads to genomes using the BWA MEM algorithm. Results are sorted and indexed BAM files, which are ready for viewing in the Chipster genome browser.
# Note that this BWA tool uses publicly available genomes. If you would like to align reads against you... | /tools/ngs/R/bwa-mem-paired-end.R | permissive | edwardtao/chipster-tools | R | false | false | 3,708 | r | # TOOL bwa-mem-paired-end.R: "BWA MEM for paired-end reads" (Aligns reads to genomes using the BWA MEM algorithm. Results are sorted and indexed BAM files, which are ready for viewing in the Chipster genome browser.
# Note that this BWA tool uses publicly available genomes. If you would like to align reads against you... |
#' Plot processed coefficients.
#'
#' @param coefficients_processed TO BE EDITED.
#' @return TO BE EDITED.
#' @family plot
#' @export
plot_coefficients_processed <- function(coefficients_processed) {
if (nrow(coefficients_processed) > 20)
warning("Number of predictors exceeds 20; plot may not render as nicely.")... | /R/R/plot.R | permissive | youngahn/easyml | R | false | false | 5,125 | r | #' Plot processed coefficients.
#'
#' @param coefficients_processed TO BE EDITED.
#' @return TO BE EDITED.
#' @family plot
#' @export
plot_coefficients_processed <- function(coefficients_processed) {
if (nrow(coefficients_processed) > 20)
warning("Number of predictors exceeds 20; plot may not render as nicely.")... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getdata.R
\name{get_index}
\alias{get_index}
\title{Get a list of GUID's}
\usage{
get_index(base_url, api_key)
}
\arguments{
\item{base_url}{The base URL of the Junar service}
\item{api_key}{The user's API key for the Junar service}
}
\descr... | /man/get_index.Rd | no_license | samuelsoc/junr | R | false | true | 425 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getdata.R
\name{get_index}
\alias{get_index}
\title{Get a list of GUID's}
\usage{
get_index(base_url, api_key)
}
\arguments{
\item{base_url}{The base URL of the Junar service}
\item{api_key}{The user's API key for the Junar service}
}
\descr... |
library(ggplot2)
#------------------Histogram and Density Charts
s <-ggplot(data=movies, aes(x=BudgetMillions))
s + geom_histogram(binwidth=10) #To construct a histogram, the first step is to "bin" (or "bucket") the range of values-that is, divide the entire range of values into a series of intervals-and then co... | /Section-5/Histogram$densityCharts.R | no_license | akrai37/R | R | false | false | 1,330 | r |
library(ggplot2)
#------------------Histogram and Density Charts
s <-ggplot(data=movies, aes(x=BudgetMillions))
s + geom_histogram(binwidth=10) #To construct a histogram, the first step is to "bin" (or "bucket") the range of values-that is, divide the entire range of values into a series of intervals-and then co... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DBConnection.R
\name{dbSendQuery}
\alias{dbSendQuery}
\title{Execute a statement on a given database connection.}
\usage{
dbSendQuery(conn, statement, ...)
}
\arguments{
\item{conn}{A \code{\linkS4class{DBIConnection}} object, as produced by
... | /man/dbSendQuery.Rd | no_license | bborgesr/DBI | R | false | true | 2,261 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/DBConnection.R
\name{dbSendQuery}
\alias{dbSendQuery}
\title{Execute a statement on a given database connection.}
\usage{
dbSendQuery(conn, statement, ...)
}
\arguments{
\item{conn}{A \code{\linkS4class{DBIConnection}} object, as produced by
... |
library(dplyr)
library(readr)
library(stringr)
library(sbtools)
library(whisker)
#Main directory should be: ~/ds-pipelines-targets-1
#1_fetch----
setwd('./1_fetch/src')
source('getData.R')
data <- getData(outDir = '../out')
#2_process----
setwd('../../2_process/src/')
source('processData.R')
# Prepare the data for ... | /main.R | no_license | jds485/ds-pipelines-targets-1 | R | false | false | 602 | r |
library(dplyr)
library(readr)
library(stringr)
library(sbtools)
library(whisker)
#Main directory should be: ~/ds-pipelines-targets-1
#1_fetch----
setwd('./1_fetch/src')
source('getData.R')
data <- getData(outDir = '../out')
#2_process----
setwd('../../2_process/src/')
source('processData.R')
# Prepare the data for ... |
library(dplyr)
library(ggplot2)
setwd("/Users/WadieAlbakri/Desktop/Máster BME/Módulos/Módulo 1/R/practica_1")
#directorio_Melendez <- getwd()
#setwd(directorio_Melendez)
'Ejercicio 1'
#• Carga el set de datos en una variable llamada "titanic"
titanic <- read.table("train.csv",
header = TRU... | /practica_1/Wadie_Albarki copia.R | no_license | WadieAC/R-CODES | R | false | false | 35,212 | r |
library(dplyr)
library(ggplot2)
setwd("/Users/WadieAlbakri/Desktop/Máster BME/Módulos/Módulo 1/R/practica_1")
#directorio_Melendez <- getwd()
#setwd(directorio_Melendez)
'Ejercicio 1'
#• Carga el set de datos en una variable llamada "titanic"
titanic <- read.table("train.csv",
header = TRU... |
\name{GeoVariogram}
\alias{GeoVariogram}
\encoding{UTF-8}
\title{Empirical Variogram(variants) estimation}
\description{
The function returns an empirical estimate of the variogram for spatio (temporal) and bivariate
random fields.
}
\usage{
GeoVariogram(data, coordx, coordy=NULL, coordt=NULL, coordx_dyn=NULL,... | /man/GeoVariogram.Rd | no_license | morenobevilacqua/GeoModels-OCL | R | false | false | 13,084 | rd | \name{GeoVariogram}
\alias{GeoVariogram}
\encoding{UTF-8}
\title{Empirical Variogram(variants) estimation}
\description{
The function returns an empirical estimate of the variogram for spatio (temporal) and bivariate
random fields.
}
\usage{
GeoVariogram(data, coordx, coordy=NULL, coordt=NULL, coordx_dyn=NULL,... |
# Track20, Avenir Health
# Kristin Bietsch, PhD and Emily Sonneveldt, PhD
library(dplyr)
library(tidyr)
library(ggplot2)
setwd("C:/Users/KristinBietsch/files/Track20/Win Requests/Self Injections")
# Baseline Data
baseline <- read.csv("ModelData062220.csv")
# Adaptable Parameters
#Proportion of Injectab... | /SCSI Model Track20 062220.R | no_license | brettkeller/SCSIModel | R | false | false | 10,121 | r | # Track20, Avenir Health
# Kristin Bietsch, PhD and Emily Sonneveldt, PhD
library(dplyr)
library(tidyr)
library(ggplot2)
setwd("C:/Users/KristinBietsch/files/Track20/Win Requests/Self Injections")
# Baseline Data
baseline <- read.csv("ModelData062220.csv")
# Adaptable Parameters
#Proportion of Injectab... |
% Generated by roxygen2 (4.0.2): do not edit by hand
\docType{data}
\name{data-Praw}
\alias{data-Praw}
\title{Modeled phenotypic data used in thesis}
\usage{
Praw
}
\description{
Modeled phenotypic data used in thesis
}
\details{
The data comes from a field trial that is part of a cotton
breeding program. The trial was... | /man/data-Praw.Rd | no_license | digiYozhik/msc_thesis | R | false | false | 3,032 | rd | % Generated by roxygen2 (4.0.2): do not edit by hand
\docType{data}
\name{data-Praw}
\alias{data-Praw}
\title{Modeled phenotypic data used in thesis}
\usage{
Praw
}
\description{
Modeled phenotypic data used in thesis
}
\details{
The data comes from a field trial that is part of a cotton
breeding program. The trial was... |
# edphys_data_build2.r
# write.csv(edphys_data_test2,"edphys_data_test2.csv")
library(xlsx)
library(readr)
# January consolidation
ed_kendall_0117 <- read.xlsx("q:/Anesthesia/_DropOff/ED_Reports/Site_Data_Capture/R/ED_Physician_Report-0117-East_Florida.xlsx",sheetName="Kendall")
ed_JFK_0117 <- read.xlsx("q:/Anest... | /edphys_data_build2.R | no_license | AllenBaum/My-Data-ver-1 | R | false | false | 20,554 | r | # edphys_data_build2.r
# write.csv(edphys_data_test2,"edphys_data_test2.csv")
library(xlsx)
library(readr)
# January consolidation
ed_kendall_0117 <- read.xlsx("q:/Anesthesia/_DropOff/ED_Reports/Site_Data_Capture/R/ED_Physician_Report-0117-East_Florida.xlsx",sheetName="Kendall")
ed_JFK_0117 <- read.xlsx("q:/Anest... |
# Load the library to read the data
library("data.table")
library("qdapTools")
library("writexl")
##Train data loading (Three different categories:x, y, subject)
X_train <- read.table("./data/train/X_train.txt")
y_train <- read.table("./data/train/y_train.txt")
sub_train <... | /run_analysis.R | no_license | farnazkgn/Getting-and-clening-data-Coursera- | R | false | false | 1,700 | r |
# Load the library to read the data
library("data.table")
library("qdapTools")
library("writexl")
##Train data loading (Three different categories:x, y, subject)
X_train <- read.table("./data/train/X_train.txt")
y_train <- read.table("./data/train/y_train.txt")
sub_train <... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.lightsail_operations.R
\name{export_snapshot}
\alias{export_snapshot}
\title{Exports an Amazon Lightsail instance or block storage disk snapshot to Amazon Elastic Compute Cloud (Amazon EC2)}
\usage{
export_snapshot(sourceSnapshotName)
}
... | /service/paws.lightsail/man/export_snapshot.Rd | permissive | CR-Mercado/paws | R | false | true | 1,646 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/paws.lightsail_operations.R
\name{export_snapshot}
\alias{export_snapshot}
\title{Exports an Amazon Lightsail instance or block storage disk snapshot to Amazon Elastic Compute Cloud (Amazon EC2)}
\usage{
export_snapshot(sourceSnapshotName)
}
... |
# Code to process skip generation proportions
library(readxl)
# USA
process_usa_bystate_skip_generation = function(country,s,r){
#country = 'usa'
d_summary = read.csv('data/usa_states.csv')
d_summary <- subset(d_summary,State==s & Race.and.Hispanic.Origin.Group==r)
#setnames(d_summary, c('death'), c('deaths'))... | /Pediatrics_US_estimates_disparities_2021/R/process_skip_generation.R | permissive | ImperialCollegeLondon/covid19_orphans | R | false | false | 9,759 | r | # Code to process skip generation proportions
library(readxl)
# USA
process_usa_bystate_skip_generation = function(country,s,r){
#country = 'usa'
d_summary = read.csv('data/usa_states.csv')
d_summary <- subset(d_summary,State==s & Race.and.Hispanic.Origin.Group==r)
#setnames(d_summary, c('death'), c('deaths'))... |
% Generated by roxygen2 (4.0.0): do not edit by hand
\name{chi2}
\alias{chi2}
\title{Compute the chi^2 statistic for a 2x2 crosstab containing the values
[[a, b], [c, d]]}
\usage{
chi2(a, b, c, d)
}
\description{
Compute the chi^2 statistic for a 2x2 crosstab containing the values
[[a, b], [c, d]]
}
| /man/chi2.Rd | permissive | vanatteveldt/corpus-tools | R | false | false | 302 | rd | % Generated by roxygen2 (4.0.0): do not edit by hand
\name{chi2}
\alias{chi2}
\title{Compute the chi^2 statistic for a 2x2 crosstab containing the values
[[a, b], [c, d]]}
\usage{
chi2(a, b, c, d)
}
\description{
Compute the chi^2 statistic for a 2x2 crosstab containing the values
[[a, b], [c, d]]
}
|
returned_resources <- curatedTBData(c("GSE107104", "GSE19435", "GSE19443"),
dryrun = FALSE, curated.only = TRUE) %>%
base::suppressWarnings()
test_that("Argument \"experment_name\" cannot be missing", {
expect_error(combineObjects(returned_resources))
})
test_that("return type ... | /tests/testthat/test-combineObjects.R | permissive | SpadeKKK/curatedTBData | R | false | false | 1,324 | r | returned_resources <- curatedTBData(c("GSE107104", "GSE19435", "GSE19443"),
dryrun = FALSE, curated.only = TRUE) %>%
base::suppressWarnings()
test_that("Argument \"experment_name\" cannot be missing", {
expect_error(combineObjects(returned_resources))
})
test_that("return type ... |
library(knitr)
summary(cars)
knit(cars, output = "RGitHub.Rmd")
?knit
| /initial.R | no_license | ssrin0522/r-codes | R | false | false | 72 | r | library(knitr)
summary(cars)
knit(cars, output = "RGitHub.Rmd")
?knit
|
## File Name: Rcppfunction_remove_classes.R
## File Version: 0.07
Rcppfunction_remove_classes <- function(string, maxlen=70, remove=TRUE)
{
string <- gsub("\n", "", string )
string <- gsub("\t", "", string )
string <- gsub(" ", "", string )
ind1 <- string_find_first(string=string, symbol="("... | /R/Rcppfunction_remove_classes.R | no_license | cran/miceadds | R | false | false | 1,996 | r | ## File Name: Rcppfunction_remove_classes.R
## File Version: 0.07
Rcppfunction_remove_classes <- function(string, maxlen=70, remove=TRUE)
{
string <- gsub("\n", "", string )
string <- gsub("\t", "", string )
string <- gsub(" ", "", string )
ind1 <- string_find_first(string=string, symbol="("... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/predict.density.R
\name{predict.density}
\alias{predict.density}
\title{predict.density}
\usage{
\method{predict}{density}(den, xnew)
}
\arguments{
\item{xnew}{}
}
\value{
ynew
}
\description{
Simple interpolation of a density object to new p... | /modules/emulator/man/predict.density.Rd | permissive | yogeshdarji/pecan | R | false | true | 355 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/predict.density.R
\name{predict.density}
\alias{predict.density}
\title{predict.density}
\usage{
\method{predict}{density}(den, xnew)
}
\arguments{
\item{xnew}{}
}
\value{
ynew
}
\description{
Simple interpolation of a density object to new p... |
plot2 <- function () {
powerdata <- read.table("household_power_consumption.txt",header = FALSE, sep = ";", col.names = c("Date", "Time", "Global_Active_Power", "Global_Reactive_Power", "Voltage", "Global_Intensity", "Energy_Sub-metering_1", "Energy_Sub-metering_2", "Energy_Sub-metering_3"), na.strings = "?", colClass... | /plot2.R | no_license | saomakyvay/ExData_Plotting1 | R | false | false | 787 | r | plot2 <- function () {
powerdata <- read.table("household_power_consumption.txt",header = FALSE, sep = ";", col.names = c("Date", "Time", "Global_Active_Power", "Global_Reactive_Power", "Voltage", "Global_Intensity", "Energy_Sub-metering_1", "Energy_Sub-metering_2", "Energy_Sub-metering_3"), na.strings = "?", colClass... |
# 03 ANALYSIS WITH THE IMPOSTERS' METHOD
# In order to run this RScript, you need the following:
# - some results of "02_Hyperparameter and Feature Tuning Imposters' Method.R"
# saved on your computer
# - the results of "01_Preprocessing.R" in your global environment. (You may
# also load the results of that scr... | /02_Script/03_Analysis_with_Imposters_Method.R | no_license | jnussbaum/authorship-attribution | R | false | false | 6,553 | r | # 03 ANALYSIS WITH THE IMPOSTERS' METHOD
# In order to run this RScript, you need the following:
# - some results of "02_Hyperparameter and Feature Tuning Imposters' Method.R"
# saved on your computer
# - the results of "01_Preprocessing.R" in your global environment. (You may
# also load the results of that scr... |
tabPanel("About",
HTML(
'<p style="text-align:justify">This R Shiny web application presents climate outlooks for various Alaska and western Canada communities.
There are several versions of the Community Charts application. See the <a href="http://leonawicz.github.io/CommCharts4/">CommCharts4</a> documentation for ... | /cc4lite2/about.R | no_license | jiansfoggy/shiny-apps | R | false | false | 2,099 | r | tabPanel("About",
HTML(
'<p style="text-align:justify">This R Shiny web application presents climate outlooks for various Alaska and western Canada communities.
There are several versions of the Community Charts application. See the <a href="http://leonawicz.github.io/CommCharts4/">CommCharts4</a> documentation for ... |
# the center coordinates of blocks
block_x <- cumsum(c(0, road_y$importance)) +
cumsum(c(block_width / 2, rep(block_width, times = road_dim)))
block_y <- cumsum(c(0, road_x$importance)) +
cumsum(c(block_width / 2, rep(block_width, times = road_dim)))
road_network <- expand.grid(
x = block_x,
y = block_y
)
# p... | /main/to_wait_or_not_to_wait/plot_crossroads.R | no_license | shawenyao/R | R | false | false | 2,634 | r | # the center coordinates of blocks
block_x <- cumsum(c(0, road_y$importance)) +
cumsum(c(block_width / 2, rep(block_width, times = road_dim)))
block_y <- cumsum(c(0, road_x$importance)) +
cumsum(c(block_width / 2, rep(block_width, times = road_dim)))
road_network <- expand.grid(
x = block_x,
y = block_y
)
# p... |
setwd("C:/Users/chliu/Documents/R Workplace/yelp_dataset_challenge_academic_dataset/yelp_dataset_challenge_academic_dataset/")
library(rjson)
review_file <- "yelp_academic_dataset_review.json"
#review_data <- fromJSON(file=review_file, method = "C", unexpected.escape = "error" )
#review_df <- do.call("rbind", revie... | /quiz1.R | no_license | eeliuchang/yelp-prediction | R | false | false | 6,147 | r | setwd("C:/Users/chliu/Documents/R Workplace/yelp_dataset_challenge_academic_dataset/yelp_dataset_challenge_academic_dataset/")
library(rjson)
review_file <- "yelp_academic_dataset_review.json"
#review_data <- fromJSON(file=review_file, method = "C", unexpected.escape = "error" )
#review_df <- do.call("rbind", revie... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/all_passed.R
\name{all_passed}
\alias{all_passed}
\title{Did all of the validations fully \emph{pass}?}
\usage{
all_passed(agent)
}
\arguments{
\item{agent}{An agent object of class \code{ptblank_agent}.}
}
\value{
A logical value.
}
\descrip... | /man/all_passed.Rd | permissive | dwtcourses/pointblank | R | false | true | 1,193 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/all_passed.R
\name{all_passed}
\alias{all_passed}
\title{Did all of the validations fully \emph{pass}?}
\usage{
all_passed(agent)
}
\arguments{
\item{agent}{An agent object of class \code{ptblank_agent}.}
}
\value{
A logical value.
}
\descrip... |
library(shiny)
shinyServer(function(input, output) {
})
| /DNA_tool/server.R | permissive | w4356y/shiny_ui_template | R | false | false | 61 | r | library(shiny)
shinyServer(function(input, output) {
})
|
#### This scripts stores the old function and code in generatePlots.R
# most of these I suspect are no longer relevant. However, just in case....
# Import RCC and NB datasets
rcc.srat = readRDS('/lustre/scratch117/casm/team274/mt22/CN_methods/RCC_PCT_ann3sub.rds')
nb.srat = readRDS('/lustre/scratch117/casm/team274/mt... | /R/old_scripts/oldstuff_from_generatePlots.R | no_license | miktrinh/scGenotyping | R | false | false | 49,419 | r | #### This scripts stores the old function and code in generatePlots.R
# most of these I suspect are no longer relevant. However, just in case....
# Import RCC and NB datasets
rcc.srat = readRDS('/lustre/scratch117/casm/team274/mt22/CN_methods/RCC_PCT_ann3sub.rds')
nb.srat = readRDS('/lustre/scratch117/casm/team274/mt... |
memory.limit(size = 50000)
library(XML)
library(rjson)
library(jsonlite)
library(data.table)
library(simsalapar)
library(readxl)
library(cluster)
library(ggplot2)
library(splitstackshape)
library(stringr)
library(plyr)
library(dplyr)
library(httr)
library(lubridate)
library(curl)
library(h2o)
#localH2o <- h2o.init(nt... | /beta_1401.R | no_license | heybhai/rconnect | R | false | false | 1,956 | r | memory.limit(size = 50000)
library(XML)
library(rjson)
library(jsonlite)
library(data.table)
library(simsalapar)
library(readxl)
library(cluster)
library(ggplot2)
library(splitstackshape)
library(stringr)
library(plyr)
library(dplyr)
library(httr)
library(lubridate)
library(curl)
library(h2o)
#localH2o <- h2o.init(nt... |
data<-read.table("household_power_consumption.txt",header=TRUE,sep=";",dec=".")
subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,]
globalActivePower <- as.numeric(subSetData$Global_active_power)
png("plot1.png")
hist(globalActivePower, col="red", main="Global Active Power", xlab="Global Active Power (kilowat... | /plot.R | no_license | aryamity/ExData_Plotting1 | R | false | false | 336 | r | data<-read.table("household_power_consumption.txt",header=TRUE,sep=";",dec=".")
subSetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,]
globalActivePower <- as.numeric(subSetData$Global_active_power)
png("plot1.png")
hist(globalActivePower, col="red", main="Global Active Power", xlab="Global Active Power (kilowat... |
rm(list=ls())
library ( MASS )
############### CLASSIFICATION D'IMAGES DE CHATS ET DE CHIENS ########################
############################# Gautier Appert #########################################
# Groupe : Alexandre Junius - Xavier Van Poelvoorde - Marie Guegain
# 1. DECOUVERTE DE LA BASE DE DONNEES ET ... | /script-3.R | no_license | FontierZoe/projet_stat | R | false | false | 8,650 | r |
rm(list=ls())
library ( MASS )
############### CLASSIFICATION D'IMAGES DE CHATS ET DE CHIENS ########################
############################# Gautier Appert #########################################
# Groupe : Alexandre Junius - Xavier Van Poelvoorde - Marie Guegain
# 1. DECOUVERTE DE LA BASE DE DONNEES ET ... |
.name_split0 <- function(gz.files)
{
if(grepl('/',gz.files[1])){
ii <- tail(which(strsplit(gz.files, "")[[1]]=="/"),1)
# folder <- substr(gz.files,1,ii)
# folder <- paste0(folder, "/"); folder <- gsub('//','/',folder)
gz.files <- substr(gz.files,ii+1,nchar(gz.files))
}
#+
# Function that returns... | /R/name_split.r | no_license | mdsumner/oceanmap | R | false | false | 3,862 | r | .name_split0 <- function(gz.files)
{
if(grepl('/',gz.files[1])){
ii <- tail(which(strsplit(gz.files, "")[[1]]=="/"),1)
# folder <- substr(gz.files,1,ii)
# folder <- paste0(folder, "/"); folder <- gsub('//','/',folder)
gz.files <- substr(gz.files,ii+1,nchar(gz.files))
}
#+
# Function that returns... |
#
# httpd.R, 8 Oct 13
#
# Date from:
# Intensive Metrics for the Study of the Evolution of Open Source Projects: Case studies from Apache Software Foundation projects
# Santiago Gala-P{\'e}rez and Gregorio Robles and Jes{\'u}s M. Gonz{\'a}lez-Barahona and Israel Herraiz
#
# Example from:
# Empirical Software Engineeri... | /time-series/httpd.R | no_license | alanponce/ESEUR-code-data | R | false | false | 926 | r | #
# httpd.R, 8 Oct 13
#
# Date from:
# Intensive Metrics for the Study of the Evolution of Open Source Projects: Case studies from Apache Software Foundation projects
# Santiago Gala-P{\'e}rez and Gregorio Robles and Jes{\'u}s M. Gonz{\'a}lez-Barahona and Israel Herraiz
#
# Example from:
# Empirical Software Engineeri... |
rare.variants.pp <- function(d,ai,bad,center,cov,prior,dbsnpID){
##assign a smaller covariance to the het cluster
posterior <- matrix(NA,nrow(d),3)
for(k in 1:sum(!bad)){
ll1 <- c(calc.ll(d[!bad,][k,1],center[1],error=sqrt(cov[1,1])),
calc.ll(d[!bad,][k,2],center[2],error=sqrt(cov[2,2])))
... | /R/rare.variants.pp.R | no_license | cran/SRMA | R | false | false | 1,970 | r | rare.variants.pp <- function(d,ai,bad,center,cov,prior,dbsnpID){
##assign a smaller covariance to the het cluster
posterior <- matrix(NA,nrow(d),3)
for(k in 1:sum(!bad)){
ll1 <- c(calc.ll(d[!bad,][k,1],center[1],error=sqrt(cov[1,1])),
calc.ll(d[!bad,][k,2],center[2],error=sqrt(cov[2,2])))
... |
##################################################################################
# A T E N T I O N !!! #
# =================== #
# Please, first set your current working directory to the current file ... | /plot1.R | no_license | pedrokarneiro/ExData_Plotting1 | R | false | false | 2,549 | r | ##################################################################################
# A T E N T I O N !!! #
# =================== #
# Please, first set your current working directory to the current file ... |
##############################################
# This is some code from Regression III
# designed to provide a basic
# introduction to the R language.
#
# File created June 17, 2017
#
# File last updated June 17, 2017
###############################################
#
# Basics: OBJECTS
#
# Assign the number "6" to an o... | /Code/GSERM-2017-R-Intro.R | no_license | anhnguyendepocen/GSERM-2017-git | R | false | false | 10,152 | r | ##############################################
# This is some code from Regression III
# designed to provide a basic
# introduction to the R language.
#
# File created June 17, 2017
#
# File last updated June 17, 2017
###############################################
#
# Basics: OBJECTS
#
# Assign the number "6" to an o... |
require(dplyr)
require(tidyr)
require(ggplot2)
library(gridExtra)
source("src/rf_grid2.R")
superconductivity_data <- maml.mapInputPort(1)
require(randomForest)
model_rf <- randomForest(data = superconductivity_data,
critical_temp ~ .,
mtry = 5,
... | /Using_grid_arrange_in_azure.R | no_license | richinex/Azure-ML- | R | false | false | 701 | r |
require(dplyr)
require(tidyr)
require(ggplot2)
library(gridExtra)
source("src/rf_grid2.R")
superconductivity_data <- maml.mapInputPort(1)
require(randomForest)
model_rf <- randomForest(data = superconductivity_data,
critical_temp ~ .,
mtry = 5,
... |
############################################################################################
#
# datagraber.R
# Grabs and cleans COVID-19 Data
#
############################################################################################
## LIBRARIES ####
library(tidyverse)
library(lubridate)
## VARIABLES AND PATHS... | /dailycovid/datagraber.R | no_license | seangyoung/ohanacovid | R | false | false | 1,136 | r | ############################################################################################
#
# datagraber.R
# Grabs and cleans COVID-19 Data
#
############################################################################################
## LIBRARIES ####
library(tidyverse)
library(lubridate)
## VARIABLES AND PATHS... |
library(tidyverse)
# brazil_m <- read.csv("data/children/brazil_m.csv")
# brazil_m$country <- rep("Brazil", length(brazil_m$age))
# brazil_f <- read.csv("data/children/brazil_f.csv")
# brazil_f$country <- rep("Brazil", length(brazil_f$age))
colombia_m <- read.csv("DATA/children/colombia_m.csv")
colombia_m$country <- ... | /script/plots_num_children_xy.R | no_license | ANXUNWXY179/project_wxy | R | false | false | 5,670 | r | library(tidyverse)
# brazil_m <- read.csv("data/children/brazil_m.csv")
# brazil_m$country <- rep("Brazil", length(brazil_m$age))
# brazil_f <- read.csv("data/children/brazil_f.csv")
# brazil_f$country <- rep("Brazil", length(brazil_f$age))
colombia_m <- read.csv("DATA/children/colombia_m.csv")
colombia_m$country <- ... |
\name{inSide}
\alias{inSide}
\title{Are points inside a polygon?}
\usage{
inSide(bnd, x, y)
}
\arguments{
\item{bnd}{a polygon boundary (a list with elements x and
y)}
\item{x}{x coordinates of the points to test}
\item{y}{y coordinates of the points to test}
}
\value{
logical vector
}
\description{
Thi... | /man/inSide.Rd | no_license | dill/msg | R | false | false | 358 | rd | \name{inSide}
\alias{inSide}
\title{Are points inside a polygon?}
\usage{
inSide(bnd, x, y)
}
\arguments{
\item{bnd}{a polygon boundary (a list with elements x and
y)}
\item{x}{x coordinates of the points to test}
\item{y}{y coordinates of the points to test}
}
\value{
logical vector
}
\description{
Thi... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/predictions.R
\name{get_random}
\alias{get_random}
\title{Get coefficients for the random intercepts and random slopes.}
\usage{
get_random(model, cond = NULL, print.summary = getOption("itsadug_print"))
}
\arguments{
\item{model}{A g... | /man/get_random.Rd | no_license | vr-vr/itsadug | R | false | false | 1,789 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/predictions.R
\name{get_random}
\alias{get_random}
\title{Get coefficients for the random intercepts and random slopes.}
\usage{
get_random(model, cond = NULL, print.summary = getOption("itsadug_print"))
}
\arguments{
\item{model}{A g... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/PASWR-package.R
\docType{data}
\name{HardWater}
\alias{HardWater}
\title{Mortality and Water Hardness}
\format{A data frame with 61 observations on the following 4 variables.
\describe{
\item{location}{a factor with levels \code{North... | /man/HardWater.Rd | no_license | anouel/PASWR | R | false | false | 1,239 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/PASWR-package.R
\docType{data}
\name{HardWater}
\alias{HardWater}
\title{Mortality and Water Hardness}
\format{A data frame with 61 observations on the following 4 variables.
\describe{
\item{location}{a factor with levels \code{North... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getSunlightPosition.R
\name{getSunlightPosition}
\alias{getSunlightPosition}
\title{Get Sunlight position}
\usage{
getSunlightPosition(date = NULL, lat = NULL, lon = NULL, data = NULL,
keep = c("altitude", "azimuth"))
}
\arguments{
\item{da... | /man/getSunlightPosition.Rd | permissive | AchrafElmar/suncalc | R | false | true | 2,157 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/getSunlightPosition.R
\name{getSunlightPosition}
\alias{getSunlightPosition}
\title{Get Sunlight position}
\usage{
getSunlightPosition(date = NULL, lat = NULL, lon = NULL, data = NULL,
keep = c("altitude", "azimuth"))
}
\arguments{
\item{da... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datatools.R
\name{sample.clones}
\alias{sample.clones}
\title{Get a random subset from a data.frame.}
\usage{
sample.clones(.data, .n, .replace = T)
}
\arguments{
\item{.data}{Data.frame or a list with data.frames}
\item{.n}{Sample size if i... | /fuzzedpackages/tcR/man/sample.clones.Rd | no_license | akhikolla/testpackages | R | false | true | 616 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/datatools.R
\name{sample.clones}
\alias{sample.clones}
\title{Get a random subset from a data.frame.}
\usage{
sample.clones(.data, .n, .replace = T)
}
\arguments{
\item{.data}{Data.frame or a list with data.frames}
\item{.n}{Sample size if i... |
# Women in East Africa
# Enterprise-Tanzania-model.R
# Bastiaan Quast
# bquast@gmail.com
# load data
load(file = 'data/Enterprise/Tanzania/Tanzania-Enterprise.RData')
# load libraries
library(ggplot2)
library(dplyr)
library(labelled)
library(broom)
# t06 = Tanzania 2006
# t13 = Tanzania 2013
# pr = female share of ... | /R/Enterprise-Tanzania-model.R | no_license | bquast/Women-Trade-EAC | R | false | false | 3,273 | r | # Women in East Africa
# Enterprise-Tanzania-model.R
# Bastiaan Quast
# bquast@gmail.com
# load data
load(file = 'data/Enterprise/Tanzania/Tanzania-Enterprise.RData')
# load libraries
library(ggplot2)
library(dplyr)
library(labelled)
library(broom)
# t06 = Tanzania 2006
# t13 = Tanzania 2013
# pr = female share of ... |
#
phenoData_WCM=read.csv('/athena/masonlab/scratch/users/nai2008/PNET_thesisProject/_WCM_PNET_RNAseq_data/PNET_metadata.csv',header=TRUE)
table(phenoData_WCM$Sex)
# F M
# 9 12
phenoData_Chan=read.csv('/athena/masonlab/scratch/users/nai2008/PNET_thesisProject/_Chan_et_al_GSE118014_PNET_RNAseq_data/pheno_data_for_pub... | /male_vs_female.R | no_license | nikolayaivanov/PNET_sex_dimorphisms | R | false | false | 9,493 | r | #
phenoData_WCM=read.csv('/athena/masonlab/scratch/users/nai2008/PNET_thesisProject/_WCM_PNET_RNAseq_data/PNET_metadata.csv',header=TRUE)
table(phenoData_WCM$Sex)
# F M
# 9 12
phenoData_Chan=read.csv('/athena/masonlab/scratch/users/nai2008/PNET_thesisProject/_Chan_et_al_GSE118014_PNET_RNAseq_data/pheno_data_for_pub... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(4.63168614785354e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(10L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615777602-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 348 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(4.63168614785354e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(10L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling... |
# This file cleans the compustat file
rm(list=ls())
library(plyr)
library(XML)
library(xml2)
library(RCurl)
library(dplyr)
library(pryr)
library(stringr)
library(data.table)
library(gtools)
library(lubridate)
setwd("~/Networks/Analysis")
compustat <- read.csv("compustat_for_age.csv")
compustat$cusip6 ... | /clean_compustat.R | no_license | AnnaNakhmurina/Networks | R | false | false | 4,881 | r | # This file cleans the compustat file
rm(list=ls())
library(plyr)
library(XML)
library(xml2)
library(RCurl)
library(dplyr)
library(pryr)
library(stringr)
library(data.table)
library(gtools)
library(lubridate)
setwd("~/Networks/Analysis")
compustat <- read.csv("compustat_for_age.csv")
compustat$cusip6 ... |
library(shiny)
library(shinythemes)
fluidPage(
theme = shinytheme("flatly"),
titlePanel("Overfitting"),
fluidRow(
column(3, wellPanel(
sliderInput("n", "Number of Samples:", min = 5, max = 500, value = 5 ,
step = 10),
sliderInput("p", "True Population Correlation:", min ... | /Overfit-Improved/ui.R | no_license | jefeng/Overfitting | R | false | false | 860 | r | library(shiny)
library(shinythemes)
fluidPage(
theme = shinytheme("flatly"),
titlePanel("Overfitting"),
fluidRow(
column(3, wellPanel(
sliderInput("n", "Number of Samples:", min = 5, max = 500, value = 5 ,
step = 10),
sliderInput("p", "True Population Correlation:", min ... |
#PAGE=455
y1=1980
y2=1986
p01=163.7*10
pn1=125
p02=143
pn2=116
q01=2.427
qn1=2.931
q02=13.947
qn2=13.285
p0=c(p01,p02)
pn=c(pn1,pn2)
q0=c(q01,q02)
qn=c(qn1,qn2)
a=(qn1/q01+qn2/q02)/2
a=a*100
a=round(a,digits = 0)
b=(qn1*p01+qn2*p02)/(q01*p01+q02*p02)
b=b*100
b=round(b,digits = 1)
c=(qn1*pn1*1... | /Schaum'S_Outline_Series_-_Theory_And_Problems_Of_Statistics_by_Murray_R._Spiegel/CH19/EX19.19.35/Ex19_19_35.R | permissive | FOSSEE/R_TBC_Uploads | R | false | false | 819 | r | #PAGE=455
y1=1980
y2=1986
p01=163.7*10
pn1=125
p02=143
pn2=116
q01=2.427
qn1=2.931
q02=13.947
qn2=13.285
p0=c(p01,p02)
pn=c(pn1,pn2)
q0=c(q01,q02)
qn=c(qn1,qn2)
a=(qn1/q01+qn2/q02)/2
a=a*100
a=round(a,digits = 0)
b=(qn1*p01+qn2*p02)/(q01*p01+q02*p02)
b=b*100
b=round(b,digits = 1)
c=(qn1*pn1*1... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PlotNetworks.R
\name{hn_plot}
\alias{hn_plot}
\title{Plot an igraph object}
\usage{
hn_plot(gadj, layout = layout_with_kk, width.scale = 2, colorbar = FALSE,
colorbarx, colorbary, ...)
}
\arguments{
\item{gadj}{igraph object}
\item{layout}... | /man/hn_plot.Rd | no_license | sqyu/HurdleNormal | R | false | true | 665 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PlotNetworks.R
\name{hn_plot}
\alias{hn_plot}
\title{Plot an igraph object}
\usage{
hn_plot(gadj, layout = layout_with_kk, width.scale = 2, colorbar = FALSE,
colorbarx, colorbary, ...)
}
\arguments{
\item{gadj}{igraph object}
\item{layout}... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ee_download.R
\name{ee_table_to_gcs}
\alias{ee_table_to_gcs}
\title{Creates a task to export a FeatureCollection to Google Cloud Storage.}
\usage{
ee_table_to_gcs(
collection,
description = "myExportTableTask",
bucket = NULL,
fileName... | /man/ee_table_to_gcs.Rd | permissive | karigar/rgee | R | false | true | 2,504 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ee_download.R
\name{ee_table_to_gcs}
\alias{ee_table_to_gcs}
\title{Creates a task to export a FeatureCollection to Google Cloud Storage.}
\usage{
ee_table_to_gcs(
collection,
description = "myExportTableTask",
bucket = NULL,
fileName... |
timeToLabels <- function(nsec) {
secs <- 0:nsec
sec_labels <- sapply(secs, function(s) ifelse(s %% 600 == 0, as.character(s/60), ""))
sec_ticks <- which(sec_labels != "")
sec_labels[length(sec_labels) + 1] <- round(nsec/60)
sec_ticks[length(sec_ticks) + 1] <- nsec
sec_labels <- paste0(sec_labels... | /R/utils.R | permissive | js2264/movieaRt | R | false | false | 446 | r | timeToLabels <- function(nsec) {
secs <- 0:nsec
sec_labels <- sapply(secs, function(s) ifelse(s %% 600 == 0, as.character(s/60), ""))
sec_ticks <- which(sec_labels != "")
sec_labels[length(sec_labels) + 1] <- round(nsec/60)
sec_ticks[length(sec_ticks) + 1] <- nsec
sec_labels <- paste0(sec_labels... |
# Join (Merge) data frames (inner, outer, left, right)
df1 = data.frame(CustomerId = c(1:6), Product = c(rep("Oven", 3), rep("Television", 3)))
df1
df2 = data.frame(CustomerId = c(2, 4, 6,7), State = c(rep("California", 3), rep("Texas", 1)))
df2
# Merging happens based on the common column name in both the data s... | /Basics of R -Part 3.R | no_license | ApurwaLoya/Data-Science | R | false | false | 5,172 | r | # Join (Merge) data frames (inner, outer, left, right)
df1 = data.frame(CustomerId = c(1:6), Product = c(rep("Oven", 3), rep("Television", 3)))
df1
df2 = data.frame(CustomerId = c(2, 4, 6,7), State = c(rep("California", 3), rep("Texas", 1)))
df2
# Merging happens based on the common column name in both the data s... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/app.R
\name{browserHistory}
\alias{browserHistory}
\title{Enable history navigation}
\usage{
browserHistory(navId, input, session)
}
\arguments{
\item{navId}{Character: identifier of the navigation bar}
\item{input}{Input object}
\item{sess... | /man/browserHistory.Rd | no_license | ahmczwg/psichomics | R | false | true | 608 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/app.R
\name{browserHistory}
\alias{browserHistory}
\title{Enable history navigation}
\usage{
browserHistory(navId, input, session)
}
\arguments{
\item{navId}{Character: identifier of the navigation bar}
\item{input}{Input object}
\item{sess... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/benchmark.R
\name{benchmarks_code}
\alias{benchmarks_code}
\title{Run benchmark for R code across R implementation and platform}
\usage{
benchmarks_code(code, platforms = c("debian", "ubuntu"),
r_implementations = c("gnu-r", "mro"), volumes... | /man/benchmarks_code.Rd | permissive | ismailsunni/altRnative | R | false | true | 1,666 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/benchmark.R
\name{benchmarks_code}
\alias{benchmarks_code}
\title{Run benchmark for R code across R implementation and platform}
\usage{
benchmarks_code(code, platforms = c("debian", "ubuntu"),
r_implementations = c("gnu-r", "mro"), volumes... |
## TidyX Episode 74: Joins with Databases
### Packages ---------------------------------------------
library(tidyverse)
library(rvest)
library(janitor)
library(RSQLite)
library(DBI)
library(microbenchmark)
### Get Game PbP Data ---------------------------------------------
pull_game_pbp_data <- function(game_id, ... | /TidyTuesday_Explained/074-Databases_with_R_3/Episode 74 - Joins with databases.R | no_license | Jpzhaoo/TidyX | R | false | false | 6,410 | r |
## TidyX Episode 74: Joins with Databases
### Packages ---------------------------------------------
library(tidyverse)
library(rvest)
library(janitor)
library(RSQLite)
library(DBI)
library(microbenchmark)
### Get Game PbP Data ---------------------------------------------
pull_game_pbp_data <- function(game_id, ... |
#' @export
TestResult <- function(test_name, H0_description, test_statistic, distribution, ...){
crit_values <- critical_values(distribution=distribution, ...)
test_result <- structure(list("test" = test_name,
"H0"= H0_description,
"test_... | /R/test_result.r | permissive | kevinkevin556/econometrics | R | false | false | 817 | r |
#' @export
TestResult <- function(test_name, H0_description, test_statistic, distribution, ...){
crit_values <- critical_values(distribution=distribution, ...)
test_result <- structure(list("test" = test_name,
"H0"= H0_description,
"test_... |
# ----------------------------
# Function to get formals
# from the user provided function
# function by: Jon Harmon
# ----------------------------
library(magrittr)
get_all_formals <- function(func) {
# If the function is passed in as a function, get its name.
func <- rlang::as_name(rlang::enquo(func))
if (sl... | /Presentations/Week17/Cohort1/expressions/get_all_formals.R | no_license | r4ds/bookclub-Advanced_R | R | false | false | 703 | r | # ----------------------------
# Function to get formals
# from the user provided function
# function by: Jon Harmon
# ----------------------------
library(magrittr)
get_all_formals <- function(func) {
# If the function is passed in as a function, get its name.
func <- rlang::as_name(rlang::enquo(func))
if (sl... |
#reading the data
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
#merging the two datasets
NEISCC <- merge(NEI, SCC, by="SCC")
#subsetting the coal combustion related sources values
coal <- grepl("coal", NEISCC$Short.Name, ignore.case = TRUE)
coal <- subset(NEISCC, coal)
#cre... | /plot4.R | no_license | e-abuzaid/Exploratory-data-analysis-course-project | R | false | false | 786 | r | #reading the data
NEI <- readRDS("summarySCC_PM25.rds")
SCC <- readRDS("Source_Classification_Code.rds")
#merging the two datasets
NEISCC <- merge(NEI, SCC, by="SCC")
#subsetting the coal combustion related sources values
coal <- grepl("coal", NEISCC$Short.Name, ignore.case = TRUE)
coal <- subset(NEISCC, coal)
#cre... |
library(dplyr)
library(ggplot2)
library(grid)
library(gtable)
load('cleaned_data')
# Get names ####
renameVariable <- function(x) {
words = strsplit(x, '_')[[1]]
new_name = vector()
for (i in words){
s= toupper(substring(i, 1,1))
new_word = paste0(s, substring(i,2,nchar(i)))
if(i==words[1]){new_name... | /eda.R | no_license | carolynkpi/HDB_Phase1 | R | false | false | 12,057 | r | library(dplyr)
library(ggplot2)
library(grid)
library(gtable)
load('cleaned_data')
# Get names ####
renameVariable <- function(x) {
words = strsplit(x, '_')[[1]]
new_name = vector()
for (i in words){
s= toupper(substring(i, 1,1))
new_word = paste0(s, substring(i,2,nchar(i)))
if(i==words[1]){new_name... |
library(gtools)
best <- function(state, outcome){
data<- read.csv("outcome-of-care-measures.csv")
p<-1
if (!state %in% unique(data$State)){
p=0
stop("Invalid State")
}
if (!outcome %in% c("heart attack","heart failure","pneumonia")){
p=0
stop("Invalid Outcome")
}
if (p==1){
if (outcome=="heart at... | /best.R | no_license | yagmuruzuun/ProgrammingAssignment3 | R | false | false | 1,106 | r | library(gtools)
best <- function(state, outcome){
data<- read.csv("outcome-of-care-measures.csv")
p<-1
if (!state %in% unique(data$State)){
p=0
stop("Invalid State")
}
if (!outcome %in% c("heart attack","heart failure","pneumonia")){
p=0
stop("Invalid Outcome")
}
if (p==1){
if (outcome=="heart at... |
## Check if zip file is already downloaded. If not download to working directory.
zipfile <- "household_power_consumption.zip"
if (!file.exists(zipfile)) {
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",
destfile=zipfile, method="curl"... | /plot3.R | no_license | gogounou/ExData_Plotting1 | R | false | false | 1,425 | r | ## Check if zip file is already downloaded. If not download to working directory.
zipfile <- "household_power_consumption.zip"
if (!file.exists(zipfile)) {
download.file("https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",
destfile=zipfile, method="curl"... |
source( "masternegloglikereduced1.R" )
source("eudicottree.R" )
library( "expm" )
source( "Qmatrixwoodherb3.R" )
source("Pruning2.R")
bichrom.dataset<-read.table( "eudicotvals.txt",header=FALSE,sep=",",stringsAsFactors=FALSE)
last.state=50
uniform.samples<-read.csv("sample474.csv",header=FALSE)
a<- as.numeric(t(unif... | /Reduced model optimizations/explorelikereduced474.R | no_license | roszenil/Bichromdryad | R | false | false | 750 | r | source( "masternegloglikereduced1.R" )
source("eudicottree.R" )
library( "expm" )
source( "Qmatrixwoodherb3.R" )
source("Pruning2.R")
bichrom.dataset<-read.table( "eudicotvals.txt",header=FALSE,sep=",",stringsAsFactors=FALSE)
last.state=50
uniform.samples<-read.csv("sample474.csv",header=FALSE)
a<- as.numeric(t(unif... |
## -----------------------------------------------------------------------------
library(bridgesampling)
set.seed(12345)
# Sleep data from t.test example
data(sleep)
# compute difference scores
y <- sleep$extra[sleep$group == 2] - sleep$extra[sleep$group == 1]
n <- length(y)
## ---- eval=FALSE----------... | /inst/doc/bridgesampling_stan_ttest.R | no_license | cran/bridgesampling | R | false | false | 5,069 | r | ## -----------------------------------------------------------------------------
library(bridgesampling)
set.seed(12345)
# Sleep data from t.test example
data(sleep)
# compute difference scores
y <- sleep$extra[sleep$group == 2] - sleep$extra[sleep$group == 1]
n <- length(y)
## ---- eval=FALSE----------... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/interpretation_help.R
\name{mapClusters}
\alias{mapClusters}
\title{build some maps to visualize the results of the clustering}
\usage{
mapClusters(geodata, belongmatrix, undecided = NULL)
}
\arguments{
\item{belongmatrix}{The belonging matri... | /man/mapClusters.Rd | no_license | JeremyGelb/old_geoCmeans | R | false | true | 451 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/interpretation_help.R
\name{mapClusters}
\alias{mapClusters}
\title{build some maps to visualize the results of the clustering}
\usage{
mapClusters(geodata, belongmatrix, undecided = NULL)
}
\arguments{
\item{belongmatrix}{The belonging matri... |
library(bigsnpr)
ukb <- snp_attach("data/UKBB_imp_HM3.rds")
G <- ukb$genotypes
CHR <- as.integer(ukb$map$chromosome)
POS <- ukb$map$physical.pos
(NCORES <- as.integer(Sys.getenv("SLURM_JOB_CPUS_PER_NODE")) - 1L)
bigassertr::assert_dir("data/pheno-simu")
#### Anywhere on the genome ####
params <- expand.grid(
h2 ... | /code/prepare-simu-phenotypes.R | no_license | privefl/paper-ldpred2 | R | false | false | 1,768 | r | library(bigsnpr)
ukb <- snp_attach("data/UKBB_imp_HM3.rds")
G <- ukb$genotypes
CHR <- as.integer(ukb$map$chromosome)
POS <- ukb$map$physical.pos
(NCORES <- as.integer(Sys.getenv("SLURM_JOB_CPUS_PER_NODE")) - 1L)
bigassertr::assert_dir("data/pheno-simu")
#### Anywhere on the genome ####
params <- expand.grid(
h2 ... |
##
## Description: Create plot1 for Project 1 of R-class
##
## AUTHOR : Edward J Hopkins
## $DATE : Mon Aug 04 19:25:48 2014 ## date()
## $Revision : 1.00 $
## DEVELOPED : Rstudio, Version 0.98.507 ## packageVersion("rstudio")
## : R version 3.1.0 (2014-04-10) ## R.Version.string
## ... | /plot1.R | no_license | AConundrum/ExData_Plotting1 | R | false | false | 2,807 | r | ##
## Description: Create plot1 for Project 1 of R-class
##
## AUTHOR : Edward J Hopkins
## $DATE : Mon Aug 04 19:25:48 2014 ## date()
## $Revision : 1.00 $
## DEVELOPED : Rstudio, Version 0.98.507 ## packageVersion("rstudio")
## : R version 3.1.0 (2014-04-10) ## R.Version.string
## ... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/measures_multiclass.R
\name{multiclass.Brier}
\alias{multiclass.Brier}
\title{Multiclass Brier score}
\usage{
multiclass.Brier(probabilities, truth)
}
\arguments{
\item{probabilities}{[numeric] matrix of predicted probabilities with columnnam... | /man/multiclass.Brier.Rd | no_license | PhilippPro/measures | R | false | true | 888 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/measures_multiclass.R
\name{multiclass.Brier}
\alias{multiclass.Brier}
\title{Multiclass Brier score}
\usage{
multiclass.Brier(probabilities, truth)
}
\arguments{
\item{probabilities}{[numeric] matrix of predicted probabilities with columnnam... |
#!/usr/bin/env Rscript
# Load required modules
library(tidyverse)
library(optparse)
# Define Options
option_list = list(
make_option(c("-p", "--project"),
type="character",
default=NULL,
help="Project Name",
metavar="character"),
make_option(c("-t", "--t... | /reporting_tools/summarize_project_runtime.R | permissive | kdrenner/jetstream_resources | R | false | false | 11,703 | r | #!/usr/bin/env Rscript
# Load required modules
library(tidyverse)
library(optparse)
# Define Options
option_list = list(
make_option(c("-p", "--project"),
type="character",
default=NULL,
help="Project Name",
metavar="character"),
make_option(c("-t", "--t... |
############################################################
# Course: Modern econometric and statistical learning
# methods forquantitative asset management
#
# Instructor: Prof. Dr. Marc Paolella,
# Urban Ulrych,
# Simon Hediger,
# University of Zurich
#... | /hw_7/hw_7_ex_2.R | no_license | rbeeli/course_modern_econometrics_2020 | R | false | false | 9,284 | r | ############################################################
# Course: Modern econometric and statistical learning
# methods forquantitative asset management
#
# Instructor: Prof. Dr. Marc Paolella,
# Urban Ulrych,
# Simon Hediger,
# University of Zurich
#... |
#' @export
data_plot.parameters_pca <- function(x, data = NULL, ...) {
dataplot <- as.data.frame(x)
dataplot$Complexity <- NULL
dataplot$Uniqueness <- NULL
dataplot$MSA <- NULL
if ("Label" %in% colnames(dataplot)) {
dataplot$Variable <- dataplot$Label
dataplot$Label <- NULL
}
dataplot <- .reshap... | /R/plot.parameters_pca.R | no_license | cran/see | R | false | false | 3,502 | r | #' @export
data_plot.parameters_pca <- function(x, data = NULL, ...) {
dataplot <- as.data.frame(x)
dataplot$Complexity <- NULL
dataplot$Uniqueness <- NULL
dataplot$MSA <- NULL
if ("Label" %in% colnames(dataplot)) {
dataplot$Variable <- dataplot$Label
dataplot$Label <- NULL
}
dataplot <- .reshap... |
\name{roofDiff}
\alias{roofDiff}
\keyword{
second-order difference estimator
}
\title{
roof/valley edge detection
}
\description{
Compute difference between two one-sided gradient
estimators.
}
\usage{
roofDiff(image, bandwidth, blur)
}
\arguments{
\item{image}{A square matrix object of size n by n, no
mis... | /man/roofDiff.Rd | no_license | cran/DRIP | R | false | false | 1,762 | rd | \name{roofDiff}
\alias{roofDiff}
\keyword{
second-order difference estimator
}
\title{
roof/valley edge detection
}
\description{
Compute difference between two one-sided gradient
estimators.
}
\usage{
roofDiff(image, bandwidth, blur)
}
\arguments{
\item{image}{A square matrix object of size n by n, no
mis... |
#' analyseslope: A package which performs Bayesian analysis and visualization for slope parameters.
#'
#' The package contains functions which extracts slope parameters from our database,
#' plot these slope parameters, and analyse them. We can also identify outliers.
#'
#' @section analyseslope functions:
#' The analy... | /R/analyseslope.R | no_license | samaperrin/analyseslope | R | false | false | 392 | r | #' analyseslope: A package which performs Bayesian analysis and visualization for slope parameters.
#'
#' The package contains functions which extracts slope parameters from our database,
#' plot these slope parameters, and analyse them. We can also identify outliers.
#'
#' @section analyseslope functions:
#' The analy... |
library(pbdMPI)
### Name: get job id
### Title: Divide Job ID by Ranks
### Aliases: get.jid
### Keywords: utility
### ** Examples
### Save code in a file "demo.r" and run with 4 processors by
### SHELL> mpiexec -np 4 Rscript demo.r
spmd.code <- "
### Initial.
suppressMessages(library(pbdMPI, quietly = TRUE))
init(... | /data/genthat_extracted_code/pbdMPI/examples/vv_get_jid.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 867 | r | library(pbdMPI)
### Name: get job id
### Title: Divide Job ID by Ranks
### Aliases: get.jid
### Keywords: utility
### ** Examples
### Save code in a file "demo.r" and run with 4 processors by
### SHELL> mpiexec -np 4 Rscript demo.r
spmd.code <- "
### Initial.
suppressMessages(library(pbdMPI, quietly = TRUE))
init(... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/procrustesCM_RPS.R
\name{procrustesCM_RPS}
\alias{procrustesCM_RPS}
\title{This function s simply a wrapper for the geomorph function gpagen that performs
the classical least squares Procrustes superimposition of the input configurations... | /man/procrustesCM_RPS.Rd | no_license | cran/RPS | R | false | true | 1,447 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/procrustesCM_RPS.R
\name{procrustesCM_RPS}
\alias{procrustesCM_RPS}
\title{This function s simply a wrapper for the geomorph function gpagen that performs
the classical least squares Procrustes superimposition of the input configurations... |
# most variable genes.r
options(stringsAsFactors=FALSE) # for compatibile code between us
library(tidyverse)
getwd() <-
"~/Documents/UCSC/Junior/Treehouse/Treehouse_OutlierRNASeq/"
setwd(paste0(getwd(), "comp4.3_tert8.ckcc.outlier_results"))
up_outlier_files=list.files(, "outlier_results_")
outlierResults<-la... | /RCode/mostVariableGenes.R | no_license | liammckay19/Treehouse_OutlierRNASeq | R | false | false | 8,737 | r | # most variable genes.r
options(stringsAsFactors=FALSE) # for compatibile code between us
library(tidyverse)
getwd() <-
"~/Documents/UCSC/Junior/Treehouse/Treehouse_OutlierRNASeq/"
setwd(paste0(getwd(), "comp4.3_tert8.ckcc.outlier_results"))
up_outlier_files=list.files(, "outlier_results_")
outlierResults<-la... |
#' @title Get all the tasks which are currently scheduled at the Windows task scheduler.
#' @description Get all the tasks which are currently scheduled at the Windows task scheduler.
#'
#' @return a data.frame with scheduled tasks as returned by schtasks /Query for which the Taskname or second
#' column in th... | /R/taskscheduleR.R | no_license | cran/taskscheduleR | R | false | false | 13,359 | r |
#' @title Get all the tasks which are currently scheduled at the Windows task scheduler.
#' @description Get all the tasks which are currently scheduled at the Windows task scheduler.
#'
#' @return a data.frame with scheduled tasks as returned by schtasks /Query for which the Taskname or second
#' column in th... |
#' Get the GBIF backbone taxon ID from taxonomic names.
#'
#' @export
#' @param sciname character; scientific name.
#' @param ask logical; should get_colid be run in interactive mode?
#' If TRUE and more than one ID is found for the species, the user is asked for
#' input. If FALSE NA is returned for multiple matches.
... | /R/get_gbifid.R | permissive | ktargows/taxize | R | false | false | 11,246 | r | #' Get the GBIF backbone taxon ID from taxonomic names.
#'
#' @export
#' @param sciname character; scientific name.
#' @param ask logical; should get_colid be run in interactive mode?
#' If TRUE and more than one ID is found for the species, the user is asked for
#' input. If FALSE NA is returned for multiple matches.
... |
if(!nzchar(Sys.getenv("MASS_TESTING"))) q("no")
unlink("scripts", recursive = TRUE)
dir.create("scripts")
Sys.unsetenv("R_TESTS") # avoid startup using startup.Rs (which is in the dir above)
setwd("scripts")
writeLines(c(".Random.seed <- c(0L,1:3)",
"options(width = 65, show.signif.stars=FALSE)"),
... | /Tools/DECoN-master/Windows/packrat/lib-R/MASS/tests/scripts.R | permissive | robinwijngaard/TFM_code | R | false | false | 1,148 | r | if(!nzchar(Sys.getenv("MASS_TESTING"))) q("no")
unlink("scripts", recursive = TRUE)
dir.create("scripts")
Sys.unsetenv("R_TESTS") # avoid startup using startup.Rs (which is in the dir above)
setwd("scripts")
writeLines(c(".Random.seed <- c(0L,1:3)",
"options(width = 65, show.signif.stars=FALSE)"),
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PercChange.R
\name{PercChange}
\alias{PercChange}
\title{Calculate the percentage change from a specified lag, including within groups}
\usage{
PercChange(data, Var, GroupVar, NewVar, slideBy = -1, type = "percent", ...)
}
\arguments{
\item{d... | /man/PercChange.Rd | no_license | cran/DataCombine | R | false | true | 1,775 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/PercChange.R
\name{PercChange}
\alias{PercChange}
\title{Calculate the percentage change from a specified lag, including within groups}
\usage{
PercChange(data, Var, GroupVar, NewVar, slideBy = -1, type = "percent", ...)
}
\arguments{
\item{d... |
install.packages("dplyr")
install.packages("NbClust")
library(dplyr)
library(NbClust)
choose.dir()
setwd("C:/Users/PC39043/Downloads")
getwd()
data <- read.csv("Customer2001.csv")
#Peak 주간, OffPeak 야간, Weedend 주말, International 국제통화
data %>% head()
data %>% names()
data.use <- data %>% select("Pe... | /K-means(통화량).R | no_license | lch5518/OpenDataAnalysis | R | false | false | 707 | r | install.packages("dplyr")
install.packages("NbClust")
library(dplyr)
library(NbClust)
choose.dir()
setwd("C:/Users/PC39043/Downloads")
getwd()
data <- read.csv("Customer2001.csv")
#Peak 주간, OffPeak 야간, Weedend 주말, International 국제통화
data %>% head()
data %>% names()
data.use <- data %>% select("Pe... |
% Generated by roxygen2 (4.1.1.9000): do not edit by hand
% Please edit documentation in R/immunogen_mh_tools_2.r
\name{get_q_h1_given_h2}
\alias{get_q_h1_given_h2}
\title{Evaluate Q function}
\usage{
get_q_h1_given_h2(h1, h2, unif.prop = T, radius)
}
\description{
Evaluate Q function
}
| /man/get_q_h1_given_h2.Rd | no_license | liesb/BIITE | R | false | false | 289 | rd | % Generated by roxygen2 (4.1.1.9000): do not edit by hand
% Please edit documentation in R/immunogen_mh_tools_2.r
\name{get_q_h1_given_h2}
\alias{get_q_h1_given_h2}
\title{Evaluate Q function}
\usage{
get_q_h1_given_h2(h1, h2, unif.prop = T, radius)
}
\description{
Evaluate Q function
}
|
\name{prox.l1}
\alias{prox.l1}
\title{
Proximal L1 Mapping
}
\description{
Calculates the proximal L1 mapping for the given input matrix
}
\usage{
prox.l1(z, lambda, r)
}
\arguments{
\item{z}{input matrix}
\item{lambda}{parameters for calculating proximal L1 mapping}
\item{r}{number of columns used in matrix}
}
... | /R/amanpg/man/prox.l1.Rd | no_license | benjoch/AManPG | R | false | false | 702 | rd | \name{prox.l1}
\alias{prox.l1}
\title{
Proximal L1 Mapping
}
\description{
Calculates the proximal L1 mapping for the given input matrix
}
\usage{
prox.l1(z, lambda, r)
}
\arguments{
\item{z}{input matrix}
\item{lambda}{parameters for calculating proximal L1 mapping}
\item{r}{number of columns used in matrix}
}
... |
library(testthat)
library(unitizer)
local( {
test_that("Invisible Expression", {
e <- new.env()
exp <- quote(x <- 1:30)
expect_equal(1:30, unitizer:::eval_user_exp(exp, e)$value)
} )
# `eval_user_exp` must be evaluated outside of test_that; also note that by
# design this will output stuff to stder... | /tests/testthat/testthat.exec.R | no_license | loerasg/unitizer | R | false | false | 7,605 | r | library(testthat)
library(unitizer)
local( {
test_that("Invisible Expression", {
e <- new.env()
exp <- quote(x <- 1:30)
expect_equal(1:30, unitizer:::eval_user_exp(exp, e)$value)
} )
# `eval_user_exp` must be evaluated outside of test_that; also note that by
# design this will output stuff to stder... |
## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
# makeCacheMatrix - contains special function atributes in order to cache the inverse of a matrix
# Returns functions: set, get, setinverse, getinverse
makeCacheMatrix ... | /cachematrix.R | no_license | B2BWild/ProgrammingAssignment2 | R | false | false | 1,018 | r | ## Put comments here that give an overall description of what your
## functions do
## Write a short comment describing this function
# makeCacheMatrix - contains special function atributes in order to cache the inverse of a matrix
# Returns functions: set, get, setinverse, getinverse
makeCacheMatrix ... |
require(rtracklayer)
require(plyr)
require(grid)
require(ggplot2)
source('Location.R')
source('comp.fun.R')
source('comp.plot.fun.R')
diro = sprintf("%s/comp.stat", Sys.getenv("misc3"))
tlen = read.table(tcfg$size, sep = "\t", header = F, as.is = T)
grt = with(tlen, GRanges(seqnames = V1, ranges = IRanges(1, end = V2... | /archive/comp.sv.R | permissive | orionzhou/rmaize | R | false | false | 6,509 | r | require(rtracklayer)
require(plyr)
require(grid)
require(ggplot2)
source('Location.R')
source('comp.fun.R')
source('comp.plot.fun.R')
diro = sprintf("%s/comp.stat", Sys.getenv("misc3"))
tlen = read.table(tcfg$size, sep = "\t", header = F, as.is = T)
grt = with(tlen, GRanges(seqnames = V1, ranges = IRanges(1, end = V2... |
# ---- 0. Load dependencies
message('Loading script dependencies...\n')
# Suppress package load messages to ensure logs are not cluttered
suppressMessages({
library(minfi, quietly=TRUE)
library(data.table, quietly=TRUE)
library(qs, quietly=TRUE)
library(wateRmelon, quietly=TRUE)
})
# ---- 0. Parse Sna... | /scripts/5_dropProbesWithLessThan3Beads.R | no_license | bhklab/illuminaEPICmethylation | R | false | false | 1,316 | r | # ---- 0. Load dependencies
message('Loading script dependencies...\n')
# Suppress package load messages to ensure logs are not cluttered
suppressMessages({
library(minfi, quietly=TRUE)
library(data.table, quietly=TRUE)
library(qs, quietly=TRUE)
library(wateRmelon, quietly=TRUE)
})
# ---- 0. Parse Sna... |
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!... | /R/filter_stats.R | no_license | knausb/poppr | R | false | false | 12,341 | r | #!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!#
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!... |
#Read files test
stuff <- list.dirs(path = sy, full.names = FALSE, recursive = TRUE)
| /Preprocessing/pdf reading into corpus.R | no_license | ashgillman/BOW-Mining-Project | R | false | false | 88 | r | #Read files test
stuff <- list.dirs(path = sy, full.names = FALSE, recursive = TRUE)
|
local(envir=.PBSmodEnv,expr={
locale = sys.frame(sys.nframe() - 1) # local environment
# **********************************************
# R code for the Lissajous example
# **********************************************
# Calculate and draw a Lissajous figure ("Plot" button)
drawLiss <- function() {
getW... | /PBSmodelling/inst/examples/LissFig.r | no_license | pbs-software/pbs-modelling | R | false | false | 605 | r | local(envir=.PBSmodEnv,expr={
locale = sys.frame(sys.nframe() - 1) # local environment
# **********************************************
# R code for the Lissajous example
# **********************************************
# Calculate and draw a Lissajous figure ("Plot" button)
drawLiss <- function() {
getW... |
#
# 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 us... | /r/src/R/ai/h2o/sparkling/ml/models/H2OMOJOSettings.R | permissive | h2oai/sparkling-water | R | false | false | 4,998 | 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 us... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pipe.R
\name{\%>\%}
\alias{\%>\%}
\title{magrittr forward-pipe operator}
\description{
magrittr forward-pipe operator
}
\keyword{internal}
| /man/grapes-greater-than-grapes.Rd | no_license | knausb/poppr | R | false | true | 218 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pipe.R
\name{\%>\%}
\alias{\%>\%}
\title{magrittr forward-pipe operator}
\description{
magrittr forward-pipe operator
}
\keyword{internal}
|
## Vector
x<-5:20;
print(x)
| /script/RProgramming/first.R | no_license | forkmafia993/Project1 | R | false | false | 29 | r | ## Vector
x<-5:20;
print(x)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.