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/extract.pheno.csv-function.R \name{extract.pheno.csv} \alias{extract.pheno.csv} \title{Extract summarized data from a PhenoScanner .csv file (legacy)} \usage{ extract.pheno.csv(exposure, pmidE, ancestryE, outcome, pmidO, ancestryO, f...
/man/extract.pheno.csv.Rd
no_license
Kat-Jump/MendelianRandomization
R
false
true
7,545
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/extract.pheno.csv-function.R \name{extract.pheno.csv} \alias{extract.pheno.csv} \title{Extract summarized data from a PhenoScanner .csv file (legacy)} \usage{ extract.pheno.csv(exposure, pmidE, ancestryE, outcome, pmidO, ancestryO, f...
rec_waa_season_pos <- recruiting_with_waa_season %>% filter(same_pos == 1) rec_waa_season_pos <- rec_waa_season_pos %>% mutate(`Star` = case_when( star == 5 ~ "5 Star", star == 4 ~ "4 Star", star == 3 ~ "3 Star", star < 3 ~ "2 Star or Below" )) rec_waa_season_pos %>% filter(data.position %in% ...
/code/off-waa-breakdown.R
no_license
tejseth/recruiting
R
false
false
3,644
r
rec_waa_season_pos <- recruiting_with_waa_season %>% filter(same_pos == 1) rec_waa_season_pos <- rec_waa_season_pos %>% mutate(`Star` = case_when( star == 5 ~ "5 Star", star == 4 ~ "4 Star", star == 3 ~ "3 Star", star < 3 ~ "2 Star or Below" )) rec_waa_season_pos %>% filter(data.position %in% ...
#' Efficient weighted sampling without replacement #' #' These functions offer a drop-in replacement for \link[base]{sample}, with #' considerably better performance for the case of weighted sampling without #' replacement (both from the speed and memory point of view). #' The interface of \code{gsample} and \code{gsam...
/R/gsample.R
no_license
vgherard/gsample
R
false
false
4,403
r
#' Efficient weighted sampling without replacement #' #' These functions offer a drop-in replacement for \link[base]{sample}, with #' considerably better performance for the case of weighted sampling without #' replacement (both from the speed and memory point of view). #' The interface of \code{gsample} and \code{gsam...
#Generate Cab Data
/doc/GenerateCabData.R
no_license
TZstatsADS/Spr2017-proj2-grp1
R
false
false
20
r
#Generate Cab Data
# Getting and Cleaning Data course project # Data files were retrieved on https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip # Tasks ## 1. Merge the raining and the test sets to create one data set. ## 2. Extract only the measurements on the mean and standard deviation for each meas...
/run_analysis.R
no_license
danielbarrossales/getting-and-cleaning-data-course-project
R
false
false
3,836
r
# Getting and Cleaning Data course project # Data files were retrieved on https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip # Tasks ## 1. Merge the raining and the test sets to create one data set. ## 2. Extract only the measurements on the mean and standard deviation for each meas...
#tab_deck_lists required_data("STG_PAKAT") output$linklist <- renderUI({ urlit <- STG_PAKAT[Picked == 1, .(Pakka_NM, url = gsub("_", "-", tolower(paste0("https://manastack.com/deck/", Manastack_name_url))))] urlit[, url_html := paste0('<a href="',url, '" target="_blank">',Pakka_NM, '</a>')] box(HTML( paste0(...
/scripts/tab/tab_deck_lists.R
no_license
Laurigit/overlay
R
false
false
402
r
#tab_deck_lists required_data("STG_PAKAT") output$linklist <- renderUI({ urlit <- STG_PAKAT[Picked == 1, .(Pakka_NM, url = gsub("_", "-", tolower(paste0("https://manastack.com/deck/", Manastack_name_url))))] urlit[, url_html := paste0('<a href="',url, '" target="_blank">',Pakka_NM, '</a>')] box(HTML( paste0(...
#' A function to calculate topic coherence for a given topic using the formulation in "Optimizing Semantic Coherence in Topic Models" available here: <http://dirichlet.net/pdf/mimno11optimizing.pdf> #' #' @param top_words A string vector of top words associated with a topic. If numeric_top_words == TRUE then a numeric ...
/R/topic_coherence.R
no_license
bethanyleap/SpeedReader
R
false
false
3,578
r
#' A function to calculate topic coherence for a given topic using the formulation in "Optimizing Semantic Coherence in Topic Models" available here: <http://dirichlet.net/pdf/mimno11optimizing.pdf> #' #' @param top_words A string vector of top words associated with a topic. If numeric_top_words == TRUE then a numeric ...
## Modeling Two Competing Strains in an SIS Epidemic ## EpiModel Gallery (https://github.com/statnet/EpiModel-Gallery) ## ## Author: Steven M. Goodreau (University of Washington) ## Date: September 2018 ## # Load EpiModel suppressMessages(library(EpiModel)) # Standard Gallery unit test lines rm(list = ls()) eval(par...
/2018-09-CompetingStrains/model.R
permissive
sgoodreau/EpiModel-Gallery
R
false
false
4,905
r
## Modeling Two Competing Strains in an SIS Epidemic ## EpiModel Gallery (https://github.com/statnet/EpiModel-Gallery) ## ## Author: Steven M. Goodreau (University of Washington) ## Date: September 2018 ## # Load EpiModel suppressMessages(library(EpiModel)) # Standard Gallery unit test lines rm(list = ls()) eval(par...
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('../h2o-runit.R') test.rdocquantiles.golden <- function(H2Oserver) { prosPath <- system.file("extdata", "prostate.csv", package="h2o") prostate.hex <- h2o.uploadFile(H2Oserver, path = prosPath) quantile(prostate.hex[,3]) for(i in 1:ncol(pr...
/h2o-r/tests/testdir_docexamples/runit_Rdoc_quantile.R
permissive
mrgloom/h2o-3
R
false
false
430
r
setwd(normalizePath(dirname(R.utils::commandArgs(asValues=TRUE)$"f"))) source('../h2o-runit.R') test.rdocquantiles.golden <- function(H2Oserver) { prosPath <- system.file("extdata", "prostate.csv", package="h2o") prostate.hex <- h2o.uploadFile(H2Oserver, path = prosPath) quantile(prostate.hex[,3]) for(i in 1:ncol(pr...
library(shiny) library(shinydashboard) library(shinyWidgets) sidebar <- dashboardSidebar( uiOutput("userPanel"), sidebarMenu( menuItem("Dashboard", tabName = "dashboard", icon = icon("dashboard"), badgeLabel = "new", badgeColor = "green"), menuItem("Edit database", tabName = "database", icon = icon("database"), ...
/ui.R
no_license
Chrisss93/Diagnostics
R
false
false
3,363
r
library(shiny) library(shinydashboard) library(shinyWidgets) sidebar <- dashboardSidebar( uiOutput("userPanel"), sidebarMenu( menuItem("Dashboard", tabName = "dashboard", icon = icon("dashboard"), badgeLabel = "new", badgeColor = "green"), menuItem("Edit database", tabName = "database", icon = icon("database"), ...
/TareaFinalscript.R
no_license
Elbarmo/Mineria-de-Datos
R
false
false
4,611
r
library('tidyverse') library('stringr') library('scales') library('RColorBrewer') #library('sparkline') library('formattable') #------------DECLARE VARIABLES csv_path <- 'C:\\csv\\cmdb\\' csv_pattern <- '*.csv' cols_as_factor <- c( 'owned_by', 'managed_by', 'supported_by', 'support_group', ...
/cmdb.R
no_license
cbulsara/dashboard
R
false
false
1,058
r
library('tidyverse') library('stringr') library('scales') library('RColorBrewer') #library('sparkline') library('formattable') #------------DECLARE VARIABLES csv_path <- 'C:\\csv\\cmdb\\' csv_pattern <- '*.csv' cols_as_factor <- c( 'owned_by', 'managed_by', 'supported_by', 'support_group', ...
###################################################################################### ############# LBA-NN Implementation on Example 3 ###################################################################################### rm(list=ls()) ##################################################################################...
/Data Archive/Supplementary materials Experiment 3/Script/2. Example 3_LBA_NN.R
no_license
ZhenweiYang96/MSc-Statistics-Thesis
R
false
false
3,362
r
###################################################################################### ############# LBA-NN Implementation on Example 3 ###################################################################################### rm(list=ls()) ##################################################################################...
require(snowfall) p = 2000; n = 200 x <- matrix(rnorm(n*p), nrow=n, ncol=p) #df <- data.frame(x) # split data to parallelise mats = {} for(i in 1:p){ yi = x[,i] xi = x[,-i] mi = cbind(yi, xi) mats[[i]] = mi } singlefit <- function(dat) { fit = glmnet(y=dat[,1], x=dat[,-1], alpha=1, intercept=F, lambda=0....
/parallel_template.R
no_license
jhdlee920/R-code
R
false
false
601
r
require(snowfall) p = 2000; n = 200 x <- matrix(rnorm(n*p), nrow=n, ncol=p) #df <- data.frame(x) # split data to parallelise mats = {} for(i in 1:p){ yi = x[,i] xi = x[,-i] mi = cbind(yi, xi) mats[[i]] = mi } singlefit <- function(dat) { fit = glmnet(y=dat[,1], x=dat[,-1], alpha=1, intercept=F, lambda=0....
#' Convert data from raster format to binned format #' #' This function takes the name of a directory that contains files in raster #' format and averages the data within a specified bin width at specified #' sampling interval increments to create data in binned format used for #' decoding. #' #' #' @param raster_dir_n...
/R/create_binned_data.R
no_license
xingzhis/NeuroDecodeR
R
false
false
6,135
r
#' Convert data from raster format to binned format #' #' This function takes the name of a directory that contains files in raster #' format and averages the data within a specified bin width at specified #' sampling interval increments to create data in binned format used for #' decoding. #' #' #' @param raster_dir_n...
% Generated by roxygen2 (4.0.1): do not edit by hand \docType{package} \name{survMisc_package} \alias{survMisc} \alias{survMisc_package} \alias{survMisc_package-package} \title{Miscellaneous Functions for Survival Analysis} \description{ \tabular{ll}{ Package: \tab survMisc\cr Type: \tab Package\cr Version: \tab 0....
/man/survMisc_package.Rd
no_license
dardisco/survMisc
R
false
false
2,015
rd
% Generated by roxygen2 (4.0.1): do not edit by hand \docType{package} \name{survMisc_package} \alias{survMisc} \alias{survMisc_package} \alias{survMisc_package-package} \title{Miscellaneous Functions for Survival Analysis} \description{ \tabular{ll}{ Package: \tab survMisc\cr Type: \tab Package\cr Version: \tab 0....
% Generated by roxygen2 (4.0.2): do not edit by hand \name{print.snp} \alias{print.snp} \title{print.snp} \usage{ \method{print}{snp}(x, ...) } \arguments{ \item{x}{an object in the class "snp"} \item{...}{additional arguments passed to \code{plot}} } \description{ Compact Display of SNP Matrix } \details{ This functi...
/man/print.snp.Rd
no_license
snaps21/phrynomics
R
false
false
641
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{print.snp} \alias{print.snp} \title{print.snp} \usage{ \method{print}{snp}(x, ...) } \arguments{ \item{x}{an object in the class "snp"} \item{...}{additional arguments passed to \code{plot}} } \description{ Compact Display of SNP Matrix } \details{ This functi...
turnover.rate = function(table){ table = matrix(table, nrow=2) return(table[2,2]/(table[1,2]+table[2,2])) } #### alter weights alter_weights = function(actual.weights, optimal.weights){ if (actual.weights=="same"){ actual.weights = optimal.weights } else if (actual.weights=="close"){ actual.w...
/R/hidden_functions.R
no_license
dustinfife/selection
R
false
false
11,416
r
turnover.rate = function(table){ table = matrix(table, nrow=2) return(table[2,2]/(table[1,2]+table[2,2])) } #### alter weights alter_weights = function(actual.weights, optimal.weights){ if (actual.weights=="same"){ actual.weights = optimal.weights } else if (actual.weights=="close"){ actual.w...
## Inverse of Matrix Cache ## This following functions are used to store and cache ## the inverse of a matrix for easy use ## The first function creates a list with a function that ## sets the value of the matrix, gets the value of the matrix ## sets the value of the inverse matrix, gets value of inverse matrix ...
/cachematrix.R
no_license
clagett/Coursera-1DSS-RP-P2
R
false
false
1,177
r
## Inverse of Matrix Cache ## This following functions are used to store and cache ## the inverse of a matrix for easy use ## The first function creates a list with a function that ## sets the value of the matrix, gets the value of the matrix ## sets the value of the inverse matrix, gets value of inverse matrix ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/roleAssignments.R \name{roleAssignments.list} \alias{roleAssignments.list} \title{Retrieves a paginated list of all roleAssignments.} \usage{ roleAssignments.list( customer, roleId = NULL, pageToken = NULL, maxResults = NULL, userKe...
/man/roleAssignments.list.Rd
no_license
samterfa/AdminDir
R
false
true
1,656
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/roleAssignments.R \name{roleAssignments.list} \alias{roleAssignments.list} \title{Retrieves a paginated list of all roleAssignments.} \usage{ roleAssignments.list( customer, roleId = NULL, pageToken = NULL, maxResults = NULL, userKe...
library(glmnet) mydata = read.table("./TrainingSet/Correlation/pleura.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.85,family="gaussian",standardize=FALSE) sink('./Model/EN/Correlation/pleura/pleura_086.txt',a...
/Model/EN/Correlation/pleura/pleura_086.R
no_license
leon1003/QSMART
R
false
false
361
r
library(glmnet) mydata = read.table("./TrainingSet/Correlation/pleura.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0.85,family="gaussian",standardize=FALSE) sink('./Model/EN/Correlation/pleura/pleura_086.txt',a...
#' TOST function for a correlations #' @param n number of pairs of observations #' @param r observed correlation #' @param low_eqbound_r lower equivalence bounds (e.g., -0.3) expressed in a correlation effect size #' @param high_eqbound_r upper equivalence bounds (e.g., 0.3) expressed in a correlation effect size #' @p...
/R/TOSTr.R
no_license
mdelacre/TOSTER
R
false
false
6,094
r
#' TOST function for a correlations #' @param n number of pairs of observations #' @param r observed correlation #' @param low_eqbound_r lower equivalence bounds (e.g., -0.3) expressed in a correlation effect size #' @param high_eqbound_r upper equivalence bounds (e.g., 0.3) expressed in a correlation effect size #' @p...
# NSantosuosso # Script for Repo print("This file was created within RStudio") print("And now it lives on Github") print("And this is to test pushing to Github")
/R script.R
no_license
NSantosuosso/testingR
R
false
false
165
r
# NSantosuosso # Script for Repo print("This file was created within RStudio") print("And now it lives on Github") print("And this is to test pushing to Github")
\name{planfact} \alias{planfact} \title{Complete factorial design in lexical order} \description{ Function that generates a complete factorial design in lexical order } \usage{ planfact(nb.niv, make.factor = TRUE) } \arguments{ \item{nb.niv}{vector containing the number of each input levels} \item{make...
/man/planfact.Rd
no_license
cran/multisensi
R
false
false
613
rd
\name{planfact} \alias{planfact} \title{Complete factorial design in lexical order} \description{ Function that generates a complete factorial design in lexical order } \usage{ planfact(nb.niv, make.factor = TRUE) } \arguments{ \item{nb.niv}{vector containing the number of each input levels} \item{make...
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common populate #' @include kinesis_service.R NULL .kinesis$add_tags_to_stream_input <- function(...) { args <- c(as.list(environment()), list(...)) shape <- structure(list(StreamName = structure(logical(0), tags = list(type = "str...
/cran/paws.analytics/R/kinesis_interfaces.R
permissive
johnnytommy/paws
R
false
false
22,025
r
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common populate #' @include kinesis_service.R NULL .kinesis$add_tags_to_stream_input <- function(...) { args <- c(as.list(environment()), list(...)) shape <- structure(list(StreamName = structure(logical(0), tags = list(type = "str...
erpplot <- function (dta, design=NULL,effect=1, interval=c("none","pointwise","simultaneous"), alpha=0.05, frames = NULL, ylim = NULL, nbs=NULL, ...) { interval = match.arg(interval,choices=c("none","pointwise","simultaneous")) erpdta = as.matrix(dta) n = nrow(erpdta) T = ncol(...
/R/erpplot.R
no_license
ChingFanSheu/ERP
R
false
false
2,844
r
erpplot <- function (dta, design=NULL,effect=1, interval=c("none","pointwise","simultaneous"), alpha=0.05, frames = NULL, ylim = NULL, nbs=NULL, ...) { interval = match.arg(interval,choices=c("none","pointwise","simultaneous")) erpdta = as.matrix(dta) n = nrow(erpdta) T = ncol(...
################################################################################ # Code for Coursera Explanatory Data Analysis (exdata-6), Project 1 # Paul King, September 2014. # # There are four code files for this project: # Plot1.R, Plot2.R, Plot3.R & Plot4.R # # Each file is completely self-contained, so there i...
/Plot4.R
no_license
otepoti/ExData_Plotting1
R
false
false
2,815
r
################################################################################ # Code for Coursera Explanatory Data Analysis (exdata-6), Project 1 # Paul King, September 2014. # # There are four code files for this project: # Plot1.R, Plot2.R, Plot3.R & Plot4.R # # Each file is completely self-contained, so there i...
# source("preamble.R", local = TRUE) source("data.R", local = TRUE) library(shiny) library(ggplot2) library(dplyr) library(scales) ##### UI ------ ui <- fluidPage( titlePanel("COVID-Panel Rheingau-Taunus"), sidebarLayout( sidebarPanel( h2("Filter"), dateRangeInput("date", label = "Betrachtun...
/app.R
no_license
dominiklawetzky/covid-rheingau-taunus
R
false
false
14,177
r
# source("preamble.R", local = TRUE) source("data.R", local = TRUE) library(shiny) library(ggplot2) library(dplyr) library(scales) ##### UI ------ ui <- fluidPage( titlePanel("COVID-Panel Rheingau-Taunus"), sidebarLayout( sidebarPanel( h2("Filter"), dateRangeInput("date", label = "Betrachtun...
#' @export #' @example #' lil_triangle = tibble( #' x1 = c(0, 0, 1), #' y1 = c(0, 1, 0) #' ) #' #' basic_plot() + #' geom_segment(data = edges()) + #' geom_segment( #' data = triangle(lil_triangle), #' color = 'red' #' ) + #' geom_segment( #' data = slide(triangle(lil_triangle), 1, 2), #' co...
/R/slide.R
permissive
svenhalvorson/RoyalGameOfUr
R
false
false
583
r
#' @export #' @example #' lil_triangle = tibble( #' x1 = c(0, 0, 1), #' y1 = c(0, 1, 0) #' ) #' #' basic_plot() + #' geom_segment(data = edges()) + #' geom_segment( #' data = triangle(lil_triangle), #' color = 'red' #' ) + #' geom_segment( #' data = slide(triangle(lil_triangle), 1, 2), #' co...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/huxtable-utils.R \name{hux_save_as} \alias{hux_save_as} \title{Save a table to a variety of formats} \usage{ hux_save_as( hux, filename, size = std_size$full, maxWidth = size$width, maxHeight = size$height, aspectRatio = maxWidth/...
/man/hux_save_as.Rd
permissive
terminological/ggrrr
R
false
true
1,388
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/huxtable-utils.R \name{hux_save_as} \alias{hux_save_as} \title{Save a table to a variety of formats} \usage{ hux_save_as( hux, filename, size = std_size$full, maxWidth = size$width, maxHeight = size$height, aspectRatio = maxWidth/...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{LPS_ori_tbl} \alias{LPS_ori_tbl} \title{A tibble containing the inferred pseudotime of \code{LPS_sce} by \code{slingshot} package} \format{ A tibble with two cols \describe{ \item{cell}{Cell names} \item{pseudotime...
/man/LPS_ori_tbl.Rd
permissive
HahaLA2000/PseudotimeDE
R
false
true
507
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{LPS_ori_tbl} \alias{LPS_ori_tbl} \title{A tibble containing the inferred pseudotime of \code{LPS_sce} by \code{slingshot} package} \format{ A tibble with two cols \describe{ \item{cell}{Cell names} \item{pseudotime...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/funcsSims.R \name{iterTiMExSims} \alias{iterTiMExSims} \title{Performs TiMEx iteratively on a simulated dataset} \usage{ iterTiMExSims(samplesModel, pairMu, pairPvalue, groupPvalue, corr, noRuns) } \arguments{ \item{samplesModel}{structure as...
/man/iterTiMExSims.Rd
no_license
cbg-ethz/pathTiMEx
R
false
true
2,711
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/funcsSims.R \name{iterTiMExSims} \alias{iterTiMExSims} \title{Performs TiMEx iteratively on a simulated dataset} \usage{ iterTiMExSims(samplesModel, pairMu, pairPvalue, groupPvalue, corr, noRuns) } \arguments{ \item{samplesModel}{structure as...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/print.R \name{print} \alias{print} \alias{print.Data} \alias{print.OptimizationProblem} \alias{print.Solution} \alias{print.Portfolio} \title{Print} \usage{ \method{print}{Data}(x, ...) \method{print}{OptimizationProblem}(x, ...) \method{pr...
/man/print.Rd
no_license
prioriactions/prioriactions
R
false
true
562
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/print.R \name{print} \alias{print} \alias{print.Data} \alias{print.OptimizationProblem} \alias{print.Solution} \alias{print.Portfolio} \title{Print} \usage{ \method{print}{Data}(x, ...) \method{print}{OptimizationProblem}(x, ...) \method{pr...
library(tidyverse) library(survey) library(broom) library(googlesheets4) analytic2_1 <- schedule %>% inner_join(puf_df %>% filter(ANYWORK %in% c(1,2)) %>% rename(week = WEEK) %>% mutate(fips = str_pad(EST_ST,2,side = 'left',pad = '0'), Imsi = as.inte...
/Estimate Model 2 part 1.R
no_license
claytonperry/Data-Challenge-Expo
R
false
false
10,519
r
library(tidyverse) library(survey) library(broom) library(googlesheets4) analytic2_1 <- schedule %>% inner_join(puf_df %>% filter(ANYWORK %in% c(1,2)) %>% rename(week = WEEK) %>% mutate(fips = str_pad(EST_ST,2,side = 'left',pad = '0'), Imsi = as.inte...
library(appell) ### Name: appellf1 ### Title: Compute Appell's F1 hypergeometric function ### Aliases: appellf1 ### Keywords: math ### ** Examples ## library(appell) ## The following code compares results with those published in ## Colavecchia et al. (2001), tables 2-5. ## It also illustrates the very minor differe...
/data/genthat_extracted_code/appell/examples/appellf1.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
7,308
r
library(appell) ### Name: appellf1 ### Title: Compute Appell's F1 hypergeometric function ### Aliases: appellf1 ### Keywords: math ### ** Examples ## library(appell) ## The following code compares results with those published in ## Colavecchia et al. (2001), tables 2-5. ## It also illustrates the very minor differe...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tidy-data.R \name{tidy_ec_data} \alias{tidy_ec_data} \title{Tidy Environment Canada Data} \usage{ tidy_ec_data(x) } \arguments{ \item{x}{The rems data to tidy.} } \value{ A tibble of the tidied rems data. } \description{ Tidies water quality ...
/man/tidy_ec_data.Rd
permissive
atillmanns/wqbc
R
false
true
441
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/tidy-data.R \name{tidy_ec_data} \alias{tidy_ec_data} \title{Tidy Environment Canada Data} \usage{ tidy_ec_data(x) } \arguments{ \item{x}{The rems data to tidy.} } \value{ A tibble of the tidied rems data. } \description{ Tidies water quality ...
score <- read.csv("./score.csv", header=T, row.names=1) score bunkei <- score[,1:2] bunkei bunkei.pc <- prcomp(bunkei, scala=T) summary(bunkei.pc) bunkei.pc2 <- princomp(bunkei, cor=T) summary(bunkei.pc2) bunkei.pc2$loadings biplot(bunkei.pc2)
/score/score-jpn-eng.r
no_license
KoretsuNobuyasu/R_data_analysis_school
R
false
false
248
r
score <- read.csv("./score.csv", header=T, row.names=1) score bunkei <- score[,1:2] bunkei bunkei.pc <- prcomp(bunkei, scala=T) summary(bunkei.pc) bunkei.pc2 <- princomp(bunkei, cor=T) summary(bunkei.pc2) bunkei.pc2$loadings biplot(bunkei.pc2)
#' Plot the RNA degradation slopes across probes. #' #' This is a graphing function that takes the N (typically 11) average probe expressions #' and plots the slope of these expressions across the probes. It does this for multiple #' samples in the dataset. #' #' @param QCObject #' @param transform #' @param cols #' @p...
/R/plot_rna_degradation_slopes.R
no_license
steveneschrich/AQCR
R
false
false
2,697
r
#' Plot the RNA degradation slopes across probes. #' #' This is a graphing function that takes the N (typically 11) average probe expressions #' and plots the slope of these expressions across the probes. It does this for multiple #' samples in the dataset. #' #' @param QCObject #' @param transform #' @param cols #' @p...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/retrieve.R \name{list_url_base} \alias{list_url_base} \title{list_url_base} \usage{ list_url_base(bdd = file.path(find.package("SEO"), "mabase.sqlite")) } \arguments{ \item{bdd}{the sqlite database path} } \description{ list all url in base }...
/man/list_url_base.Rd
no_license
medrupaloscil/Shiny-SEO-R
R
false
true
322
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/retrieve.R \name{list_url_base} \alias{list_url_base} \title{list_url_base} \usage{ list_url_base(bdd = file.path(find.package("SEO"), "mabase.sqlite")) } \arguments{ \item{bdd}{the sqlite database path} } \description{ list all url in base }...
ll_vonMises.c.MSAR <- function(par,data,gamma,order,constr) { T = dim(data)[1] N.samples = dim(data)[2] d = dim(data)[3] f = 0 res = deplie.c.VM(par,constr) m = res$m kappa = res$kappa B = matrix(0,1,T-order) for (ex in 1:N.samples){ para_comp = kappa[1]*exp(1i*m) if(order>0){ for (o in 1:order) { ...
/R/ll_vonMises.c.MSAR.R
no_license
cran/NHMSAR
R
false
false
563
r
ll_vonMises.c.MSAR <- function(par,data,gamma,order,constr) { T = dim(data)[1] N.samples = dim(data)[2] d = dim(data)[3] f = 0 res = deplie.c.VM(par,constr) m = res$m kappa = res$kappa B = matrix(0,1,T-order) for (ex in 1:N.samples){ para_comp = kappa[1]*exp(1i*m) if(order>0){ for (o in 1:order) { ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/trader_work_station_functions.R \name{plot_tws} \alias{plot_tws} \title{chart stocks using tws data} \usage{ plot_tws(stocks, period = 300, description = NULL) } \arguments{ \item{stocks}{vector of stock symbols such as c("C", "AAPL")} \item...
/man/plot_tws.Rd
no_license
GL-Li/stockpick
R
false
true
480
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/trader_work_station_functions.R \name{plot_tws} \alias{plot_tws} \title{chart stocks using tws data} \usage{ plot_tws(stocks, period = 300, description = NULL) } \arguments{ \item{stocks}{vector of stock symbols such as c("C", "AAPL")} \item...
\name{FKM.pf} \alias{FKM.pf} \title{Fuzzy k-means with polynomial fuzzifier} \description{ Performs the fuzzy \emph{k}-means clustering algorithm with polynomial fuzzifier function. \cr The polynomial fuzzifier creates areas of crisp membership degrees around the prototypes while, outside of these areas of crisp me...
/man/FKM.pf.Rd
no_license
bratnick/fclust
R
false
false
4,826
rd
\name{FKM.pf} \alias{FKM.pf} \title{Fuzzy k-means with polynomial fuzzifier} \description{ Performs the fuzzy \emph{k}-means clustering algorithm with polynomial fuzzifier function. \cr The polynomial fuzzifier creates areas of crisp membership degrees around the prototypes while, outside of these areas of crisp me...
downloadlist <- function(myURL) { #' function that downloads files from a URL #' Arg: myURL(str): URL of where files are dowloaded from download.file(url = myURL[[2]], destfile = paste0('Downloads/',myURL[[1]],'.zip'), method = 'wget') }
/Functions/downloadlist.R
no_license
cynsky/house_project
R
false
false
246
r
downloadlist <- function(myURL) { #' function that downloads files from a URL #' Arg: myURL(str): URL of where files are dowloaded from download.file(url = myURL[[2]], destfile = paste0('Downloads/',myURL[[1]],'.zip'), method = 'wget') }
cat("\014") # Clear your console rm(list = ls()) #clear your environment ########################## Load in header file ######################## # setwd("~/git/of_dollars_and_data") source(file.path(paste0(getwd(),"/header.R"))) ########################## Load in Libraries ########################## # library(ggplot...
/analysis/0049_sp_index_pe_heatmap.R
no_license
nmaggiulli/of-dollars-and-data
R
false
false
3,410
r
cat("\014") # Clear your console rm(list = ls()) #clear your environment ########################## Load in header file ######################## # setwd("~/git/of_dollars_and_data") source(file.path(paste0(getwd(),"/header.R"))) ########################## Load in Libraries ########################## # library(ggplot...
y <- data.frame(a=1,b=2) dput(y,file="y.R") new.y <- dget("y.R")
/dp.R
no_license
artorias111/r_prac
R
false
false
65
r
y <- data.frame(a=1,b=2) dput(y,file="y.R") new.y <- dget("y.R")
#' YouTube Reporting API #' Schedules reporting jobs containing your YouTube Analytics data and downloads the resulting bulk data reports in the form of CSV files. #' #' Auto-generated code by googleAuthR::gar_create_api_skeleton #' at 2017-03-05 20:24:10 #' filename: /Users/mark/dev/R/autoGoogleAPI/googleyoutuberepo...
/B_analysts_sources_github/MarkEdmondson1234/autoGoogleAPI/youtubereporting_functions.R
no_license
Irbis3/crantasticScrapper
R
false
false
9,622
r
#' YouTube Reporting API #' Schedules reporting jobs containing your YouTube Analytics data and downloads the resulting bulk data reports in the form of CSV files. #' #' Auto-generated code by googleAuthR::gar_create_api_skeleton #' at 2017-03-05 20:24:10 #' filename: /Users/mark/dev/R/autoGoogleAPI/googleyoutuberepo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nse-shiny-app.R \name{nse_app} \alias{nse_app} \title{Launch shiny app} \usage{ nse_app() } \description{ Launches shiny app for fetching data from NSE. } \examples{ \dontrun{ nse_app() } }
/man/nse_app.Rd
no_license
cran/nse2r
R
false
true
284
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nse-shiny-app.R \name{nse_app} \alias{nse_app} \title{Launch shiny app} \usage{ nse_app() } \description{ Launches shiny app for fetching data from NSE. } \examples{ \dontrun{ nse_app() } }
setwd("~/Documents/Practicum") load("predictors.Rdata") all.months= as.numeric(substr(dates[date.ind],5,6)) all.years = as.numeric(substr(dates[date.ind],1,4)) # dates: all dates for which data are available # stations: names of all stations for which data are available # lat, lon: longitude and latitude...
/michaels_code.R
no_license
ttomench/Practicum-HW5
R
false
false
9,988
r
setwd("~/Documents/Practicum") load("predictors.Rdata") all.months= as.numeric(substr(dates[date.ind],5,6)) all.years = as.numeric(substr(dates[date.ind],1,4)) # dates: all dates for which data are available # stations: names of all stations for which data are available # lat, lon: longitude and latitude...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/assess.R \name{min_hpd_inc_area_df} \alias{min_hpd_inc_area_df} \title{compute the minimum hpd inclusion area for all the birds in a rasterStack} \usage{ min_hpd_inc_area_df(birds, R) } \arguments{ \item{birds}{a data frame that minimally has...
/man/min_hpd_inc_area_df.Rd
no_license
eriqande/gaiah
R
false
true
1,190
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/assess.R \name{min_hpd_inc_area_df} \alias{min_hpd_inc_area_df} \title{compute the minimum hpd inclusion area for all the birds in a rasterStack} \usage{ min_hpd_inc_area_df(birds, R) } \arguments{ \item{birds}{a data frame that minimally has...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Visualization.R \name{plot.ModelComparison} \alias{plot.ModelComparison} \title{Plot Comparisons} \usage{ \method{plot}{ModelComparison}(object, labels, training.data = "none", predictions = "empty", plot.type = "ROC", format.data = TRUE, ....
/man/plot.ModelComparison.Rd
no_license
orionw/ModelComparison
R
false
true
1,727
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Visualization.R \name{plot.ModelComparison} \alias{plot.ModelComparison} \title{Plot Comparisons} \usage{ \method{plot}{ModelComparison}(object, labels, training.data = "none", predictions = "empty", plot.type = "ROC", format.data = TRUE, ....
library(ape) testtree <- read.tree("8642_1.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="8642_1_unrooted.txt")
/codeml_files/newick_trees_processed/8642_1/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("8642_1.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="8642_1_unrooted.txt")
library(stockassessment) # download model from stockassessment.org fit <- fitfromweb("WBCod_2021_cand01") # save to model folder save(fit, file = "fit.rData")
/Misc/WKTAF/example-stock-assessment-start/bootstrap/sam_fit.R
no_license
ices-eg/wg_WGEEL
R
false
false
162
r
library(stockassessment) # download model from stockassessment.org fit <- fitfromweb("WBCod_2021_cand01") # save to model folder save(fit, file = "fit.rData")
# Vectors first_name = c("Johnny", "Angelina", "Tony", "Amy") fgender = factor(c("m", "f", "m", "f")) company_years = c(2, 9, 7, 1) month_sales = c(1420.29, 2900.57, 1900.43, 1400.91) cust_feed = c(8.0, 9.8, 6.1, 8.6) # Data Frame df1 = data.frame(first_name, fgender, company_years, month_sales, cust_feed) # data fra...
/R_basics_assignment.R
no_license
cpett/r_studio
R
false
false
376
r
# Vectors first_name = c("Johnny", "Angelina", "Tony", "Amy") fgender = factor(c("m", "f", "m", "f")) company_years = c(2, 9, 7, 1) month_sales = c(1420.29, 2900.57, 1900.43, 1400.91) cust_feed = c(8.0, 9.8, 6.1, 8.6) # Data Frame df1 = data.frame(first_name, fgender, company_years, month_sales, cust_feed) # data fra...
plot(precaldata$probvortestrfprobs, precaldata$probvortesttrueprobs, type = "n", pch = 19, lwd = 3, main = "Calibration of RF Probabilities on aliased data", ylab = "True Class Probability", xlab = "RF Estimated Probability", ylim = c(0, 1), xlim = c(0, 1)) abline(0, 1, lty = 1, lwd = 2, col = "darkgray") lines(p...
/calibratedprobs.R
no_license
P-R-McWhirter/skycamT_variable_classification_functions
R
false
false
1,352
r
plot(precaldata$probvortestrfprobs, precaldata$probvortesttrueprobs, type = "n", pch = 19, lwd = 3, main = "Calibration of RF Probabilities on aliased data", ylab = "True Class Probability", xlab = "RF Estimated Probability", ylim = c(0, 1), xlim = c(0, 1)) abline(0, 1, lty = 1, lwd = 2, col = "darkgray") lines(p...
# What do we call the process of approaching people and asking? "experiment" # How many trials are there? 3
/Subject_Statistics/prob7.R
permissive
mahnooranjum/R_Programming
R
false
false
107
r
# What do we call the process of approaching people and asking? "experiment" # How many trials are there? 3
setwd("C:/lab/") install.packages("spatstat") library(spatstat) #fagus sylvatica forest= extremely high canopy cover (very shady environment) inp <- read.table("dati_plot55_LAST3.csv", sep=";", head=T) attach(inp) #R now knows we're working with this dataset so we don't need $ simbol to work with different part of th...
/R_code_interpolation.r
no_license
DrGuidoEvangelista/monitoring
R
false
false
1,917
r
setwd("C:/lab/") install.packages("spatstat") library(spatstat) #fagus sylvatica forest= extremely high canopy cover (very shady environment) inp <- read.table("dati_plot55_LAST3.csv", sep=";", head=T) attach(inp) #R now knows we're working with this dataset so we don't need $ simbol to work with different part of th...
# Assignment: ASSIGNMENT Exercise 3: Test Scores # Name: Gunasekaran, Ragunath # Date: 2020-09-12 ## setting up the working directory to DS Folder ## Scores.csv file existing in C:\Users\ragun\Documents\GitHub\dsc520 Previous Sem\data\scores.csv setwd("C:/Users/ragun/Documents/GitHub/dsc520-master/DSC520-new") ## Lo...
/assignments/assignment02/assignment_02_Excercuse3_GunasekaranRagunath.R
permissive
RGunasekaran21249030/DSC520-new
R
false
false
1,647
r
# Assignment: ASSIGNMENT Exercise 3: Test Scores # Name: Gunasekaran, Ragunath # Date: 2020-09-12 ## setting up the working directory to DS Folder ## Scores.csv file existing in C:\Users\ragun\Documents\GitHub\dsc520 Previous Sem\data\scores.csv setwd("C:/Users/ragun/Documents/GitHub/dsc520-master/DSC520-new") ## Lo...
getTidyData <- function(){ data_set <- getDataSet() data_set <- ExtractAndNameData(data_set) tidy_data <- fixTable(data_set) write.table(tidy_data, ".//tidy_data.txt", row.name=FALSE) tidy_data } getDataSet <- function(){ train_x <- read.table(".//UCI HA...
/run_analysis.R
no_license
jmlopezma/GCDCourseProject
R
false
false
1,767
r
getTidyData <- function(){ data_set <- getDataSet() data_set <- ExtractAndNameData(data_set) tidy_data <- fixTable(data_set) write.table(tidy_data, ".//tidy_data.txt", row.name=FALSE) tidy_data } getDataSet <- function(){ train_x <- read.table(".//UCI HA...
rs_pal_data <- read.csv("colors_raw/rs_pal_data.csv", header = TRUE, stringsAsFactors = FALSE) save(rs_pal_data, file = "data/rs_pal_data.RData")
/colors_raw/rs_pal_data.R
no_license
Plondone/editheme
R
false
false
147
r
rs_pal_data <- read.csv("colors_raw/rs_pal_data.csv", header = TRUE, stringsAsFactors = FALSE) save(rs_pal_data, file = "data/rs_pal_data.RData")
setwd("~/mbDenoise/reproducibility") ##load packages/methods source library(readxl) library(openxlsx) library(curatedMetagenomicData) library("phyloseq") library(ade4) library(edgeR) library(DESeq2) library(ape) library(metagenomeSeq) library(coin) library(reticulate) library(mbImpute) library(glmnet) library(SAVER) l...
/reproducibility/real data/CP1.R
no_license
YanyZeng/mbDenoise
R
false
false
12,334
r
setwd("~/mbDenoise/reproducibility") ##load packages/methods source library(readxl) library(openxlsx) library(curatedMetagenomicData) library("phyloseq") library(ade4) library(edgeR) library(DESeq2) library(ape) library(metagenomeSeq) library(coin) library(reticulate) library(mbImpute) library(glmnet) library(SAVER) l...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/codecommit_operations.R \name{codecommit_merge_pull_request_by_three_way} \alias{codecommit_merge_pull_request_by_three_way} \title{Attempts to merge the source commit of a pull request into the specified destination branch for that pull requ...
/cran/paws.developer.tools/man/codecommit_merge_pull_request_by_three_way.Rd
permissive
TWarczak/paws
R
false
true
5,088
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/codecommit_operations.R \name{codecommit_merge_pull_request_by_three_way} \alias{codecommit_merge_pull_request_by_three_way} \title{Attempts to merge the source commit of a pull request into the specified destination branch for that pull requ...
#!usr/bin/env Rscript library(methods) library(Matrix) library(MASS) #library(Rcpp) library(lme4) # Read in your data as an R dataframe basedir <- c("/seastor/helenhelen/ISR_2015") resultdir <- paste(basedir,"/me/tmap/results/mem",sep="/") setwd(resultdir) r.itemInfo <- matrix(data=NA, nr=2, nc=4) ## read data #get dat...
/ROI_based/me/mem/itemInfo_RaPHG_LpPHG.R
no_license
QQXiao/ISR_2015
R
false
false
1,640
r
#!usr/bin/env Rscript library(methods) library(Matrix) library(MASS) #library(Rcpp) library(lme4) # Read in your data as an R dataframe basedir <- c("/seastor/helenhelen/ISR_2015") resultdir <- paste(basedir,"/me/tmap/results/mem",sep="/") setwd(resultdir) r.itemInfo <- matrix(data=NA, nr=2, nc=4) ## read data #get dat...
set.seed(123) #Hierarchial Clustering dist2 <- dist(tran[7], method="euclidean") clust2 <- hclust(dist2, method="ward.D2") # plot(clust2) # jpeg("J:/R/AML_3/Images/Tran_Clusters_Hier.jpeg") # plot(clust2, labels=FALSE, hang = -1.5) # rect.hclust(clust2,k=4,border = 2:4) # dev.off() tran_cluster <- cutree(clust2,k=3)...
/tran_clustering.r
no_license
SamJake/AML_3
R
false
false
1,100
r
set.seed(123) #Hierarchial Clustering dist2 <- dist(tran[7], method="euclidean") clust2 <- hclust(dist2, method="ward.D2") # plot(clust2) # jpeg("J:/R/AML_3/Images/Tran_Clusters_Hier.jpeg") # plot(clust2, labels=FALSE, hang = -1.5) # rect.hclust(clust2,k=4,border = 2:4) # dev.off() tran_cluster <- cutree(clust2,k=3)...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sample_agecomp.R \name{change_agecomp} \alias{change_agecomp} \title{(Depreciated) Sample age compositions from expected values} \usage{ change_agecomp(...) } \arguments{ \item{...}{Arguments that get passed to \code{\link{sample_agecomp}}.} ...
/man/change_agecomp.Rd
no_license
heavywatal/ss3sim
R
false
true
501
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sample_agecomp.R \name{change_agecomp} \alias{change_agecomp} \title{(Depreciated) Sample age compositions from expected values} \usage{ change_agecomp(...) } \arguments{ \item{...}{Arguments that get passed to \code{\link{sample_agecomp}}.} ...
# Sets up the enviroment for scoring # Defines the scoring metrics library(DistMap) library(tidyverse) library(mccr) library(caret) library(synapser) # Use Attila's code to donwload, load data and initialize the environment for scoring <- syn16782361 initialize <- function() { if (!file.exists("init.RData")) { ...
/dream_scoring_clean.R
no_license
dream-sctc/Scoring
R
false
false
18,171
r
# Sets up the enviroment for scoring # Defines the scoring metrics library(DistMap) library(tidyverse) library(mccr) library(caret) library(synapser) # Use Attila's code to donwload, load data and initialize the environment for scoring <- syn16782361 initialize <- function() { if (!file.exists("init.RData")) { ...
m<-matrix(1:16,byrow = 4,nrow = 4) m m<-rbind(m,c(50,60,70,80)) #vecor length should be matched m x<-seq(110,140,10) x m<-rbind(m,x) m #the x name is also added in the matrix rownames(m)<-NULL # to remove that x in names m #using rbind & cbind we cann also add two or more matrices #to remove rows in matrix w...
/R-Programming for Absolute Beginers-Udemy/36-Adding & Deleting Rows & Cols in Matrices.R
no_license
manasohara/R-Programming
R
false
false
571
r
m<-matrix(1:16,byrow = 4,nrow = 4) m m<-rbind(m,c(50,60,70,80)) #vecor length should be matched m x<-seq(110,140,10) x m<-rbind(m,x) m #the x name is also added in the matrix rownames(m)<-NULL # to remove that x in names m #using rbind & cbind we cann also add two or more matrices #to remove rows in matrix w...
source('./R/GRIMM/functions/make_grimm_command.R') # Make anchors system(make_grimm_command(), wait = T) # Make blocks system(make_grimm_command(A=F, input='/R/GRIMM/output_data/anchors/unique_coords.txt'), wait=T) rm(list=ls())
/R/GRIMM/make_blocks.R
no_license
seaman248/An.-atroparvus-genome-comparison
R
false
false
233
r
source('./R/GRIMM/functions/make_grimm_command.R') # Make anchors system(make_grimm_command(), wait = T) # Make blocks system(make_grimm_command(A=F, input='/R/GRIMM/output_data/anchors/unique_coords.txt'), wait=T) rm(list=ls())
library(ape) testtree <- read.tree("10461_1.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="10461_1_unrooted.txt")
/codeml_files/newick_trees_processed_and_cleaned/10461_1/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
137
r
library(ape) testtree <- read.tree("10461_1.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="10461_1_unrooted.txt")
get.erddap <- function (datevec, lonlow, lonhigh, latlow, lathigh, altitude = '[(0.0):1:(0.0)]', every.day=5, folder = tempdir(), # change every.day to a smaller number to get SST images at a more frequent basis server = 'http://coastwatch.pfeg.noaa.gov/erddap/griddap/', type=2, ...
/tricks/get-erddap.R
no_license
KCoutre/geolocation
R
false
false
4,493
r
get.erddap <- function (datevec, lonlow, lonhigh, latlow, lathigh, altitude = '[(0.0):1:(0.0)]', every.day=5, folder = tempdir(), # change every.day to a smaller number to get SST images at a more frequent basis server = 'http://coastwatch.pfeg.noaa.gov/erddap/griddap/', type=2, ...
#' Gather graph node from data.frame #' #' @param df a data.frame #' @param index grouping #' @param root root name #' #' @return a tibble #' @export #' #' @examples #' ibrary(ccgraph) #' data(OTU) #' edges <- gather_graph_edge(OTU,index = c("p","c","o")) #' @importFrom tidyr unite #' #' @name gather_graph gather_g...
/R/gather_graph_edge.R
no_license
cfc424/ccgraph
R
false
false
1,280
r
#' Gather graph node from data.frame #' #' @param df a data.frame #' @param index grouping #' @param root root name #' #' @return a tibble #' @export #' #' @examples #' ibrary(ccgraph) #' data(OTU) #' edges <- gather_graph_edge(OTU,index = c("p","c","o")) #' @importFrom tidyr unite #' #' @name gather_graph gather_g...
##' EMU/R - R Programming Interface to the EMU Speech Database System ##' ##' The EMU Speech Database System for Creation, Analysis and Query of Speech ##' Databases including acoustic and articulaty data as well as the ##' annotations. It provides annotation, signal processing and scripting ##' facilities, an interfa...
/R/emuR-packageDocs.R
no_license
hywel/emuR
R
false
false
3,662
r
##' EMU/R - R Programming Interface to the EMU Speech Database System ##' ##' The EMU Speech Database System for Creation, Analysis and Query of Speech ##' Databases including acoustic and articulaty data as well as the ##' annotations. It provides annotation, signal processing and scripting ##' facilities, an interfa...
#modified from https://www.udemy.com/machine-learning-in-r/learn/v4/t/lecture/9566328?start=0 #call the following libraries: caret, ggplot2, e1071, class, readr from RStudio #read iris dataset from working directory library(readr) iris_datset <- read_csv("~/projects/Iris-kNNClassifier/iris.csv", TRUE) #four features (s...
/Iris-kNNClassifier.R
no_license
laub5301/Iris-kNNClassifier
R
false
false
2,805
r
#modified from https://www.udemy.com/machine-learning-in-r/learn/v4/t/lecture/9566328?start=0 #call the following libraries: caret, ggplot2, e1071, class, readr from RStudio #read iris dataset from working directory library(readr) iris_datset <- read_csv("~/projects/Iris-kNNClassifier/iris.csv", TRUE) #four features (s...
library(dplyr) library(ggimage) library(ggplot2) library(readr) library(shiny) marriage_amount <- c(282, 267, 244, 280, 307, 255, 211, 228, 193) years <- c(1946, 1950, 1960, 1970, 1980, 1990, 2000, 2010, 2017) marriage <- data.frame( years = years, marriage_amount = marriage_amount ) plot_marriage <- function(se...
/PraceDomowe/PD4/gr2/SzymanskiRyszard/app.R
no_license
ramusz1/WizualizacjaDanych2018
R
false
false
1,943
r
library(dplyr) library(ggimage) library(ggplot2) library(readr) library(shiny) marriage_amount <- c(282, 267, 244, 280, 307, 255, 211, 228, 193) years <- c(1946, 1950, 1960, 1970, 1980, 1990, 2000, 2010, 2017) marriage <- data.frame( years = years, marriage_amount = marriage_amount ) plot_marriage <- function(se...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{PROseq-data} \alias{PROseq-data} \alias{PROseq} \alias{PROseq_paired} \title{PRO-seq data from Drosophila S2 cells} \format{ \code{PROseq} is a disjoint GRanges object with 47380 ranges and 1 metadata column, "sc...
/man/PROseq-data.Rd
no_license
mdeber/BRGenomics
R
false
true
1,074
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{PROseq-data} \alias{PROseq-data} \alias{PROseq} \alias{PROseq_paired} \title{PRO-seq data from Drosophila S2 cells} \format{ \code{PROseq} is a disjoint GRanges object with 47380 ranges and 1 metadata column, "sc...
# Create an array. a <- array(c('green','yellow'),dim = c(3,3,2)) print(a)
/DataType_Array.R
no_license
bharathishekara/R-Practice
R
false
false
74
r
# Create an array. a <- array(c('green','yellow'),dim = c(3,3,2)) print(a)
# BenchmarkEmpirical.R # # This set of functions is used for training empirical models used to benchmark # LSM simulations as well as using these trained models to perform benchmark # simulations, and save the results in an ALMA format netcdf output file. # # Gab Abramowitz CCRC, UNSW 2014 (palshelp at gmail dot com) ...
/R/BenchmarkEmpirical.R
no_license
aukkola/palsR
R
false
false
12,001
r
# BenchmarkEmpirical.R # # This set of functions is used for training empirical models used to benchmark # LSM simulations as well as using these trained models to perform benchmark # simulations, and save the results in an ALMA format netcdf output file. # # Gab Abramowitz CCRC, UNSW 2014 (palshelp at gmail dot com) ...
\name{normalize} \alias{normalize} \title{Normalize} \usage{ normalize(x) } \arguments{ \item{x}{numeric vector (or one-dimension matrix)} } \description{ Normalizes a vector by its euclidean norm } \examples{ # vector v = rep(1, 5) # normalize of v normalize(v) # test it (norm = 1) vnorm(normalize(v)) # matri...
/man/normalize.Rd
no_license
gridl/matrixkit
R
false
false
410
rd
\name{normalize} \alias{normalize} \title{Normalize} \usage{ normalize(x) } \arguments{ \item{x}{numeric vector (or one-dimension matrix)} } \description{ Normalizes a vector by its euclidean norm } \examples{ # vector v = rep(1, 5) # normalize of v normalize(v) # test it (norm = 1) vnorm(normalize(v)) # matri...
\name{NMFStop} \alias{NMFStop} \alias{nmf.stop.connectivity} \alias{nmf.stop.iteration} \alias{nmf.stop.stationary} \alias{nmf.stop.threshold} \alias{stop-NMF} \title{Stopping Criteria for NMF Iterative Strategies} \usage{ NMFStop(s, check = TRUE) nmf.stop.iteration(n) nmf.stop.threshold(threshold) nmf.stop....
/man/stop-NMF.Rd
no_license
cran/NMF
R
false
false
4,772
rd
\name{NMFStop} \alias{NMFStop} \alias{nmf.stop.connectivity} \alias{nmf.stop.iteration} \alias{nmf.stop.stationary} \alias{nmf.stop.threshold} \alias{stop-NMF} \title{Stopping Criteria for NMF Iterative Strategies} \usage{ NMFStop(s, check = TRUE) nmf.stop.iteration(n) nmf.stop.threshold(threshold) nmf.stop....
#[export] count_value <- function(x,value) { .Call(Rfast_count_value,x,value) } #[export] colCountValues<-function(x,values,parallel = FALSE){ if(parallel){ .Call(Rfast_col_count_values_p,x,values) }else{ .Call(Rfast_col_count_values,x,values) } } #[export] rowCountValues<-function(x,values,par...
/fuzzedpackages/Rfast/R/count_value.R
no_license
akhikolla/testpackages
R
false
false
453
r
#[export] count_value <- function(x,value) { .Call(Rfast_count_value,x,value) } #[export] colCountValues<-function(x,values,parallel = FALSE){ if(parallel){ .Call(Rfast_col_count_values_p,x,values) }else{ .Call(Rfast_col_count_values,x,values) } } #[export] rowCountValues<-function(x,values,par...
#' Describe the context of a set of tests. #' #' A context defines a set of tests that test related functionality. Usually #' you will have one context per file, but you may have multiple contexts #' in a single file if you so choose. #' #' @param desc description of context. Should start with a capital letter. #' @e...
/R/context.r
no_license
strongh/test_that
R
false
false
509
r
#' Describe the context of a set of tests. #' #' A context defines a set of tests that test related functionality. Usually #' you will have one context per file, but you may have multiple contexts #' in a single file if you so choose. #' #' @param desc description of context. Should start with a capital letter. #' @e...
#' @title Calculate on-target sgRNA activity scores for Cas9 using Rule Set 1 #' #' @description Calculate on-target sgRNA activity scores for #' CRISPR/Cas9-induced knockout using the Rule Set 1 scoring method. #' The Rule Set 1 algorithm was an early on-target efficiency method #' developed by the Doench...
/R/getRuleSet1Scores.R
permissive
crisprVerse/crisprScore
R
false
false
4,551
r
#' @title Calculate on-target sgRNA activity scores for Cas9 using Rule Set 1 #' #' @description Calculate on-target sgRNA activity scores for #' CRISPR/Cas9-induced knockout using the Rule Set 1 scoring method. #' The Rule Set 1 algorithm was an early on-target efficiency method #' developed by the Doench...
#' --- #' title: "HE Plot Examples using Parenting Data" #' author: "Michael Friendly and Matthew Sigal" #' date: "18 Aug 2016" #' --- #' This script reproduces all of the analysis and graphs for the MANCOVA of the Rohwer data #' in the paper and also includes other analyses not described there. It is set up ...
/parenting-ex.R
no_license
mattsigal/graph-MLM
R
false
false
3,738
r
#' --- #' title: "HE Plot Examples using Parenting Data" #' author: "Michael Friendly and Matthew Sigal" #' date: "18 Aug 2016" #' --- #' This script reproduces all of the analysis and graphs for the MANCOVA of the Rohwer data #' in the paper and also includes other analyses not described there. It is set up ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RAxML.R \name{read.raxml} \alias{read.raxml} \title{read.raxml} \usage{ read.raxml(file) } \arguments{ \item{file}{RAxML bootstrapping analysis output} } \value{ raxml object } \description{ parse RAxML bootstrapping analysis output } \exampl...
/man/read.raxml.Rd
no_license
nemochina2008/treeio
R
false
true
474
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RAxML.R \name{read.raxml} \alias{read.raxml} \title{read.raxml} \usage{ read.raxml(file) } \arguments{ \item{file}{RAxML bootstrapping analysis output} } \value{ raxml object } \description{ parse RAxML bootstrapping analysis output } \exampl...
# written by Samuel Clifford & Deus Thindwa # optimal age targeting for pneumoccocal vaccines against IPD in older adults # 22/09/2022 #load datasets into memory pop_en <- read_csv("data/total_pop_en.csv") pop_mw <- read_csv("data/total_pop_mw.csv") pop_sa <- read_csv("data/total_pop_sa.csv") pop_br <- read_csv("data/...
/script/2_pops.R
permissive
deusthindwa/optimal.age.targeting.pneumo.vaccines
R
false
false
2,492
r
# written by Samuel Clifford & Deus Thindwa # optimal age targeting for pneumoccocal vaccines against IPD in older adults # 22/09/2022 #load datasets into memory pop_en <- read_csv("data/total_pop_en.csv") pop_mw <- read_csv("data/total_pop_mw.csv") pop_sa <- read_csv("data/total_pop_sa.csv") pop_br <- read_csv("data/...
context("spark apply config") test_requires("dplyr") sc <- testthat_spark_connection() test_that("'spark_apply' can pass environemnt variables from config", { expect_equal( sdf_len(sc, 1) %>% spark_apply(function(e) Sys.getenv("foo")) %>% collect() %>% as.character(), "env-test" ) })
/tests/testthat/test-spark-apply-config.R
permissive
edgararuiz/sparklyr
R
false
false
304
r
context("spark apply config") test_requires("dplyr") sc <- testthat_spark_connection() test_that("'spark_apply' can pass environemnt variables from config", { expect_equal( sdf_len(sc, 1) %>% spark_apply(function(e) Sys.getenv("foo")) %>% collect() %>% as.character(), "env-test" ) })
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{dapply} \alias{dapply} \title{Diagonal apply} \usage{ dapply(X, MARGIN, FUN, ..., SIMPLIFY = TRUE) } \arguments{ \item{X}{a matrix or an object to be coerced} \item{MARGIN}{the corner to slice from to the opposite corner: \code...
/man/dapply.Rd
no_license
Huaichao2018/rawr
R
false
true
965
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{dapply} \alias{dapply} \title{Diagonal apply} \usage{ dapply(X, MARGIN, FUN, ..., SIMPLIFY = TRUE) } \arguments{ \item{X}{a matrix or an object to be coerced} \item{MARGIN}{the corner to slice from to the opposite corner: \code...
library(shiny) library(datasets) shinyUI( pageWithSidebar( headerPanel("Old Faithful Eruption Waiting Times"), sidebarPanel( h3("Enter the duration of the previous eruption in two digits"), h3("Then click Submit"), numericInput('time', 'Eruption Duration (mins)', 3.5, min = 1.6, max = 5.1, ...
/ui.R
no_license
thartshorne/Data-Products-App
R
false
false
923
r
library(shiny) library(datasets) shinyUI( pageWithSidebar( headerPanel("Old Faithful Eruption Waiting Times"), sidebarPanel( h3("Enter the duration of the previous eruption in two digits"), h3("Then click Submit"), numericInput('time', 'Eruption Duration (mins)', 3.5, min = 1.6, max = 5.1, ...
\docType{data} \name{hidden_aliases} \alias{+,_p_itk__simple__Image,_p_itk__simple__Image-method} \alias{+,numeric,_p_itk__simple__Image-method} \alias{+,_p_itk__simple__Image,numeric-method} \alias{-,_p_itk__simple__Image,_p_itk__simple__Image-method} \alias{-,numeric,_p_itk__simple__Image-method} \alias{-,_p_itk__s...
/Wrapping/R/Packaging/SimpleITK/man/hidden_aliases.Rd
permissive
SimpleITK/SimpleITK
R
false
false
3,283
rd
\docType{data} \name{hidden_aliases} \alias{+,_p_itk__simple__Image,_p_itk__simple__Image-method} \alias{+,numeric,_p_itk__simple__Image-method} \alias{+,_p_itk__simple__Image,numeric-method} \alias{-,_p_itk__simple__Image,_p_itk__simple__Image-method} \alias{-,numeric,_p_itk__simple__Image-method} \alias{-,_p_itk__s...
/titanic.R
no_license
picarus/titanic_kaggle
R
false
false
5,155
r
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/table2office.R \name{table2office} \alias{table2office} \title{Export data.frame or statistical output to a table in Microsoft Office} \usage{ table2office( x = NULL, target = "Report", append = FALSE, title = "", vanilla = FALSE, ...
/man/table2office.Rd
no_license
cardiomoon/rrtable
R
false
true
918
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/table2office.R \name{table2office} \alias{table2office} \title{Export data.frame or statistical output to a table in Microsoft Office} \usage{ table2office( x = NULL, target = "Report", append = FALSE, title = "", vanilla = FALSE, ...
#TBX: #Baseteam: # C, A.J. Hammons, 3500, 0.92 # PF, Amir Johnson, 4400, 26.07 # PF, Anthony Tolliver, 3500, 0.61 # PG, Cory Joseph, 3500, 13.6 # PG, D'Angelo Russell, 6100, 29.2 # SF, Brandon Ingram, 3700, 16.36 # SF, Bruno Caboclo, 3500, 2.05 # SG, Arron Afflalo, 3600, 14.71 # SG, Avery Bradley, 6800, 26.54 # Total A...
/source/_createTeamMoreEfficient.R
no_license
dandoozan/alley-oop
R
false
false
9,030
r
#TBX: #Baseteam: # C, A.J. Hammons, 3500, 0.92 # PF, Amir Johnson, 4400, 26.07 # PF, Anthony Tolliver, 3500, 0.61 # PG, Cory Joseph, 3500, 13.6 # PG, D'Angelo Russell, 6100, 29.2 # SF, Brandon Ingram, 3700, 16.36 # SF, Bruno Caboclo, 3500, 2.05 # SG, Arron Afflalo, 3600, 14.71 # SG, Avery Bradley, 6800, 26.54 # Total A...
#' Repath Windows Paths with "\" to ones with "/" #' This function is originally from a StackOverflow comment here: #' https://stackoverflow.com/questions/1189759/expert-r-users-whats-in-your-rprofile/12703931#12703931 repath <- function() { cat('Paste windows file path and hit RETURN twice') path <- scan(what = ""...
/r/qsffiles/QualtricsTools-master/R/helper_functions.R
no_license
tszberkowitz/sandbox
R
false
false
49,188
r
#' Repath Windows Paths with "\" to ones with "/" #' This function is originally from a StackOverflow comment here: #' https://stackoverflow.com/questions/1189759/expert-r-users-whats-in-your-rprofile/12703931#12703931 repath <- function() { cat('Paste windows file path and hit RETURN twice') path <- scan(what = ""...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_bin_info.r \name{get_bin_info} \alias{get_bin_info} \title{Get the parameter values for change_bin} \usage{ get_bin_info(dat) } \arguments{ \item{dat}{A list of sample arguments from all sampling functions} } \description{ This function o...
/man/get_bin_info.Rd
no_license
James-Thorson/ss3sim
R
false
true
392
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_bin_info.r \name{get_bin_info} \alias{get_bin_info} \title{Get the parameter values for change_bin} \usage{ get_bin_info(dat) } \arguments{ \item{dat}{A list of sample arguments from all sampling functions} } \description{ This function o...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/process_data.R \name{medium_RelA} \alias{medium_RelA} \title{medium_RelA calculates statistical metrics from all replicates (including fresh medium blanks).} \usage{ medium_RelA(dat, Title = "") } \arguments{ \item{dat}{A formated data frame ...
/man/medium_RelA.Rd
no_license
danielbraas/ShinyMetab
R
false
true
625
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/process_data.R \name{medium_RelA} \alias{medium_RelA} \title{medium_RelA calculates statistical metrics from all replicates (including fresh medium blanks).} \usage{ medium_RelA(dat, Title = "") } \arguments{ \item{dat}{A formated data frame ...
#'Generate survival times for two endpoints using the joint frailty surrogate model #' #'Date are generated from the one-step joint surrogate model (see \code{\link{jointSurroPenal}} for more details) #' #'We just considered in this generation, the Gaussian random effects. If the parameter \code{full.data} is set to 1,...
/R/jointSurrSimul.R
no_license
socale/frailtypack
R
false
false
14,484
r
#'Generate survival times for two endpoints using the joint frailty surrogate model #' #'Date are generated from the one-step joint surrogate model (see \code{\link{jointSurroPenal}} for more details) #' #'We just considered in this generation, the Gaussian random effects. If the parameter \code{full.data} is set to 1,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mat_gen_dist.R \name{mat_gen_dist} \alias{mat_gen_dist} \title{Compute a pairwise matrix of genetic distances between populations} \usage{ mat_gen_dist(x, dist = "basic", null_val = FALSE) } \arguments{ \item{x}{An object of class \code{genin...
/man/mat_gen_dist.Rd
no_license
paigemaroni/graph4lg
R
false
true
3,519
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mat_gen_dist.R \name{mat_gen_dist} \alias{mat_gen_dist} \title{Compute a pairwise matrix of genetic distances between populations} \usage{ mat_gen_dist(x, dist = "basic", null_val = FALSE) } \arguments{ \item{x}{An object of class \code{genin...
\name{ecospat.max.kappa} \alias{ecospat.max.kappa} \title{ Maximum Kappa } \description{ Calculates values for Cohen's Kappa along different thresholds, considering this time 0.01 increments (i.e. 99 thresholds). } \usage{ ecospat.max.kappa(Pred, Sp.occ) } \arguments{ \item{Pred}{ A vector of predi...
/ecospat/man/ecospat.max.kappa.Rd
no_license
albrizre/spatstat.revdep
R
false
false
1,294
rd
\name{ecospat.max.kappa} \alias{ecospat.max.kappa} \title{ Maximum Kappa } \description{ Calculates values for Cohen's Kappa along different thresholds, considering this time 0.01 increments (i.e. 99 thresholds). } \usage{ ecospat.max.kappa(Pred, Sp.occ) } \arguments{ \item{Pred}{ A vector of predi...
## cachematrix.R # Functions create a cached matrix object with additional functionality, # such as getting/setting the matrix and (if available) its inverse. # makeCacheMatrix will create a special object containing a matrix. # It takes one argument, a matrix. This input is coerced into a matrix. # Inner function...
/cachematrix.R
no_license
aromeo/ProgrammingAssignment2
R
false
false
1,227
r
## cachematrix.R # Functions create a cached matrix object with additional functionality, # such as getting/setting the matrix and (if available) its inverse. # makeCacheMatrix will create a special object containing a matrix. # It takes one argument, a matrix. This input is coerced into a matrix. # Inner function...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/file.R \name{fileInput} \alias{fileInput} \title{Upload user files} \usage{ fileInput(id, placeholder = "Choose file", left = NULL, right = "Browse", ..., multiple = TRUE, accept = NULL) } \arguments{ \item{id}{A character string specifying...
/man/fileInput.Rd
permissive
kmaheshkulkarni/yonder
R
false
true
2,229
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/file.R \name{fileInput} \alias{fileInput} \title{Upload user files} \usage{ fileInput(id, placeholder = "Choose file", left = NULL, right = "Browse", ..., multiple = TRUE, accept = NULL) } \arguments{ \item{id}{A character string specifying...
library(ELISAtools) ### Name: elisa_batch-class ### Title: S4 class definition of an elisa_batch object ### Aliases: elisa_batch-class ### ** Examples elisa_batch();
/data/genthat_extracted_code/ELISAtools/examples/elisa_batch-class.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
173
r
library(ELISAtools) ### Name: elisa_batch-class ### Title: S4 class definition of an elisa_batch object ### Aliases: elisa_batch-class ### ** Examples elisa_batch();