content large_stringlengths 0 6.46M | path large_stringlengths 3 331 | license_type large_stringclasses 2
values | repo_name large_stringlengths 5 125 | language large_stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.46M | extension large_stringclasses 75
values | text stringlengths 0 6.46M |
|---|---|---|---|---|---|---|---|---|---|
library(rlang) # for duplicate function
simGame <- function(teams, matchups) {
# function to simulate a game
# INPUT:
# teams is a vector of two teams (indices) that are "playing'
# matchups is the matchup/probability matrix
# OUTPUT:
# returns winner of game
team1 <- teams[1]
team2 <- teams[2... | /simulation/sim_tournament_initial.R | permissive | pjdohm/BracketAnalyzer | R | false | false | 2,657 | r | library(rlang) # for duplicate function
simGame <- function(teams, matchups) {
# function to simulate a game
# INPUT:
# teams is a vector of two teams (indices) that are "playing'
# matchups is the matchup/probability matrix
# OUTPUT:
# returns winner of game
team1 <- teams[1]
team2 <- teams[2... |
# Setting language in order to get automatic label names for weekdays in English
# Otherwise it will be written in native PC language which in this case is not English
Sys.setlocale("LC_TIME", "English")
# Downloading and extracting the data
url <- 'https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_powe... | /plot4.R | no_license | myanastasja/ExData_Plotting1 | R | false | false | 2,204 | r | # Setting language in order to get automatic label names for weekdays in English
# Otherwise it will be written in native PC language which in this case is not English
Sys.setlocale("LC_TIME", "English")
# Downloading and extracting the data
url <- 'https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_powe... |
library(openxlsx)
#loading the data from IMDB Movie dataset
DATA <- read.csv("IMDb movies.csv")
#filtering of Null values in the column "year"
filter_data <- subset(DATA,(!is.na(DATA[,4])))
head(filter_data, n = c(6L,2L))
#print(filter_data)
#filtering of Null values in the column "avg_votes"
filter_data <-... | /Hypothesis_testing.R | no_license | rajesh-kumar-p/Data-Analytics-project | R | false | false | 2,708 | r | library(openxlsx)
#loading the data from IMDB Movie dataset
DATA <- read.csv("IMDb movies.csv")
#filtering of Null values in the column "year"
filter_data <- subset(DATA,(!is.na(DATA[,4])))
head(filter_data, n = c(6L,2L))
#print(filter_data)
#filtering of Null values in the column "avg_votes"
filter_data <-... |
# Initializing various things we need for the script
setwd("C:/Users/Jaret/Documents")
library(poliscidata)
world = world
gss = gss
# Question 1, part A: Summary Statistics
describe(world$women13)
wtd.hist(world$women13)
# Question 1, part D: Sorting a dataset by some variable
sortC(world, country, women13... | /apa hw2.R | no_license | jarethughes/school-work | R | false | false | 962 | r | # Initializing various things we need for the script
setwd("C:/Users/Jaret/Documents")
library(poliscidata)
world = world
gss = gss
# Question 1, part A: Summary Statistics
describe(world$women13)
wtd.hist(world$women13)
# Question 1, part D: Sorting a dataset by some variable
sortC(world, country, women13... |
## Classifies bivalent promoters using imputed data.
##
biv <- read.table("poised-plosgen.mm8.bed", fill=TRUE)
coord <- read.table("bivalent.mm9.bed")
biv <- biv[biv$V6 %in% coord$V4,]
biv[,2] <- coord[match(biv$V6, coord$V4),2]
biv[,3] <- coord[match(biv$V6, coord$V4),3]
biv <- biv[biv[,1] == "chr1",]
summary(bi... | /bivalent/classifyBivalent.R | no_license | Danko-Lab/histone-mark-imputation | R | false | false | 4,729 | r | ## Classifies bivalent promoters using imputed data.
##
biv <- read.table("poised-plosgen.mm8.bed", fill=TRUE)
coord <- read.table("bivalent.mm9.bed")
biv <- biv[biv$V6 %in% coord$V4,]
biv[,2] <- coord[match(biv$V6, coord$V4),2]
biv[,3] <- coord[match(biv$V6, coord$V4),3]
biv <- biv[biv[,1] == "chr1",]
summary(bi... |
library(shiny)
palette(c("#E41A1C", "#377EB8", "#4DAF4A", "#984EA3",
"#FF7F00", "#FFFF33", "#A65628", "#F781BF", "#999999"))
visits <- read.csv("private_data/real_data_1obs_log.csv")
server <- shinyServer(function(input, output, session) {
# Combine the selected variables into a new data frame
selec... | /Lakes/app.R | no_license | dona0212/natvisit | R | false | false | 868 | r | library(shiny)
palette(c("#E41A1C", "#377EB8", "#4DAF4A", "#984EA3",
"#FF7F00", "#FFFF33", "#A65628", "#F781BF", "#999999"))
visits <- read.csv("private_data/real_data_1obs_log.csv")
server <- shinyServer(function(input, output, session) {
# Combine the selected variables into a new data frame
selec... |
## A pair of functions that cache the inverse of a matrix.
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
setInverse <- function(inverse) inv <<- inverse
... | /cachematrix.R | no_license | sattwik4/ProgrammingAssignment2 | R | false | false | 791 | r | ## A pair of functions that cache the inverse of a matrix.
## This function creates a special "matrix" object that can cache its inverse.
makeCacheMatrix <- function(x = matrix()) {inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
setInverse <- function(inverse) inv <<- inverse
... |
testlist <- list(phi = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0), x = c(1.36656528938164e-311, -1.681626... | /dcurver/inst/testfiles/ddc/AFL_ddc/ddc_valgrind_files/1609867332-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 831 | r | testlist <- list(phi = c(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 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, 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, 0, 0, 0, 0, 0, 0, 0, 0), x = c(1.36656528938164e-311, -1.681626... |
28a94108481d83325c1344c0800ea232 incrementer-enc01-uniform-depth-25.qdimacs 15549 40271 | /code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Database/Miller-Marin/incrementer-encoder/incrementer-enc01-uniform-depth-25/incrementer-enc01-uniform-depth-25.R | no_license | arey0pushpa/dcnf-autarky | R | false | false | 87 | r | 28a94108481d83325c1344c0800ea232 incrementer-enc01-uniform-depth-25.qdimacs 15549 40271 |
# UI file
library(shiny)
library(plotly)
library(collapsibleTree)
library(shinythemes)
library(leaflet)
source("scatter_files/support.R")
source("organizations.R")
data <- read.csv("connections_scripts/comparison.csv")
# Responsbile for the first page which welcomes the users to the page
first_page <- tabPanel(
"W... | /ui.R | no_license | Haykall/superhero-API | R | false | false | 6,373 | r | # UI file
library(shiny)
library(plotly)
library(collapsibleTree)
library(shinythemes)
library(leaflet)
source("scatter_files/support.R")
source("organizations.R")
data <- read.csv("connections_scripts/comparison.csv")
# Responsbile for the first page which welcomes the users to the page
first_page <- tabPanel(
"W... |
library(DECIPHER)
long_seqs <- readDNAStringSet(file.path(getwd(), "datasets", "ch3", "plastid_genomes.fa"))
long_seqs
##make a sequence db on disk
Seqs2DB(long_seqs, "XStringSet", "long_db", names(long_seqs))
## Find Syntenic bloocks
synteny <- FindSynteny("long_db")
##view syntenic blocks
pairs(synteny)
plot(synten... | /Chapter03/recipe_5.R | permissive | PacktPublishing/R-Bioinformatics-Cookbook | R | false | false | 626 | r | library(DECIPHER)
long_seqs <- readDNAStringSet(file.path(getwd(), "datasets", "ch3", "plastid_genomes.fa"))
long_seqs
##make a sequence db on disk
Seqs2DB(long_seqs, "XStringSet", "long_db", names(long_seqs))
## Find Syntenic bloocks
synteny <- FindSynteny("long_db")
##view syntenic blocks
pairs(synteny)
plot(synten... |
##########################################
#### GAM MODELS FOR T1 BIFACTOR STUDY ####
##########################################
#Load data
data.NMF <- readRDS("/data/jux/BBL/projects/pncT1AcrossDisorder/subjectData/n1394_T1_subjData.rds")
#Load library
library(mgcv)
#Get NMF variable names
nmfComponents <- names(da... | /ctNMF/SensitivityAnalysis/GamAnalyses_T1CorrTraits_ctNMF_fear_noTBV_envSES.R | no_license | PennBBL/pncT1Bifactors | R | false | false | 1,496 | r | ##########################################
#### GAM MODELS FOR T1 BIFACTOR STUDY ####
##########################################
#Load data
data.NMF <- readRDS("/data/jux/BBL/projects/pncT1AcrossDisorder/subjectData/n1394_T1_subjData.rds")
#Load library
library(mgcv)
#Get NMF variable names
nmfComponents <- names(da... |
# This file was generated by Rcpp::compileAttributes
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
W <- function(lam, nu, sumTo) {
.Call('CompGLM_W', PACKAGE = 'CompGLM', lam, nu, sumTo)
}
Y <- function(lam, nu, sumTo) {
.Call('CompGLM_Y', PACKAGE = 'CompGLM', lam, nu, sumTo)
}
Z <- function(lam, n... | /CompGLM/R/RcppExports.R | no_license | ingted/R-Examples | R | false | false | 4,243 | r | # This file was generated by Rcpp::compileAttributes
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
W <- function(lam, nu, sumTo) {
.Call('CompGLM_W', PACKAGE = 'CompGLM', lam, nu, sumTo)
}
Y <- function(lam, nu, sumTo) {
.Call('CompGLM_Y', PACKAGE = 'CompGLM', lam, nu, sumTo)
}
Z <- function(lam, n... |
###################################################################
# rdmulti: analysis of RD designs with multiple cutoffs or scores
# RDMCPLOT illustration file
# 11-May-2020
# Authors: Matias Cattaneo, Rocio Titiunik, Gonzalo Vazquez-Bare
###################################################################
rm(list =... | /R/rdmcplot_illustration.R | no_license | jeremy-siow/rdmulti | R | false | false | 2,392 | r | ###################################################################
# rdmulti: analysis of RD designs with multiple cutoffs or scores
# RDMCPLOT illustration file
# 11-May-2020
# Authors: Matias Cattaneo, Rocio Titiunik, Gonzalo Vazquez-Bare
###################################################################
rm(list =... |
#############################################
#############################################
### ###
### TEMPLATE FOR SDM WORKFLOW ###
### ###
### This script file is a template for ###
### the species distribution modelling ##... | /scripts/workflows_spartan/Graycassis_bruxner_workflow.R | no_license | Doi90/bushfireSOS_workflow | R | false | false | 9,327 | r | #############################################
#############################################
### ###
### TEMPLATE FOR SDM WORKFLOW ###
### ###
### This script file is a template for ###
### the species distribution modelling ##... |
#!/usr/bin/env Rscript
### PaLD_SNPvsHetV: How linked are SNPs to the het-v locus along the genome?
#############################################################################
# Part of the Snakemake pipeline PaLD.smk
# =======================================
# Sandra Lorena Ament Velasquez
# Johannesson Lab, Evolut... | /PaLD/scripts/PaLD_SNPvsHetV.R | permissive | johannessonlab/HetVPaper | R | false | false | 8,833 | r | #!/usr/bin/env Rscript
### PaLD_SNPvsHetV: How linked are SNPs to the het-v locus along the genome?
#############################################################################
# Part of the Snakemake pipeline PaLD.smk
# =======================================
# Sandra Lorena Ament Velasquez
# Johannesson Lab, Evolut... |
#' @importFrom ggplot
#' @importFrom ergm
#' @importFrom RColorBrewer
#'
#' @param meergm.fit model output
#' @param custom_var_names overwrite automatic variable names
model_check <- function(meergm.fit = NULL, custom_var_names = NULL){
require(ggplot2)
require(RColorBrewer)
stage.1 <- data.frame(meer... | /bayesnet/R/posterior_density.R | no_license | jfedgerton/bayesnet | R | false | false | 2,013 | r | #' @importFrom ggplot
#' @importFrom ergm
#' @importFrom RColorBrewer
#'
#' @param meergm.fit model output
#' @param custom_var_names overwrite automatic variable names
model_check <- function(meergm.fit = NULL, custom_var_names = NULL){
require(ggplot2)
require(RColorBrewer)
stage.1 <- data.frame(meer... |
#Installing and loading the libraries
install.packages("recommenderlab", dependencies=TRUE)
install.packages("Matrix")
library("recommenderlab")
library(caTools)
#movie rating data
movie_rate_data <- read.csv(file.choose())
View(movie_rate_data)
#metadata about the variable
str(movie_rate_data)
table(mo... | /RecommendationEngine.R | no_license | ADITEYARAJ/RECOMMENDATION-SYSTEM | R | false | false | 1,225 | r |
#Installing and loading the libraries
install.packages("recommenderlab", dependencies=TRUE)
install.packages("Matrix")
library("recommenderlab")
library(caTools)
#movie rating data
movie_rate_data <- read.csv(file.choose())
View(movie_rate_data)
#metadata about the variable
str(movie_rate_data)
table(mo... |
library(twitteR)
library(ROAuth)
consumer_key<-"sI8ufoxHnhdb28ouN0IhC5HW1"
consumer_secret<-"HlVd8YYSexUDJs9hWtZc8KujMZN2DlT4HO2hMYPIUDLnQFvCVY"
accesstoken<-"3367472419-cuMifl7YfG43DW5x9YCNtTMLz7p90for2ZO6h3A"
accesssecret<-"SpC5G34eGYRMF5wyDMx1uM630R4zfSM0dGPod0C19XsuZ"
download.file(url="http://curl.haxx... | /TWITTER_CONNECT.R | no_license | upasnaleela/Data-Analyzer | R | false | false | 760 | r | library(twitteR)
library(ROAuth)
consumer_key<-"sI8ufoxHnhdb28ouN0IhC5HW1"
consumer_secret<-"HlVd8YYSexUDJs9hWtZc8KujMZN2DlT4HO2hMYPIUDLnQFvCVY"
accesstoken<-"3367472419-cuMifl7YfG43DW5x9YCNtTMLz7p90for2ZO6h3A"
accesssecret<-"SpC5G34eGYRMF5wyDMx1uM630R4zfSM0dGPod0C19XsuZ"
download.file(url="http://curl.haxx... |
# Data Structures
#make a data frame
cats <-data.frame(coat = c("calico", "black", "tabby"),
weight = c(2.1, 5.0, 3.2),
likes_string = c(1, 0, 1))
write.csv(x = cats, file = "Data/feline_data.csv") #would want to put output in results folder
cats
cats$weight
cats$coat
cats$wei... | /project script.R | no_license | npirtel/r-workshop-uconneeb | R | false | false | 2,057 | r | # Data Structures
#make a data frame
cats <-data.frame(coat = c("calico", "black", "tabby"),
weight = c(2.1, 5.0, 3.2),
likes_string = c(1, 0, 1))
write.csv(x = cats, file = "Data/feline_data.csv") #would want to put output in results folder
cats
cats$weight
cats$coat
cats$wei... |
shipments = read.csv("shipment_sales.csv")
head(shipments)
summary(shipments)
# clean up shipment.date
shipments$shipment.date = substr(as.character(shipments$shipment.date),
start = 1,
stop = 19)
shipments$shipment.date = as.POSIXct(shipments$shipment.... | /etgMap/shipment data processing.R | no_license | loganscalder/EliteTechGear | R | false | false | 1,881 | r | shipments = read.csv("shipment_sales.csv")
head(shipments)
summary(shipments)
# clean up shipment.date
shipments$shipment.date = substr(as.character(shipments$shipment.date),
start = 1,
stop = 19)
shipments$shipment.date = as.POSIXct(shipments$shipment.... |
# This script performs a pairwise significance check between the experimental days (normTime).
# Output: a list of latex-formatted tables (variable ltx) using xtable package.
# Motivation: develop some intuition of the data for those who commonly employ p-values.
library(tibble)
library(gridExtra)
library(ggplot2)
l... | /jdt_pairwise_distribution.R | no_license | RoStall/JDT-Analysis | R | false | false | 2,368 | r | # This script performs a pairwise significance check between the experimental days (normTime).
# Output: a list of latex-formatted tables (variable ltx) using xtable package.
# Motivation: develop some intuition of the data for those who commonly employ p-values.
library(tibble)
library(gridExtra)
library(ggplot2)
l... |
# Calling libraries
library("shiny")
library("shinythemes")
library("ggplot2")
library("plotly")
library("shinyWidgets")
library("RColorBrewer")
library("mice")
library("tidyverse")
library("scatterplot3d")
library("shinyjs")
library("DT")
# Reading the data
ColClasses=c(rep("numeric",9))
DATOS <- read.csv("https:/... | /app.R | no_license | MauMau93/Shiny_app | R | false | false | 12,039 | r | # Calling libraries
library("shiny")
library("shinythemes")
library("ggplot2")
library("plotly")
library("shinyWidgets")
library("RColorBrewer")
library("mice")
library("tidyverse")
library("scatterplot3d")
library("shinyjs")
library("DT")
# Reading the data
ColClasses=c(rep("numeric",9))
DATOS <- read.csv("https:/... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FRD2012.R
\docType{data}
\name{FRD2012}
\alias{FRD2012}
\title{Data of Fudenberg, Rand, and Dreber (2012)}
\format{
A data frame with 13126 rows and 9 variables:
\describe{
\item{treatment}{A factor with six levels which identifies... | /fuzzedpackages/stratEst/man/FRD2012.Rd | no_license | akhikolla/testpackages | R | false | true | 1,597 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/FRD2012.R
\docType{data}
\name{FRD2012}
\alias{FRD2012}
\title{Data of Fudenberg, Rand, and Dreber (2012)}
\format{
A data frame with 13126 rows and 9 variables:
\describe{
\item{treatment}{A factor with six levels which identifies... |
## first grab the column names
column_names <- read.table('household_power_consumption.txt', sep=';', stringsAsFactors=F, nrows=1)
## from a quick grep, 'grep -n -w "1/2/2007" household_power_consumption.txt | head -1'
## we know exactly where to begin reading the given file without reading it all into R
## we also kn... | /plot1.R | no_license | brooksf/ExData_Plotting1 | R | false | false | 1,055 | r | ## first grab the column names
column_names <- read.table('household_power_consumption.txt', sep=';', stringsAsFactors=F, nrows=1)
## from a quick grep, 'grep -n -w "1/2/2007" household_power_consumption.txt | head -1'
## we know exactly where to begin reading the given file without reading it all into R
## we also kn... |
setwd("C:\\Users\\LG\\Desktop\\학교\\마케팅애널리틱스")
car.df <- read.csv("ToyotaCorolla.csv")
# 숫자 깔끔하게 하기 위해서 위에서부터 1000개 뽑음
car.df <- car.df[1:1000,]
# Gears, Guarantee_Period, Airco 변수 추가
selected.var <- c(3, 4, 7, 8, 9, 10, 12, 13, 14, 16, 17, 18, 21, 25)
# partition data
set.seed(1)
# 1000개의 데이터 중에서 랜덤으로 600... | /수업예제12_2_다중_오차표시.R | no_license | sne12345/R-study | R | false | false | 1,463 | r | setwd("C:\\Users\\LG\\Desktop\\학교\\마케팅애널리틱스")
car.df <- read.csv("ToyotaCorolla.csv")
# 숫자 깔끔하게 하기 위해서 위에서부터 1000개 뽑음
car.df <- car.df[1:1000,]
# Gears, Guarantee_Period, Airco 변수 추가
selected.var <- c(3, 4, 7, 8, 9, 10, 12, 13, 14, 16, 17, 18, 21, 25)
# partition data
set.seed(1)
# 1000개의 데이터 중에서 랜덤으로 600... |
library(aire.zmvm)
### Name: download_24hr_average
### Title: Download archives of the 24 hour averages of pollutants
### Aliases: download_24hr_average
### ** Examples
## Not run:
##D head(download_24hr_average("PS", 2017))
## End(Not run)
| /data/genthat_extracted_code/aire.zmvm/examples/download_24hr_average.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 249 | r | library(aire.zmvm)
### Name: download_24hr_average
### Title: Download archives of the 24 hour averages of pollutants
### Aliases: download_24hr_average
### ** Examples
## Not run:
##D head(download_24hr_average("PS", 2017))
## End(Not run)
|
get_links <- function(.tab_row, .col_url, .col_id, .col_ticker) {
tab_links <- xml2::read_html(dplyr::pull(.tab_row, {{.col_url}})) %>%
rvest::html_nodes("a") %>%
rvest::html_attr("href") %>%
tibble::enframe()
tidyr::expand_grid(.tab_row, tab_links) %>%
dplyr::filter(endsWith(value, "pdf")) %>%
... | /R/get_links.R | no_license | MatthiasUckert/RFAnnualReportCom | R | false | false | 2,979 | r | get_links <- function(.tab_row, .col_url, .col_id, .col_ticker) {
tab_links <- xml2::read_html(dplyr::pull(.tab_row, {{.col_url}})) %>%
rvest::html_nodes("a") %>%
rvest::html_attr("href") %>%
tibble::enframe()
tidyr::expand_grid(.tab_row, tab_links) %>%
dplyr::filter(endsWith(value, "pdf")) %>%
... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggstrat-themes.R
\name{theme_paleo}
\alias{theme_paleo}
\title{A Paleo-friendly ggplot2 theme}
\usage{
theme_paleo(...)
}
\arguments{
\item{...}{Passed to \code{\link[ggplot2:ggtheme]{ggplot2::theme_bw()}}}
}
\value{
A complete \code{\link[gg... | /man/theme_paleo.Rd | permissive | paleolimbot/tidypaleo | R | false | true | 561 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ggstrat-themes.R
\name{theme_paleo}
\alias{theme_paleo}
\title{A Paleo-friendly ggplot2 theme}
\usage{
theme_paleo(...)
}
\arguments{
\item{...}{Passed to \code{\link[ggplot2:ggtheme]{ggplot2::theme_bw()}}}
}
\value{
A complete \code{\link[gg... |
#################################################################
## Poi1 Results ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Poi1.rdata')
Results <- Results[,-c(6:9)]... | /Manuscript_files/20190709_Figures_Poi.R | no_license | hiendn/StoEMMIX | R | false | false | 7,160 | r | #################################################################
## Poi1 Results ##
#################################################################
# Load libraries
library(reshape2)
library(colorspace)
# Load result data
load('Poi1.rdata')
Results <- Results[,-c(6:9)]... |
# run_analisys.R
# Author: Henk van de Ridder
# Subject: Coursera Course: get-data-013, CourseProject
#
# This script does the 5 steps in creating a tidy dataset
# for the "Human Activity Recognition Using Smartphones Data Set"
#
# needed libraries
library("dplyr")
library("reshape2")
# initialization
setwd("H:/Data... | /run_analysis.R | no_license | hridderhu/getdata-courseproject | R | false | false | 7,096 | r | # run_analisys.R
# Author: Henk van de Ridder
# Subject: Coursera Course: get-data-013, CourseProject
#
# This script does the 5 steps in creating a tidy dataset
# for the "Human Activity Recognition Using Smartphones Data Set"
#
# needed libraries
library("dplyr")
library("reshape2")
# initialization
setwd("H:/Data... |
#' Illustrative workflow using the warfarin Pop PK model
#' ==========================================================================
#' UseCase2 : Warfarin population pharmacokinetics model with analytical solutions
#' ------------------------------------------------------------------------
#' Step 1 - Exploratory Da... | /scripts/EDA.R | permissive | halfmanhalfgeek/MDLProject | R | false | false | 1,927 | r | #' Illustrative workflow using the warfarin Pop PK model
#' ==========================================================================
#' UseCase2 : Warfarin population pharmacokinetics model with analytical solutions
#' ------------------------------------------------------------------------
#' Step 1 - Exploratory Da... |
ui <- fillPage(
uiOutput("map", height = '100%')
) | /ui.R | no_license | mosscoder/mpg_trait_transfer | R | false | false | 55 | r | ui <- fillPage(
uiOutput("map", height = '100%')
) |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in 3Article/3Article_MethodComparison.R
\name{Article3_MethodComparison}
\alias{Article3_MethodComparison}
\title{Article3_MethodComparison}
\usage{
Article3_MethodComparison(G.file, outlier.props = c(0.01, 0.05, 0.1),
n = NULL, L = 10000, K = 4... | /ThesisRpackage/man/Article3_MethodComparison.Rd | permissive | cayek/Thesis | R | false | true | 1,023 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in 3Article/3Article_MethodComparison.R
\name{Article3_MethodComparison}
\alias{Article3_MethodComparison}
\title{Article3_MethodComparison}
\usage{
Article3_MethodComparison(G.file, outlier.props = c(0.01, 0.05, 0.1),
n = NULL, L = 10000, K = 4... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hafvog.R
\name{read_hafvog_lengths}
\alias{read_hafvog_lengths}
\title{Reads length data from Hafvog}
\usage{
read_hafvog_lengths(xmlfile)
}
\arguments{
\item{xmlfile}{Character vector specifying the name, including path
(location) of the xml... | /man/read_hafvog_lengths.Rd | no_license | einarhjorleifsson/smx | R | false | true | 511 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/hafvog.R
\name{read_hafvog_lengths}
\alias{read_hafvog_lengths}
\title{Reads length data from Hafvog}
\usage{
read_hafvog_lengths(xmlfile)
}
\arguments{
\item{xmlfile}{Character vector specifying the name, including path
(location) of the xml... |
library(Compositional)
### Name: Log-likelihood ratio test for a symmetric Dirichlet distribution
### Title: Log-likelihood ratio test for a symmetric Dirichlet distribution
### Aliases: sym.test
### Keywords: symmetric Dirichlet distribution Log-likelihood ratio test
### ** Examples
x <- rdiri( 100, c(5, 7, 1, 3, ... | /data/genthat_extracted_code/Compositional/examples/sym.test.Rd.R | no_license | surayaaramli/typeRrh | R | false | false | 395 | r | library(Compositional)
### Name: Log-likelihood ratio test for a symmetric Dirichlet distribution
### Title: Log-likelihood ratio test for a symmetric Dirichlet distribution
### Aliases: sym.test
### Keywords: symmetric Dirichlet distribution Log-likelihood ratio test
### ** Examples
x <- rdiri( 100, c(5, 7, 1, 3, ... |
setwd("C:\\Users\\Poori\\Desktop\\jigsaw\\R for data science\\Module 3")
# Base plotting
# Using plot() to study to continous variables
ir<-iris
str(ir)
# Syntax
# plot(x=variable to be displayed on x axis, y = variable to be displayed on y axis)
plot(x=i... | /Visualization.R | no_license | nankris/DataScience-R-language | R | false | false | 74,017 | r | setwd("C:\\Users\\Poori\\Desktop\\jigsaw\\R for data science\\Module 3")
# Base plotting
# Using plot() to study to continous variables
ir<-iris
str(ir)
# Syntax
# plot(x=variable to be displayed on x axis, y = variable to be displayed on y axis)
plot(x=i... |
# compute_critical_values.R
compute_critical_values <-
function( fitted_model ){
######################################################################
# Determine sample size(n), number of predictors(p), and degrees of
# freedom(df) of the fitted model.
##################... | /functions/compute_critical_values.R | no_license | gitHubSlinkman/MyWalks | R | false | false | 2,495 | r | # compute_critical_values.R
compute_critical_values <-
function( fitted_model ){
######################################################################
# Determine sample size(n), number of predictors(p), and degrees of
# freedom(df) of the fitted model.
##################... |
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818221716233e+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), .Dim = c(8L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
st... | /CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615782603-test.R | no_license | akhikolla/updatedatatype-list2 | R | false | false | 329 | r | testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818221716233e+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), .Dim = c(8L, 3L)))
result <- do.call(CNull:::communities_individual_based_sampling_alpha,testlist)
st... |
% Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/PolarCart.R
\name{x.rphi}
\alias{x.rphi}
\alias{y.rphi}
\title{Polar to Cartesian}
\usage{
x.rphi(r, phi)
y.rphi(r, phi)
}
\arguments{
\item{r}{distance from origin}
\item{phi}{anti-clockwise rotation from positive x-axis}
}
\value{... | /man/x.rphi.Rd | no_license | CJBarry/invLT | R | false | false | 634 | rd | % Generated by roxygen2 (4.1.1): do not edit by hand
% Please edit documentation in R/PolarCart.R
\name{x.rphi}
\alias{x.rphi}
\alias{y.rphi}
\title{Polar to Cartesian}
\usage{
x.rphi(r, phi)
y.rphi(r, phi)
}
\arguments{
\item{r}{distance from origin}
\item{phi}{anti-clockwise rotation from positive x-axis}
}
\value{... |
% Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/countrycode-package.R
\docType{package}
\name{countrycode-package}
\alias{countrycode-package}
\title{Convert Country Codes or Country Names}
\description{
Convert country codes or country names
}
\details{
The \code{countrycode} func... | /man/countrycode-package.Rd | no_license | thanhdao285/countrycode | R | false | false | 842 | rd | % Generated by roxygen2 (4.1.0): do not edit by hand
% Please edit documentation in R/countrycode-package.R
\docType{package}
\name{countrycode-package}
\alias{countrycode-package}
\title{Convert Country Codes or Country Names}
\description{
Convert country codes or country names
}
\details{
The \code{countrycode} func... |
#' Internal select pixel function
#' @inheritParams selectPixel
#' @importFrom abind abind
#' @importFrom S4Vectors metadata first second
#' @importFrom SummarizedExperiment assay
#' @importFrom data.table as.data.table
#' @importFrom InteractionSet GInteractions interactions
#' @importFrom IRanges IRanges
#' @returns ... | /R/methods-changePixelRes.R | no_license | EricSDavis/mariner | R | false | false | 8,881 | r | #' Internal select pixel function
#' @inheritParams selectPixel
#' @importFrom abind abind
#' @importFrom S4Vectors metadata first second
#' @importFrom SummarizedExperiment assay
#' @importFrom data.table as.data.table
#' @importFrom InteractionSet GInteractions interactions
#' @importFrom IRanges IRanges
#' @returns ... |
# diffdate_text--------------------------------
# Documentation
#' Provide a text version of the difference between 2 dates.
#' @description Used to generate a text version of the difference between 2 dates.
#' @param df Dataframe.
#' @param date_start String of column name in df which represents the start date
#' @par... | /R/diffdate_text.R | no_license | kamclean/impactr | R | false | false | 3,331 | r | # diffdate_text--------------------------------
# Documentation
#' Provide a text version of the difference between 2 dates.
#' @description Used to generate a text version of the difference between 2 dates.
#' @param df Dataframe.
#' @param date_start String of column name in df which represents the start date
#' @par... |
system("cat NHM_BRAF_E3.bed BRAF+BC_E3.bed | sort -k1,1 -k2,2n | bedtools merge -i - > merged_E3.bed")
library(Rsubread)
x=read.table('merged_E3.bed',sep="\t",stringsAsFactors=F)
ann = data.frame(GeneID=paste(x[,1],x[,2],x[,3],sep="_!_"),Chr=x[,1],Start=x[,2],End=x[,3],Strand='+')
bam.files <- c('/root/vivek/chip-s... | /NHM/chromhmm_deseq_try.R | no_license | rtmag/vivek | R | false | false | 4,260 | r | system("cat NHM_BRAF_E3.bed BRAF+BC_E3.bed | sort -k1,1 -k2,2n | bedtools merge -i - > merged_E3.bed")
library(Rsubread)
x=read.table('merged_E3.bed',sep="\t",stringsAsFactors=F)
ann = data.frame(GeneID=paste(x[,1],x[,2],x[,3],sep="_!_"),Chr=x[,1],Start=x[,2],End=x[,3],Strand='+')
bam.files <- c('/root/vivek/chip-s... |
#=====================================================================================
#
# Code chunk 1
#
#=====================================================================================
# Display the current working directory
getwd();
# If necessary, change the path below to the directory where the data files... | /WGCNA/tutorial_1/FemaleLiver-01-dataInput.R | no_license | LST512/NGS-script | R | false | false | 4,823 | r | #=====================================================================================
#
# Code chunk 1
#
#=====================================================================================
# Display the current working directory
getwd();
# If necessary, change the path below to the directory where the data files... |
#################################################
# For working with population samples:
#################################################
readPhenotypesFile <- function(file) {
readFile = paste("grep -v '^##' ", file, sep="")
con <- pipe(readFile)
phenotypes = read.table(con, header=TRUE, check.names=FALSE, string... | /reference/scripts/R_functions/loadPseqSampleMetaData.R | no_license | jixuan-wang/jxcnv | R | false | false | 3,249 | r | #################################################
# For working with population samples:
#################################################
readPhenotypesFile <- function(file) {
readFile = paste("grep -v '^##' ", file, sep="")
con <- pipe(readFile)
phenotypes = read.table(con, header=TRUE, check.names=FALSE, string... |
# model: drc_malaria6.r
# purpose: drc_malaria6 with OOP expenditure in places
model = '
# linkage 1 regressions
ITN_received_cumulative ~ prior("dgamma(1,1)")*lag_exp_M1_1_cumulative + prior("dgamma(1,1)")*lag_exp_M1_2_cumulative + prior("dgamma(1,1)")*lag_other_dah_M1_1_cumulative + date + prior("dgamma(1,1... | /impact_evaluation/drc/models/drc_malaria6_oop_test.r | no_license | ihmeuw/gf | R | false | false | 3,381 | r | # model: drc_malaria6.r
# purpose: drc_malaria6 with OOP expenditure in places
model = '
# linkage 1 regressions
ITN_received_cumulative ~ prior("dgamma(1,1)")*lag_exp_M1_1_cumulative + prior("dgamma(1,1)")*lag_exp_M1_2_cumulative + prior("dgamma(1,1)")*lag_other_dah_M1_1_cumulative + date + prior("dgamma(1,1... |
words <- readLines("words.txt")
words <- toupper(words)
first_letter <- substr(words, 1, 1)
bar_dat <- as.data.frame(table(first_letter))
write.table(bar_dat, "bar_firstletter.tsv",
sep = "\t", row.names = FALSE, quote = FALSE) | /bar_firstletter.r | no_license | STAT545-UBC-hw-2018-19/hw09-alvin-q | R | false | false | 236 | r | words <- readLines("words.txt")
words <- toupper(words)
first_letter <- substr(words, 1, 1)
bar_dat <- as.data.frame(table(first_letter))
write.table(bar_dat, "bar_firstletter.tsv",
sep = "\t", row.names = FALSE, quote = FALSE) |
# IRDR04 Research Tools Module
# Week 4 Tutorial
# 23/10/18 9-11am @ Birkbeck, Malet Street 414/415 Public Cluster
# Tutor: Dr Alison Fairbrass, UCL Centre for Biodiversity & Environment Research, alison.fairbrass@gmail.com
# # # Walk-through # # #
setwd() # complete with filepath
# Creating some data
my_score <... | /Week4/Week4_WalkThrough.R | no_license | ali-fairbrass/IRDR04_Tutorials | R | false | false | 1,885 | r | # IRDR04 Research Tools Module
# Week 4 Tutorial
# 23/10/18 9-11am @ Birkbeck, Malet Street 414/415 Public Cluster
# Tutor: Dr Alison Fairbrass, UCL Centre for Biodiversity & Environment Research, alison.fairbrass@gmail.com
# # # Walk-through # # #
setwd() # complete with filepath
# Creating some data
my_score <... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/amiramesh-io.R
\name{amiratype}
\alias{amiratype}
\title{Return the type of an AmiraMesh file on disk or a parsed header}
\usage{
amiratype(x, bytes = NULL)
}
\arguments{
\item{x}{Path to files on disk or a single pre-parsed parameter list}
... | /man/amiratype.Rd | no_license | natverse/nat | R | false | true | 905 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/amiramesh-io.R
\name{amiratype}
\alias{amiratype}
\title{Return the type of an AmiraMesh file on disk or a parsed header}
\usage{
amiratype(x, bytes = NULL)
}
\arguments{
\item{x}{Path to files on disk or a single pre-parsed parameter list}
... |
# Tornqvist Price Index
#
# Copyright 2020 Zahra Shahidi & Majid Einian
rm(list=ls())
starttime <- proc.time()
cat("\n\n================ Nominal to Real =====================================\n")
library(yaml)
Settings <- yaml.load_file("Settings.yaml")
# Settings$InitialPoorPercentile <- 1:22
# Settings$startyear ... | /R/Archive/June 2020 (removed code files)/TornqvistPriceIndex.R | no_license | IPRCIRI/IRHEIS | R | false | false | 5,704 | r | # Tornqvist Price Index
#
# Copyright 2020 Zahra Shahidi & Majid Einian
rm(list=ls())
starttime <- proc.time()
cat("\n\n================ Nominal to Real =====================================\n")
library(yaml)
Settings <- yaml.load_file("Settings.yaml")
# Settings$InitialPoorPercentile <- 1:22
# Settings$startyear ... |
library(blsAPI)
library(dplyr)
library(httr)
library(jsonlite)
library(readr)
##### API Keys #####
# Register keys at:
# https://data.bls.gov/registrationEngine/
# https://api.census.gov/data/key_signup.html
bls_key = "c3c3770818ad4c8cbdbeb0503b308d8d"
cen_key <- "3379365abe31dbc9f567a9914ef913a33935ccde"
##### Une... | /scripts/economic_indicators.R | no_license | mdsi-disaster/part-a | R | false | false | 3,789 | r | library(blsAPI)
library(dplyr)
library(httr)
library(jsonlite)
library(readr)
##### API Keys #####
# Register keys at:
# https://data.bls.gov/registrationEngine/
# https://api.census.gov/data/key_signup.html
bls_key = "c3c3770818ad4c8cbdbeb0503b308d8d"
cen_key <- "3379365abe31dbc9f567a9914ef913a33935ccde"
##### Une... |
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
rcpp_scatterplot <- function(data, params) {
.Call(`_mapdeck_rcpp_scatterplot`, data, params)
}
| /R/RcppExports.R | no_license | ChrisMuir/mapdeck | R | false | false | 228 | r | # Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
rcpp_scatterplot <- function(data, params) {
.Call(`_mapdeck_rcpp_scatterplot`, data, params)
}
|
print.attribrisk <- function(x, ...) {
if (!is.null(cl <- x$call)) {
cat("Call:\n")
dput(cl)
cat("\n")
}
if (inherits(x, "coxph"))
cat("\nn = ", length(x$fit$residuals), "\n")
else if (inherits(x, 'glm'))
cat('\n Degrees of freedom:', x$fit$df.null, '\n')
# ... | /attribrisk/R/print.attribrisk.R | no_license | ingted/R-Examples | R | false | false | 1,610 | r | print.attribrisk <- function(x, ...) {
if (!is.null(cl <- x$call)) {
cat("Call:\n")
dput(cl)
cat("\n")
}
if (inherits(x, "coxph"))
cat("\nn = ", length(x$fit$residuals), "\n")
else if (inherits(x, 'glm'))
cat('\n Degrees of freedom:', x$fit$df.null, '\n')
# ... |
# `%notin%`
`%notin%` <- function (x, table) {
!(x %in% table)
}
#-------------------------------------------------------------------------------
# get_data
get_data <- function(x, userl, curl_args, headers = NULL, opt = NULL, run = 0) {
if (run > 0) {
sys_sleep <- getOption("rdbnomics.sleep_run")
check_ar... | /R/utils.R | no_license | ShichenXie/rdbnomics | R | false | false | 26,484 | r | # `%notin%`
`%notin%` <- function (x, table) {
!(x %in% table)
}
#-------------------------------------------------------------------------------
# get_data
get_data <- function(x, userl, curl_args, headers = NULL, opt = NULL, run = 0) {
if (run > 0) {
sys_sleep <- getOption("rdbnomics.sleep_run")
check_ar... |
library(reshape2)
library(ggplot2)
library(IAMUQ)
source('R/calib_priors.R')
nsamp <- 1e5 # set desired number of samples
appendices <- c('', '-gwp', '-co2', '-pop', '-gwp-co2-pop')
app_names <- c('None', 'Christensen et al (2018)', 'Ho et al (2019)', 'United Nations (2019)', 'All')
scenarios <- c('base', 'low', 'hi... | /R/plot_estimate_inversion.R | no_license | vsrikrish/IAMUQ | R | false | false | 3,500 | r | library(reshape2)
library(ggplot2)
library(IAMUQ)
source('R/calib_priors.R')
nsamp <- 1e5 # set desired number of samples
appendices <- c('', '-gwp', '-co2', '-pop', '-gwp-co2-pop')
app_names <- c('None', 'Christensen et al (2018)', 'Ho et al (2019)', 'United Nations (2019)', 'All')
scenarios <- c('base', 'low', 'hi... |
library(ggplot2)
pf <- read.csv('pseudo_facebook.tsv', sep = '\t')
names(pf)
ggplot(aes(x = dob_day), data = pf) +
geom_histogram(binwidth = 1) +
scale_x_continuous(breaks = 1:31)
# friends count
ggplot(aes(x=friend_count), data = pf) +
geom_histogram(binwidth = 50) +
scale_x_continuous(limits = c(0,1000... | /P4_EDA_R/Lesson_3_one_var/lesson3_One_var.R | no_license | jiehu567/udacityNano | R | false | false | 3,799 | r | library(ggplot2)
pf <- read.csv('pseudo_facebook.tsv', sep = '\t')
names(pf)
ggplot(aes(x = dob_day), data = pf) +
geom_histogram(binwidth = 1) +
scale_x_continuous(breaks = 1:31)
# friends count
ggplot(aes(x=friend_count), data = pf) +
geom_histogram(binwidth = 50) +
scale_x_continuous(limits = c(0,1000... |
png(file="plot3.png") # creating png file
# Reading in the data
data <- read.table("household_power_consumption.txt", sep=";", skip=grep("1/2/2007", readLines("household_power_consumption.txt")), nrows=2879, stringsAsFactors = FALSE) # read in data
addrow <- c("1/2/2007", "00:00:00", 0.326, 0.128, 243.150, 1.400, 0.00... | /plot3.R | no_license | darimchik/ExData_Plotting1 | R | false | false | 1,492 | r | png(file="plot3.png") # creating png file
# Reading in the data
data <- read.table("household_power_consumption.txt", sep=";", skip=grep("1/2/2007", readLines("household_power_consumption.txt")), nrows=2879, stringsAsFactors = FALSE) # read in data
addrow <- c("1/2/2007", "00:00:00", 0.326, 0.128, 243.150, 1.400, 0.00... |
#' .. content for \description{} (no empty lines) ..
#'
#' .. content for \details{} ..
#'
#' @title
#' @param data_pr
tabulate_pr_estimates <- function(data_pr) {
data_pr %>%
split(f = .$analysis, .$outcome) %>%
map(
.f = ~ .x %>%
select(exposure,
level,
... | /R/tabulate_pr_estimates.R | no_license | bcjaeger/VHA-BP-trends-ACCAHA | R | false | false | 1,933 | r | #' .. content for \description{} (no empty lines) ..
#'
#' .. content for \details{} ..
#'
#' @title
#' @param data_pr
tabulate_pr_estimates <- function(data_pr) {
data_pr %>%
split(f = .$analysis, .$outcome) %>%
map(
.f = ~ .x %>%
select(exposure,
level,
... |
modus <- function(v, na.rm=T) {
if(isTRUE(na.rm)){
uniqv <- unique(v)[!is.na(unique(v))]
uniqv[which.max(tabulate(match(v[!is.na(v)], uniqv)))]
}else{
uniqv <- unique(v)
uniqv[which.max(tabulate(match(v, uniqv)))]
}
}
| /r/stats/modus.R | no_license | lucienbaumgartner/helper | R | false | false | 240 | r | modus <- function(v, na.rm=T) {
if(isTRUE(na.rm)){
uniqv <- unique(v)[!is.na(unique(v))]
uniqv[which.max(tabulate(match(v[!is.na(v)], uniqv)))]
}else{
uniqv <- unique(v)
uniqv[which.max(tabulate(match(v, uniqv)))]
}
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{revenue_wide}
\alias{revenue_wide}
\title{Top Biomedical Companies Revenues}
\format{
A data frame with 8 rows and 29 variables:
\describe{
\item{year}{Fiscal year}
\item{Johnson & Johnson}{Revenue of Johnson &... | /man/revenue_wide.Rd | no_license | GenomicsNX/ggcharts | R | false | true | 2,271 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/data.R
\docType{data}
\name{revenue_wide}
\alias{revenue_wide}
\title{Top Biomedical Companies Revenues}
\format{
A data frame with 8 rows and 29 variables:
\describe{
\item{year}{Fiscal year}
\item{Johnson & Johnson}{Revenue of Johnson &... |
# get results from Barnett & Onella log
# create remove index
removedPeriod<- objLog %>% thicken("5 min", "thick5") %>% pull(thick5) %>% as.numeric()
remove_ind <- which(downsampledIan$timestampMs %in% removedPeriod)
# remove values
downsampledObj<- downsampledIan
downsampledObj[remove_ind,c("lon","lat","x_v","y_v")]... | /Objective Results/barnett&onnella.R | no_license | sobradob/thesis | R | false | false | 1,661 | r | # get results from Barnett & Onella log
# create remove index
removedPeriod<- objLog %>% thicken("5 min", "thick5") %>% pull(thick5) %>% as.numeric()
remove_ind <- which(downsampledIan$timestampMs %in% removedPeriod)
# remove values
downsampledObj<- downsampledIan
downsampledObj[remove_ind,c("lon","lat","x_v","y_v")]... |
#' SCA
#'
#' This function defines a SCA module for incorporation into a
#' psychTestR timeline.
#' Use this function if you want to include the SCA in a
#' battery of other tests, or if you want to add custom psychTestR
#' pages to your test timeline.
#' For a standalone implementation of the SCA,
#' consider using \c... | /R/SCA.R | permissive | fmhoeger/psyquest | R | false | false | 2,105 | r | #' SCA
#'
#' This function defines a SCA module for incorporation into a
#' psychTestR timeline.
#' Use this function if you want to include the SCA in a
#' battery of other tests, or if you want to add custom psychTestR
#' pages to your test timeline.
#' For a standalone implementation of the SCA,
#' consider using \c... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/roles.R
\name{roles.delete}
\alias{roles.delete}
\title{Deletes a role.}
\usage{
roles.delete(
customer,
roleId,
gargle_token = gargle::token_fetch(scopes =
.endpoints[["directory.roles.delete"]]$scopes),
return_response = F
)
}
\... | /man/roles.delete.Rd | no_license | samterfa/AdminDir | R | false | true | 1,070 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/roles.R
\name{roles.delete}
\alias{roles.delete}
\title{Deletes a role.}
\usage{
roles.delete(
customer,
roleId,
gargle_token = gargle::token_fetch(scopes =
.endpoints[["directory.roles.delete"]]$scopes),
return_response = F
)
}
\... |
#' Class \code{"proc"} constructor
#'
#' Create a \code{"proc"} object from given action sequences and timestamp sequences
#'
#' An object of
#' class \code{"proc"} is a list containing the following components:
#' \itemize{
#' \item{action_seqs}{a list of action sequences.}
#' \item{time_seqs}{a list of timesta... | /fuzzedpackages/ProcData/R/proc_object.R | no_license | akhikolla/testpackages | R | false | false | 3,630 | r | #' Class \code{"proc"} constructor
#'
#' Create a \code{"proc"} object from given action sequences and timestamp sequences
#'
#' An object of
#' class \code{"proc"} is a list containing the following components:
#' \itemize{
#' \item{action_seqs}{a list of action sequences.}
#' \item{time_seqs}{a list of timesta... |
##txt6 is the main reaction format information from xml of cellDesigner
##txt6 <- readLines(file("template6")) # repeated part: information of each reactions
##split txt6_repeated_part into several part
#R1 <- readLines(file("txt6_repeated_part1")) # define the reaction metaid, baseReactant and baseProduct in cellDesig... | /R code to produce yeast map/ImportReactions_version2_change connecting format.R | permissive | edkerk/yeast-model-update | R | false | false | 15,943 | r | ##txt6 is the main reaction format information from xml of cellDesigner
##txt6 <- readLines(file("template6")) # repeated part: information of each reactions
##split txt6_repeated_part into several part
#R1 <- readLines(file("txt6_repeated_part1")) # define the reaction metaid, baseReactant and baseProduct in cellDesig... |
#' Demo sample data used for phyloseq object
#'
#' @format A data frame with 36 rows and 14 variables:
#' @source \url{https://doi.org/10.1111/2041-210X.13204}
"sample_sheet"
#' Demo ASV table data used for phyloseq object
#'
#' @format A data frame with 36 rows and 358 variables:
#' @source \url{https://doi.org/10.1... | /R/data.R | permissive | ong8181/macam | R | false | false | 952 | r | #' Demo sample data used for phyloseq object
#'
#' @format A data frame with 36 rows and 14 variables:
#' @source \url{https://doi.org/10.1111/2041-210X.13204}
"sample_sheet"
#' Demo ASV table data used for phyloseq object
#'
#' @format A data frame with 36 rows and 358 variables:
#' @source \url{https://doi.org/10.1... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Coordinate_Converter.R
\name{Coordinate_Covnerter4}
\alias{Coordinate_Covnerter4}
\title{Coordinate Converter 4}
\usage{
Coordinate_Covnerter4(chromosome, genomic_start, genomic_end)
}
\arguments{
\item{chromosome}{sequence name like "chrX"}
... | /man/Coordinate_Covnerter4.Rd | no_license | kingyang728/genomicCoordinateConverter | R | false | true | 705 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Coordinate_Converter.R
\name{Coordinate_Covnerter4}
\alias{Coordinate_Covnerter4}
\title{Coordinate Converter 4}
\usage{
Coordinate_Covnerter4(chromosome, genomic_start, genomic_end)
}
\arguments{
\item{chromosome}{sequence name like "chrX"}
... |
testlist <- list(data = structure(c(4.77773545308742e-299, 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(5L, 5L)), q = 0)
result <- do.call(biwavelet:::rcpp_row_quantile,testlist)
str(result) | /biwavelet/inst/testfiles/rcpp_row_quantile/libFuzzer_rcpp_row_quantile/rcpp_row_quantile_valgrind_files/1610556736-test.R | no_license | akhikolla/updated-only-Issues | R | false | false | 229 | r | testlist <- list(data = structure(c(4.77773545308742e-299, 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(5L, 5L)), q = 0)
result <- do.call(biwavelet:::rcpp_row_quantile,testlist)
str(result) |
suppressMessages(library("dplyr"))
suppressMessages(library('ggplot2'))
########################################################
#####################1.Gfold-diff-gene#################
########################################################
###读取数据
countData = read.table(count_table, header=TRUE, sep=",", row.names... | /Pipeline/R_for_RNAseq/archive/2.3Gfold-MAplot.R | no_license | Iceylee/NGS-Pacbio | R | false | false | 3,169 | r |
suppressMessages(library("dplyr"))
suppressMessages(library('ggplot2'))
########################################################
#####################1.Gfold-diff-gene#################
########################################################
###读取数据
countData = read.table(count_table, header=TRUE, sep=",", row.names... |
\name{ex01.75}
\alias{ex01.75}
\non_function{}
\title{data from exercise 1.75}
\description{
The \code{ex01.75} data frame has 45 rows and 1 columns.
}
\format{
This data frame contains the following columns:
\describe{
\item{Time}{
a numeric vector
}
}
}
\details{
}
\source{
Devore, J. L. (2000) \emph{Probability an... | /man/ex01.75.Rd | no_license | cran/Devore5 | R | false | false | 433 | rd | \name{ex01.75}
\alias{ex01.75}
\non_function{}
\title{data from exercise 1.75}
\description{
The \code{ex01.75} data frame has 45 rows and 1 columns.
}
\format{
This data frame contains the following columns:
\describe{
\item{Time}{
a numeric vector
}
}
}
\details{
}
\source{
Devore, J. L. (2000) \emph{Probability an... |
library(MASS)
library(geiger)
library(MCMCglmm)
library(MCMCvis)
library(brms)
library(parallel)
library(mice)
library(future)
##using stan instead of phyr/inla for multinomial response
##see http://www.r-inla.org/faq#TOC-I-have-multinomial-data-but-I-cannot-find-the-multinomial-likelihood-isn-t-it-available-
##genera... | /multiresponse/phylo_stan_multi_models.r | no_license | n8upham/CaribbeanExtinctions-WTWTW | R | false | false | 3,286 | r | library(MASS)
library(geiger)
library(MCMCglmm)
library(MCMCvis)
library(brms)
library(parallel)
library(mice)
library(future)
##using stan instead of phyr/inla for multinomial response
##see http://www.r-inla.org/faq#TOC-I-have-multinomial-data-but-I-cannot-find-the-multinomial-likelihood-isn-t-it-available-
##genera... |
glmnetRequirements <- function(data,
type,
weights) {
var_names <- colnames(data)
n <- nrow(data)
# 1) Nonzero variance
var_check <- apply(data, 2, var)
ind_zero_var <- which(var_check == 0)
if(length(ind_zero_var) > 0) stop(paste0('Please only p... | /R/glmnetRequirements.R | no_license | warrickpk/mgm | R | false | false | 1,974 | r |
glmnetRequirements <- function(data,
type,
weights) {
var_names <- colnames(data)
n <- nrow(data)
# 1) Nonzero variance
var_check <- apply(data, 2, var)
ind_zero_var <- which(var_check == 0)
if(length(ind_zero_var) > 0) stop(paste0('Please only p... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/write_hydraulic_para.R
\name{write.hydraulic.para}
\alias{write.hydraulic.para}
\title{Write soil hydraulic parameters to selector.in}
\usage{
write.hydraulic.para(project.path, model = 0, hysteresis = 0, para, ...)
}
\arguments{
\item{...}{}... | /man/write.hydraulic.para.Rd | no_license | hydrosphag/hydrusR | R | false | true | 386 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/write_hydraulic_para.R
\name{write.hydraulic.para}
\alias{write.hydraulic.para}
\title{Write soil hydraulic parameters to selector.in}
\usage{
write.hydraulic.para(project.path, model = 0, hysteresis = 0, para, ...)
}
\arguments{
\item{...}{}... |
######################################################################
#################### Exemplo Model Confidence Set ####################
######################################################################
#### Pacotes ####
library(ggplot2)
library(dplyr)
library(tidyr)
library(magrittr)
library(lubridate)
lib... | /src/Exemplos/exemplo_mcs.R | no_license | netoalcides/metodo_har_redes_mcs | R | false | false | 2,552 | r | ######################################################################
#################### Exemplo Model Confidence Set ####################
######################################################################
#### Pacotes ####
library(ggplot2)
library(dplyr)
library(tidyr)
library(magrittr)
library(lubridate)
lib... |
# Functions to interact with IMOS
library(rvest)
library(lubridate)
# Datetime not yet supported
IMOS.OceanCurrent.download <- function(product=c('SST','chla'), region='SNSW',
daterange=NULL, datetimes=NULL,
outdir='./output/IMOS/OceanCurren... | /scripts/IMOS.R | no_license | Lachlan00/Eudyptula-prey-field | R | false | false | 2,816 | r | # Functions to interact with IMOS
library(rvest)
library(lubridate)
# Datetime not yet supported
IMOS.OceanCurrent.download <- function(product=c('SST','chla'), region='SNSW',
daterange=NULL, datetimes=NULL,
outdir='./output/IMOS/OceanCurren... |
rm(list=ls())
source('src/misc.R')
cat('add/2011/syrphids.R\n')
sp.ids <- list(list(genus='Paragus', species='haemorrhous', sex='m',
temp.id=c(2684, 2685, 8950, 8951, 8985, 2678, 2677,
2676, 15661, 15694, 15632, 13015, 13014, 2649, 15628,
2648, 13936, 13010, 13954, 12... | /2006-2011/add/2011/syrphids.R | no_license | leithen/hedgerow-manage | R | false | false | 14,056 | r | rm(list=ls())
source('src/misc.R')
cat('add/2011/syrphids.R\n')
sp.ids <- list(list(genus='Paragus', species='haemorrhous', sex='m',
temp.id=c(2684, 2685, 8950, 8951, 8985, 2678, 2677,
2676, 15661, 15694, 15632, 13015, 13014, 2649, 15628,
2648, 13936, 13010, 13954, 12... |
#' @title Calcula as diferencas entre as proporcoes
#' @name calcDIF
#'
#' @description Para cada DF dentro da lista resultante da funcao 'remakeEXP', calcula as diferencas entre as PROPORTIONs dos grupos de interesse.
#'
#' @param EXP Objeto resultante da funcao remakeEXP.
#' @param newGroup Vetor com os grupos... | /myR/R/calcDIF.R | no_license | brunnothadeu/myR_package | R | false | false | 1,422 | r | #' @title Calcula as diferencas entre as proporcoes
#' @name calcDIF
#'
#' @description Para cada DF dentro da lista resultante da funcao 'remakeEXP', calcula as diferencas entre as PROPORTIONs dos grupos de interesse.
#'
#' @param EXP Objeto resultante da funcao remakeEXP.
#' @param newGroup Vetor com os grupos... |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/predict.ELMCox.R
\name{predict.ELMCox}
\alias{predict.ELMCox}
\title{SurvELM predict.ELMCox}
\usage{
\method{predict}{ELMCox}(object, testx, ...)
}
\arguments{
\item{object}{An object that inherits from class ELMCox.}
\item{testx}{A data fra... | /man/predict.ELMCox.Rd | no_license | whcsu/SurvELM | R | false | true | 1,461 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/predict.ELMCox.R
\name{predict.ELMCox}
\alias{predict.ELMCox}
\title{SurvELM predict.ELMCox}
\usage{
\method{predict}{ELMCox}(object, testx, ...)
}
\arguments{
\item{object}{An object that inherits from class ELMCox.}
\item{testx}{A data fra... |
Args <- commandArgs()
# Necessary
intable <- Args[6]
outDir <- Args[7]
samples <- Args[8]
groups <- Args[9]
prefix <- Args[10] # Taxonomy
library(Kitult)
library(lance)
require(ape)
require(vegan)
require(sprex)
require(pheatmap)
require(RColorBrewer)
require(corrgram)
require(ggplot2)
req... | /Script/taxalpha.r | no_license | KidultXJT/MetaG | R | false | false | 3,171 | r | Args <- commandArgs()
# Necessary
intable <- Args[6]
outDir <- Args[7]
samples <- Args[8]
groups <- Args[9]
prefix <- Args[10] # Taxonomy
library(Kitult)
library(lance)
require(ape)
require(vegan)
require(sprex)
require(pheatmap)
require(RColorBrewer)
require(corrgram)
require(ggplot2)
req... |
## R-Programming-Assignment=2
## makeCacheMatrix creates an object with matrix and its cached inverse matrix.
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
setinverse <- function(inverse) inv <<- invers... | /cachematrix.R | no_license | kyung512/ProgrammingAssignment2 | R | false | false | 1,068 | r | ## R-Programming-Assignment=2
## makeCacheMatrix creates an object with matrix and its cached inverse matrix.
makeCacheMatrix <- function(x = matrix()) {
inv <- NULL
set <- function(y) {
x <<- y
inv <<- NULL
}
get <- function() x
setinverse <- function(inverse) inv <<- invers... |
## This file has similar function as driver.R in SPADE.
## Here is declared function that should be called to use this package for SPADE analysis
BirchSPADE.run.analysis <- function(input_file_full # full path to the .fcs file
,outputs_dir # full path wher... | /R/workflow.R | no_license | olimora/BirchSPADE | R | false | false | 8,963 | r | ## This file has similar function as driver.R in SPADE.
## Here is declared function that should be called to use this package for SPADE analysis
BirchSPADE.run.analysis <- function(input_file_full # full path to the .fcs file
,outputs_dir # full path wher... |
# Set working directory
setwd("..")
# Source R scripts
source("../functions/names.R")
source("../functions/colors.R")
# Set variables specific for experiment
# Set experiment string for file names
experiment_string <- "mpi_field_2015"
experiment_string_out <- "mpi_field_2015_A"
experiment_verbose <- "MPIMP Feld 2015"... | /scripts/gmd_data_analysis_mpi_field_2015_A.R | no_license | HeikeSp/trost_metabolomics | R | false | false | 1,909 | r | # Set working directory
setwd("..")
# Source R scripts
source("../functions/names.R")
source("../functions/colors.R")
# Set variables specific for experiment
# Set experiment string for file names
experiment_string <- "mpi_field_2015"
experiment_string_out <- "mpi_field_2015_A"
experiment_verbose <- "MPIMP Feld 2015"... |
liste_donnees <- read.csv("data-raw/liste_donnees.csv", header = TRUE, sep = ",", colClasses = c("character", "character", "character", "character",
"character", "logical", "logical", "character", "character",
... | /data-raw/liste_donnees.R | permissive | malta974/DoReMIFaSol | R | false | false | 1,044 | r | liste_donnees <- read.csv("data-raw/liste_donnees.csv", header = TRUE, sep = ",", colClasses = c("character", "character", "character", "character",
"character", "logical", "logical", "character", "character",
... |
#Use dplyr
library(dslabs)
library(dplyr)
data("murders")
#"Redifine" data that will have more column (rateの列を追加するため)
murders_1 <- mutate(murders, rate = (total/population)*100000 )
murders_1
# use rank by the rate
rate = (murders$total/murders$population)*100000
murders_2 <- mutate(murders_1, rank = rank... | /R_basic/index_wrangling/dplyr.R | no_license | Pongsasit/HavardX_data_sciece | R | false | false | 1,325 | r | #Use dplyr
library(dslabs)
library(dplyr)
data("murders")
#"Redifine" data that will have more column (rateの列を追加するため)
murders_1 <- mutate(murders, rate = (total/population)*100000 )
murders_1
# use rank by the rate
rate = (murders$total/murders$population)*100000
murders_2 <- mutate(murders_1, rank = rank... |
subClosure <- function(closure, sub) {
e <- environment(closure)
restr <- new.env(parent = parent.env(e))
for (ss in sub) {
assign(ss, get(ss, envir = e), envir = restr)
}
environment(closure) <- restr
return(closure)
}
| /R/subClosure.R | no_license | cran/rrscale | R | false | false | 252 | r | subClosure <- function(closure, sub) {
e <- environment(closure)
restr <- new.env(parent = parent.env(e))
for (ss in sub) {
assign(ss, get(ss, envir = e), envir = restr)
}
environment(closure) <- restr
return(closure)
}
|
library(tidyverse)
library(lubridate)
#' Read EMITIMES file and extract necessary information to create the CONTROL file
#'
#' @param emitimes_file
#'
#' @return
#' @export
#'
#' @examples
#'
read_emitimes <- function(emitimes_file) {
rundays_afterlastfire <- 15 # We run the model 15 days after the last fire ob... | /hysplit_batch_functions.R | permissive | claireschollaert/hysplit-batch | R | false | false | 5,794 | r | library(tidyverse)
library(lubridate)
#' Read EMITIMES file and extract necessary information to create the CONTROL file
#'
#' @param emitimes_file
#'
#' @return
#' @export
#'
#' @examples
#'
read_emitimes <- function(emitimes_file) {
rundays_afterlastfire <- 15 # We run the model 15 days after the last fire ob... |
#install.packages("mice")
#install.packages("dplyr")
#install.packages("VIM")
#install.packages("nnet")
#install.packages("caret")
#install.packages("MLmetrics")
#install.packages("Metrics")
#install.packages("lmtest")
#library(lmtest) #press no
library(mice)
library(dplyr)
library(VIM)
library(nnet)
library(caret)
lib... | /model_mix.R | no_license | sn987532159/Dissertation | R | false | false | 924,263 | r | #install.packages("mice")
#install.packages("dplyr")
#install.packages("VIM")
#install.packages("nnet")
#install.packages("caret")
#install.packages("MLmetrics")
#install.packages("Metrics")
#install.packages("lmtest")
#library(lmtest) #press no
library(mice)
library(dplyr)
library(VIM)
library(nnet)
library(caret)
lib... |
plot2 <- function() {
## load package
library(lubridate)
## read text file
power <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", stringsAsFactors = FALSE)
## add Datetime column, change formats to date, time and numerics
... | /plot2.R | no_license | azmanvai/ExData_Plotting1 | R | false | false | 995 | r | plot2 <- function() {
## load package
library(lubridate)
## read text file
power <- read.table("household_power_consumption.txt", header = TRUE, sep = ";", stringsAsFactors = FALSE)
## add Datetime column, change formats to date, time and numerics
... |
# numeric summaries -------------------------------------------------------
test_that("numeric summary functions work", {
x_array <- array(1:24, dim = c(4,2,3))
x <- new_rvar(x_array)
x_letters <- array(letters[1:24], dim = c(4,2,3))
x_ord <- rvar_ordered(x_letters, levels = letters)
x_fct <- rvar_factor(x_l... | /tests/testthat/test-rvar-summaries-within-draws.R | permissive | stan-dev/posterior | R | false | false | 7,423 | r | # numeric summaries -------------------------------------------------------
test_that("numeric summary functions work", {
x_array <- array(1:24, dim = c(4,2,3))
x <- new_rvar(x_array)
x_letters <- array(letters[1:24], dim = c(4,2,3))
x_ord <- rvar_ordered(x_letters, levels = letters)
x_fct <- rvar_factor(x_l... |
# Importing the dataset
dataset = read.csv('Position_Salaries.csv')
dataset = dataset[2:3]
# Splitting the dataset into the Training set and Test set
# # install.packages('caTools')
# library(caTools)
# set.seed(123)
# split = sample.split(dataset$Salary, SplitRatio = 2/3)
# training_set = subset(dataset, spl... | /decisiontree_regression.R | no_license | MittaDhanunjaya/DataScience | R | false | false | 1,291 | r | # Importing the dataset
dataset = read.csv('Position_Salaries.csv')
dataset = dataset[2:3]
# Splitting the dataset into the Training set and Test set
# # install.packages('caTools')
# library(caTools)
# set.seed(123)
# split = sample.split(dataset$Salary, SplitRatio = 2/3)
# training_set = subset(dataset, spl... |
# Loading N-grams list
nGramList <- readRDS("nGramList.rds")
### Lets define function to return table with predicted wirds sorted by the count of occurencies
WordPredictTable <- function(request_text) {
words_num <- str_count(request_text, "\\S+")
if (words_num == 0 ) {
emp... | /WordPredictShiny.R | no_license | EvgeniyPaskin/Capstone | R | false | false | 1,384 | r |
# Loading N-grams list
nGramList <- readRDS("nGramList.rds")
### Lets define function to return table with predicted wirds sorted by the count of occurencies
WordPredictTable <- function(request_text) {
words_num <- str_count(request_text, "\\S+")
if (words_num == 0 ) {
emp... |
\name{hprabclust}
\alias{hprabclust}
\alias{print.comprabclust}
%- Also NEED an `\alias' for EACH other topic documented here.
\title{Clustering of species ranges from presence-absence matrices
(hierarchical methods)}
\description{
Clusters a presence-absence matrix object by taking the
'h-cut'-partition of a hie... | /man/hprabclust.Rd | no_license | cran/prabclus | R | false | false | 4,008 | rd | \name{hprabclust}
\alias{hprabclust}
\alias{print.comprabclust}
%- Also NEED an `\alias' for EACH other topic documented here.
\title{Clustering of species ranges from presence-absence matrices
(hierarchical methods)}
\description{
Clusters a presence-absence matrix object by taking the
'h-cut'-partition of a hie... |
#' @title Construct predictions for a (hurdle) CBFM fit
#'
#' @description
#' `r lifecycle::badge("experimental")`
#'
#' Takes a fitted \code{CBFM} or \code{CBFM_hurdle} object and produces predictions given (potentially) a new set of observational units with their corresponding covariate and basis function function... | /R/predict.CBFM.R | no_license | fhui28/CBFM | R | false | false | 27,998 | r | #' @title Construct predictions for a (hurdle) CBFM fit
#'
#' @description
#' `r lifecycle::badge("experimental")`
#'
#' Takes a fitted \code{CBFM} or \code{CBFM_hurdle} object and produces predictions given (potentially) a new set of observational units with their corresponding covariate and basis function function... |
#' Hides the cursor symbol
#'
#' Hides the cursor symbol
CRhide_mouse <- function() {
invisible( .Call("SDLhide_mouse", PACKAGE = "CREx") )
}
| /R/CRhide_mouse.R | no_license | lorweiuk/CREx | R | false | false | 146 | r | #' Hides the cursor symbol
#'
#' Hides the cursor symbol
CRhide_mouse <- function() {
invisible( .Call("SDLhide_mouse", PACKAGE = "CREx") )
}
|
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/convertCallsToCharacter.R
\name{convColsToCharacter}
\alias{convColsToCharacter}
\title{Convert all columns to characters and convert NAs to blanks}
\usage{
convColsToCharacter(dataframe)
}
\arguments{
\item{dataframe}{The name of the datafra... | /man/convColsToCharacter.Rd | no_license | bryanschreiner/ronsFunctions | R | false | true | 583 | rd | % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/convertCallsToCharacter.R
\name{convColsToCharacter}
\alias{convColsToCharacter}
\title{Convert all columns to characters and convert NAs to blanks}
\usage{
convColsToCharacter(dataframe)
}
\arguments{
\item{dataframe}{The name of the datafra... |
context("filter_allele_balance")
library(RADstackshelpR)
test_that("filter_allele_balance generates output of the appropriate class (vcfR)", {
#find data in package using CRAN friendly syntax
f<-filter_allele_balance(vcfR = SNPfiltR::vcfR.example)
#test that filter_allele_balance returns an object of class "vcfR... | /tests/testthat/test-allele_balance.R | permissive | DevonDeRaad/SNPfiltR | R | false | false | 918 | r | context("filter_allele_balance")
library(RADstackshelpR)
test_that("filter_allele_balance generates output of the appropriate class (vcfR)", {
#find data in package using CRAN friendly syntax
f<-filter_allele_balance(vcfR = SNPfiltR::vcfR.example)
#test that filter_allele_balance returns an object of class "vcfR... |
#' Relate the intensities in each previously medMad-normalized movie frame to
#' all other frames
#'
#' This function takes a set of image frames, or a set of tiff-movies, that have
#' previously been normalized with the medMadNormSum function, and uses the
#' highQuants portion of the medMadNormSum output to relate th... | /R/hiQuantAdjust.R | permissive | jtheorell/pixSum | R | false | false | 2,402 | r | #' Relate the intensities in each previously medMad-normalized movie frame to
#' all other frames
#'
#' This function takes a set of image frames, or a set of tiff-movies, that have
#' previously been normalized with the medMadNormSum function, and uses the
#' highQuants portion of the medMadNormSum output to relate th... |
# CHECK THE FILE PATHS BEFORE RUNNING THIS SCRIPT
# THE SET PATHS ARE FOR greedy based alignment algorithm ALIGNMENTS --> basic variant (SAlign)
library(GOSemSim)
terms <- c('MF', 'BP')
sp1_set = c('MusMusculus_htb_hq','MusMusculus_htb_hq','SaccharomycesCerevisiaeS288C_htb_hq',
'MusMusculus_htb_hq','MusMu... | /Reproduce_Paper_Results/SAlign_HINT/semantic/gosemsim-mc.r | no_license | cbrl-nuces/SAlign | R | false | false | 2,420 | r | # CHECK THE FILE PATHS BEFORE RUNNING THIS SCRIPT
# THE SET PATHS ARE FOR greedy based alignment algorithm ALIGNMENTS --> basic variant (SAlign)
library(GOSemSim)
terms <- c('MF', 'BP')
sp1_set = c('MusMusculus_htb_hq','MusMusculus_htb_hq','SaccharomycesCerevisiaeS288C_htb_hq',
'MusMusculus_htb_hq','MusMu... |
% Generated by roxygen2 (4.1.0.9001): do not edit by hand
% Please edit documentation in R/firstAvailableAcute.R
\name{firstAvailableAcute}
\alias{firstAvailableAcute}
\title{firstAvailableAcute Function}
\usage{
firstAvailableAcute(schedule, patient, Day, crossbook = TRUE)
}
\arguments{
\item{schedule}{provides the sc... | /man/firstAvailableAcute.Rd | no_license | mthaugs/MTFScheduling | R | false | false | 1,241 | rd | % Generated by roxygen2 (4.1.0.9001): do not edit by hand
% Please edit documentation in R/firstAvailableAcute.R
\name{firstAvailableAcute}
\alias{firstAvailableAcute}
\title{firstAvailableAcute Function}
\usage{
firstAvailableAcute(schedule, patient, Day, crossbook = TRUE)
}
\arguments{
\item{schedule}{provides the sc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.