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
install.packages("rjags") install.packages("coda") install.packages("ggplot2")
/install.R
no_license
julianpistorius/Binder_ResBaz_JAGS_tutorial
R
false
false
79
r
install.packages("rjags") install.packages("coda") install.packages("ggplot2")
% Generated by roxygen2 (4.0.2): do not edit by hand \name{makeDisplay} \alias{makeDisplay} \title{Create a Trelliscope Display} \usage{ makeDisplay(data, name, group = "common", desc = "", height = 500, width = 500, panelFn = NULL, lims = list(x = "free", y = "free", prepanelFn = NULL), cogFn = NULL, state = NULL,...
/Analyze/man/makeDisplay.Rd
permissive
alacer/renaissance
R
false
false
4,272
rd
% Generated by roxygen2 (4.0.2): do not edit by hand \name{makeDisplay} \alias{makeDisplay} \title{Create a Trelliscope Display} \usage{ makeDisplay(data, name, group = "common", desc = "", height = 500, width = 500, panelFn = NULL, lims = list(x = "free", y = "free", prepanelFn = NULL), cogFn = NULL, state = NULL,...
require(MASS) data(iris) #relatively_pure_example = c(1, 1, 1, 1, 1, 1, 1, 1, 1, 2) #unpure_example = c(1, 2, 2, 1, 2) getGiniImpurity <- function(y){ n = unique(y) sum_impurity = 0 for(i in range(n)){ f = sum(y == i) / length(y) sum_impurity = sum_impurity + f * (1 - f) } return(sum_impurity) } #pri...
/re_implemented/tree/decision_tree.R
no_license
albertlim/Quick-Data-Science-Experiments-2016
R
false
false
989
r
require(MASS) data(iris) #relatively_pure_example = c(1, 1, 1, 1, 1, 1, 1, 1, 1, 2) #unpure_example = c(1, 2, 2, 1, 2) getGiniImpurity <- function(y){ n = unique(y) sum_impurity = 0 for(i in range(n)){ f = sum(y == i) / length(y) sum_impurity = sum_impurity + f * (1 - f) } return(sum_impurity) } #pri...
/classwork1/arithmetics.R
permissive
KichiginaTatiana/MD-DA-2017
R
false
false
273
r
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/auxillary-methods.R \docType{methods} \name{getAlleleQuality} \alias{getAlleleQuality} \alias{getAlleleQuality,GAlignmentsList-method} \title{snp quality data} \usage{ getAlleleQuality(BamList, ...) \S4method{getAlleleQuality}{GAlignmentsLis...
/man/getAlleleQuality.Rd
no_license
pappewaio/AllelicImbalance
R
false
true
2,439
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/auxillary-methods.R \docType{methods} \name{getAlleleQuality} \alias{getAlleleQuality} \alias{getAlleleQuality,GAlignmentsList-method} \title{snp quality data} \usage{ getAlleleQuality(BamList, ...) \S4method{getAlleleQuality}{GAlignmentsLis...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/opt_function.R \name{opt} \alias{opt} \title{Calculate the Life Orientation Test - Revised (LOT-R)} \usage{ opt(start_col, end_col, data) } \arguments{ \item{start_col}{The column number where the scale begins, reference by number only.} \it...
/man/opt.Rd
no_license
jonathanbart/baxtr
R
false
true
1,348
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/opt_function.R \name{opt} \alias{opt} \title{Calculate the Life Orientation Test - Revised (LOT-R)} \usage{ opt(start_col, end_col, data) } \arguments{ \item{start_col}{The column number where the scale begins, reference by number only.} \it...
checkFcn <- function(x, p=.5){ return((x < 0)*-1*x*(1-p) + (x>0)*p*x) }
/factorQR/R/checkFcn.R
no_license
ingted/R-Examples
R
false
false
74
r
checkFcn <- function(x, p=.5){ return((x < 0)*-1*x*(1-p) + (x>0)*p*x) }
igraph2neo4j <- function(igr, label = 'b', type = 'bb') { library(d3Network) library(igraph) if ( is.null(V(igr)$name) ) V(igr)$name <- as.character(V(igr)) n <- lapply(V(igr)$name, function(x) createNode(graph, label, name = x)) x <- apply(get.edges(igr, seq(E(igr))), 1, function(x) c...
/rcode/igraph2neo4j.R
no_license
darrkj/darrkj.github.io
R
false
false
389
r
igraph2neo4j <- function(igr, label = 'b', type = 'bb') { library(d3Network) library(igraph) if ( is.null(V(igr)$name) ) V(igr)$name <- as.character(V(igr)) n <- lapply(V(igr)$name, function(x) createNode(graph, label, name = x)) x <- apply(get.edges(igr, seq(E(igr))), 1, function(x) c...
#' abetadms__run_bayesian_double_fitness #' #' Estimate fitness of double mutants using bayesian framework. #' #' @param wt_dt data.table with WT (required) #' @param singles_dt data.table with double AA mutants (required) #' @param doubles_dt data.table with double AA mutants (required) #' @param outpath output path ...
/R/abetadms__run_bayesian_double_fitness.R
permissive
lehner-lab/abetadms
R
false
false
12,399
r
#' abetadms__run_bayesian_double_fitness #' #' Estimate fitness of double mutants using bayesian framework. #' #' @param wt_dt data.table with WT (required) #' @param singles_dt data.table with double AA mutants (required) #' @param doubles_dt data.table with double AA mutants (required) #' @param outpath output path ...
library(rvest) library(dplyr) news = data.frame() for (page_number in seq(from = 0, to = 3200, by = 1)) { url=paste0("https://newslookup.com/results?p=",page_number,"&q=myanmar&dp=5&mt=-1&ps=10&s=&cat=-1&fmt=&groupby=no&site=&dp=5&tp=-720") page = read_html(url) title = page %>% html_nodes(".title") %>% html...
/news_scrapping.R
no_license
SanHtet-Sanpai/Myanmar-News-R-Project
R
false
false
726
r
library(rvest) library(dplyr) news = data.frame() for (page_number in seq(from = 0, to = 3200, by = 1)) { url=paste0("https://newslookup.com/results?p=",page_number,"&q=myanmar&dp=5&mt=-1&ps=10&s=&cat=-1&fmt=&groupby=no&site=&dp=5&tp=-720") page = read_html(url) title = page %>% html_nodes(".title") %>% html...
#Tutorial-6 Solution: # Multiple Linear Regression # Importing the dataset dataset = read.csv('D:/R Programming/Analytics in R/Analytics in R_P1/Luxury_Cars.csv') View(dataset) #Is there any missing value in the dataset summary(dataset) sum(is.na(dataset)) #Lets check the data type of each field: str...
/MultipleRegression_Tutorial_6.R
no_license
Nitikagurral/Analytics-in-R
R
false
false
5,742
r
#Tutorial-6 Solution: # Multiple Linear Regression # Importing the dataset dataset = read.csv('D:/R Programming/Analytics in R/Analytics in R_P1/Luxury_Cars.csv') View(dataset) #Is there any missing value in the dataset summary(dataset) sum(is.na(dataset)) #Lets check the data type of each field: str...
##Matrix inversion is usually a costly computation and their may be some benefit to ##caching the inverse of a matrix rather than compute it repeatedly ##These pair of functions cache the inverse of a matrix. #This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x =...
/cachematrix.R
no_license
ilovephysics/ProgrammingAssignment2
R
false
false
1,246
r
##Matrix inversion is usually a costly computation and their may be some benefit to ##caching the inverse of a matrix rather than compute it repeatedly ##These pair of functions cache the inverse of a matrix. #This function creates a special "matrix" object that can cache its inverse. makeCacheMatrix <- function(x =...
\alias{gtkPaintExpander} \name{gtkPaintExpander} \title{gtkPaintExpander} \description{Draws an expander as used in \code{\link{GtkTreeView}}. \code{x} and \code{y} specify the center the expander. The size of the expander is determined by the "expander-size" style property of \code{widget}. (If widget is not specifie...
/RGtk2/man/gtkPaintExpander.Rd
no_license
lawremi/RGtk2
R
false
false
1,502
rd
\alias{gtkPaintExpander} \name{gtkPaintExpander} \title{gtkPaintExpander} \description{Draws an expander as used in \code{\link{GtkTreeView}}. \code{x} and \code{y} specify the center the expander. The size of the expander is determined by the "expander-size" style property of \code{widget}. (If widget is not specifie...
library(ggmap) #Read in all of the csv data files get_csvdata_droploads <- function(){ buses <<- read.csv("data/rawdata/BPA_230kV_data/buses.csv") substations <<- read.csv("data/rawdata/BPA_230kV_data/subs.csv") bus_info <<- read.csv("data/rawdata/BPA_230kV_data/bus_info.csv") pmus <<- read.csv("data/rawdata/...
/data/import_droploads.R
no_license
grahamhome/PowerApp
R
false
false
3,895
r
library(ggmap) #Read in all of the csv data files get_csvdata_droploads <- function(){ buses <<- read.csv("data/rawdata/BPA_230kV_data/buses.csv") substations <<- read.csv("data/rawdata/BPA_230kV_data/subs.csv") bus_info <<- read.csv("data/rawdata/BPA_230kV_data/bus_info.csv") pmus <<- read.csv("data/rawdata/...
#' @rdname select #' @export select <- function(obj,...) UseMethod("select") #' Select an value of lambda along a grpreg path #' #' Selects a point along the regularization path of a fitted grpreg object #' according to the AIC, BIC, or GCV criteria. #' #' The criteria are defined as follows, where \eqn{L}{L} is the...
/R/select.R
no_license
pbreheny/grpreg
R
false
false
3,835
r
#' @rdname select #' @export select <- function(obj,...) UseMethod("select") #' Select an value of lambda along a grpreg path #' #' Selects a point along the regularization path of a fitted grpreg object #' according to the AIC, BIC, or GCV criteria. #' #' The criteria are defined as follows, where \eqn{L}{L} is the...
## This code is to create a shiny APP for the platypus month data ## It does the following #1 load libraries #2 Read in the platypus month data #3 set up a ui for the shiny app #1 load libraries #install.packages("dplyr") #install.packages("tidyr") #install.packages("lubridate") #install.packages("ggplot2...
/shiny_plat_2.R
no_license
Citizen-science-ACT-Gov/Platypus_shiny
R
false
false
8,235
r
## This code is to create a shiny APP for the platypus month data ## It does the following #1 load libraries #2 Read in the platypus month data #3 set up a ui for the shiny app #1 load libraries #install.packages("dplyr") #install.packages("tidyr") #install.packages("lubridate") #install.packages("ggplot2...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/circGLM.R \name{circGLM} \alias{circGLM} \title{Fitting Bayesian circular General Linear Models} \usage{ circGLM(formula, data, th, X = if (missing(th)) { model.matrix(formula, data)[, -1, drop = FALSE] } else { matrix(nrow = length...
/man/circGLM.Rd
no_license
ArjanHuizing/CircGLMBayes
R
false
true
14,534
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/circGLM.R \name{circGLM} \alias{circGLM} \title{Fitting Bayesian circular General Linear Models} \usage{ circGLM(formula, data, th, X = if (missing(th)) { model.matrix(formula, data)[, -1, drop = FALSE] } else { matrix(nrow = length...
# In this lesson, we will explore some basic building blocks of the R programming language. # In its simplest form, R can be used as an interactive calculator. Type 5 + 7 # R simply prints the result of 12 by default. However, R is a programming language and # often the reason we use a programming language as opposed t...
/R programming files/Basics in R -2.R
no_license
harimurugesan/Data-Science-With-Python-and-R-programming
R
false
false
14,739
r
# In this lesson, we will explore some basic building blocks of the R programming language. # In its simplest form, R can be used as an interactive calculator. Type 5 + 7 # R simply prints the result of 12 by default. However, R is a programming language and # often the reason we use a programming language as opposed t...
library (dplyr) library (ggplot2) library (xkcd) library (extrafont) download.file("http://simonsoftware.se/other/xkcd.ttf", dest="xkcd.ttf", mode="wb") system("cp xkcd.ttf ~/Library/Fonts") font_import(path="~/Library/Fonts", pattern = "xkcd", prompt=FALSE) fonts() fonttable() if(.Platform$OS.type != "u...
/visualize.R
no_license
harrydet/betting
R
false
false
1,587
r
library (dplyr) library (ggplot2) library (xkcd) library (extrafont) download.file("http://simonsoftware.se/other/xkcd.ttf", dest="xkcd.ttf", mode="wb") system("cp xkcd.ttf ~/Library/Fonts") font_import(path="~/Library/Fonts", pattern = "xkcd", prompt=FALSE) fonts() fonttable() if(.Platform$OS.type != "u...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.2281062393359e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(CNull:::communities_individual_b...
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615775203-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
361
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.2281062393359e+146, 4.12396251261199e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(CNull:::communities_individual_b...
# titanic_association_practice Titanic class(Titanic) titan.df <- as.data.frame(Titanic) head(titan.df) titan.df[4, "Freq"] #for(i in 1:nrow(titan.df)) # for(j in 0:titan.df[i, "Freq"]-1) # titan <- rbind(titan, titan.df[i,]) # titanic <- NULL titanic <- NULL for(i in 1:4) titanic <- cbind(titanic, rep(as.cha...
/association_rule/titanic_association_practice.R
no_license
qwerop553/Data-mining
R
false
false
706
r
# titanic_association_practice Titanic class(Titanic) titan.df <- as.data.frame(Titanic) head(titan.df) titan.df[4, "Freq"] #for(i in 1:nrow(titan.df)) # for(j in 0:titan.df[i, "Freq"]-1) # titan <- rbind(titan, titan.df[i,]) # titanic <- NULL titanic <- NULL for(i in 1:4) titanic <- cbind(titanic, rep(as.cha...
#this function will take as input a transposed mat and a factor with genoData #it will return the selected genes on a matrix based on rfe feature selection using function crossval FSelection <- function (esetMatT,genoData) { #finds the most important features/genes res.rfe <- crossval(esetMatT,genoData,DEBUG...
/FSelection.R
no_license
MrSud0/Pr2-SVM-Model-
R
false
false
1,165
r
#this function will take as input a transposed mat and a factor with genoData #it will return the selected genes on a matrix based on rfe feature selection using function crossval FSelection <- function (esetMatT,genoData) { #finds the most important features/genes res.rfe <- crossval(esetMatT,genoData,DEBUG...
#' Listen to a random song #' #' Run to open a random song in youtube. Provide an index to listen to a specific #' song. #' #' @param index Which song to listen to (index in the palette table) #' @param takes Palette table #' @export first_take <- function(index = sample(seq_len(nrow(takes)), 1), takes=ftpals::first_ta...
/R/first_take.R
permissive
tsostarics/ftpals
R
false
false
683
r
#' Listen to a random song #' #' Run to open a random song in youtube. Provide an index to listen to a specific #' song. #' #' @param index Which song to listen to (index in the palette table) #' @param takes Palette table #' @export first_take <- function(index = sample(seq_len(nrow(takes)), 1), takes=ftpals::first_ta...
############################################################################################# # Purpose: Relate observed nest densities for 4 species (BBWO, HAWO, WHWO, NOFL) with HSIs. # # This version is for manuscript for peer-reviewed publication. # ######################################...
/05-Covariate_relation_plots.R
no_license
qureshlatif/Northern-Sierra-Woodpeckers
R
false
false
20,165
r
############################################################################################# # Purpose: Relate observed nest densities for 4 species (BBWO, HAWO, WHWO, NOFL) with HSIs. # # This version is for manuscript for peer-reviewed publication. # ######################################...
library(dplyr) disease_train<-read.csv("tt.csv") b<-data.frame(disease_train) disease_test<-read.csv("TB_Test.csv") cleantable <- disease_train %>% select( # Age = Age, Gender = Gender, Food.Preference = Food.Preference, Marital.Status = Marital.Status, Symptoms_1 = Symptoms_1, ...
/Disease Pred/global.R
no_license
dharanisugumar/diseasePrediction
R
false
false
505
r
library(dplyr) disease_train<-read.csv("tt.csv") b<-data.frame(disease_train) disease_test<-read.csv("TB_Test.csv") cleantable <- disease_train %>% select( # Age = Age, Gender = Gender, Food.Preference = Food.Preference, Marital.Status = Marital.Status, Symptoms_1 = Symptoms_1, ...
#' kernel_C #' to be documented #' @usage kernel_C(XX, J, hh, Mykernel, Minv, TIME, Decay, DDiagNull, normWW) #' @param XX to be documented #' @param J to be documented #' @param hh to be documented #' @param Mykernel to be documented #' @param Minv to be documented #' @param TIME to be documented #' @param Decay...
/R/kernel_C.R
no_license
shepherdmeng/mgwrsar
R
false
false
649
r
#' kernel_C #' to be documented #' @usage kernel_C(XX, J, hh, Mykernel, Minv, TIME, Decay, DDiagNull, normWW) #' @param XX to be documented #' @param J to be documented #' @param hh to be documented #' @param Mykernel to be documented #' @param Minv to be documented #' @param TIME to be documented #' @param Decay...
# ============================================================================== # smartvote-00044-script-antwortverteilung_gewaehlte_kand_budget-5.R # # Skript zur Visualisierung der Antwortverteilung gewaehlte Kandidierende - Fragetyp Budget-5 # # R-Script - Bachelor Thesis - smartvote # # Author: wackt1.bfh@...
/smartvote-00044-script-antwortverteilung_gewaehlte_kand_budget-5.R
no_license
wackt1/automated-report-in-R
R
false
false
3,478
r
# ============================================================================== # smartvote-00044-script-antwortverteilung_gewaehlte_kand_budget-5.R # # Skript zur Visualisierung der Antwortverteilung gewaehlte Kandidierende - Fragetyp Budget-5 # # R-Script - Bachelor Thesis - smartvote # # Author: wackt1.bfh@...
#library(MASS) #library(fda) #source("~/Desktop/implant/input.list.R") fanova_mean = function(Y.na.mat, X, tt, formula, K.int = 6, order = 4, #interact = 0, #p = 2, d0 = 0, d1 = 2, d2 = 2, lower = -10, upper = 15){ data.time = rbind(tt,Y.na.mat) T_na = Y.na.mat for (...
/R/fanova_mean.R
no_license
rwang14/abc
R
false
false
4,877
r
#library(MASS) #library(fda) #source("~/Desktop/implant/input.list.R") fanova_mean = function(Y.na.mat, X, tt, formula, K.int = 6, order = 4, #interact = 0, #p = 2, d0 = 0, d1 = 2, d2 = 2, lower = -10, upper = 15){ data.time = rbind(tt,Y.na.mat) T_na = Y.na.mat for (...
#' Utilities for Looping to Read In Documents #' #' `loop_counter` - A simple loop counter for tracking the progress of reading in #' a batch of files. #' #' @param i Iteration of the loop. #' @param total Total number of iterations. #' @param file The file name of that iteration to print out. #' @param ... ignored ...
/R/loop_utilities.R
no_license
trinker/textreadr
R
false
false
3,391
r
#' Utilities for Looping to Read In Documents #' #' `loop_counter` - A simple loop counter for tracking the progress of reading in #' a batch of files. #' #' @param i Iteration of the loop. #' @param total Total number of iterations. #' @param file The file name of that iteration to print out. #' @param ... ignored ...
# Scratch (For Testing) # Removing NULL Values From A Vector numbers.data <- as.character(c(1, 2, 3, NULL, 5)); numbers.data letters.data <- c(letters[1:5]) numbers.str <- as.character(numbers.data); numbers.str numbers.str <- replace(numbers.str, "NULL", NA); numbers.str data <- data.frame(numbers.data, letters....
/incomplete/scratchpad.r
no_license
anhnguyendepocen/r-code-examples
R
false
false
415
r
# Scratch (For Testing) # Removing NULL Values From A Vector numbers.data <- as.character(c(1, 2, 3, NULL, 5)); numbers.data letters.data <- c(letters[1:5]) numbers.str <- as.character(numbers.data); numbers.str numbers.str <- replace(numbers.str, "NULL", NA); numbers.str data <- data.frame(numbers.data, letters....
#' @title Nucleotide Divergence #' @description Calculate distributions of between- and within-strata #' nucleotide divergence (sequence distance), which includes #' Nei's \eqn{\pi} (usually referred to as "nucleotide diversity") and #' Nei's dA between strata. #' #' @param g a \linkS4class{gtypes} object. #...
/R/nucleotideDivergence.R
no_license
EricArcher/strataG
R
false
false
3,939
r
#' @title Nucleotide Divergence #' @description Calculate distributions of between- and within-strata #' nucleotide divergence (sequence distance), which includes #' Nei's \eqn{\pi} (usually referred to as "nucleotide diversity") and #' Nei's dA between strata. #' #' @param g a \linkS4class{gtypes} object. #...
#' Step 1 of annex 4-10 integration #' #' @param id, character used to specify namespace, see \code{shiny::\link[shiny]{NS}} #' #' @return a \code{shiny::\link[shiny]{tagList}} containing UI elements #' #' importstep1UI <- function(id){ ns <- NS(id) tagList(useShinyjs(), tags$hr(), h2("step 1 : Compare with...
/R/shiny_data_integration/shiny_di/importstep1.R
no_license
ices-eg/wg_WGEEL
R
false
false
17,155
r
#' Step 1 of annex 4-10 integration #' #' @param id, character used to specify namespace, see \code{shiny::\link[shiny]{NS}} #' #' @return a \code{shiny::\link[shiny]{tagList}} containing UI elements #' #' importstep1UI <- function(id){ ns <- NS(id) tagList(useShinyjs(), tags$hr(), h2("step 1 : Compare with...
library(gghalves) library(ggsignif) library(ggsci) library(ggpubr) library(readxl) library(ggsignif) mf <- read_excel("Desktop/饥饿文章/r包用Excel/肌纤维箱线图.xlsx") library(tidyverse) # 统计摘要Mfdi summ_mf<- mf %>% group_by(Species) %>% summarise( mean = mean(Mfdi), sd = sd(Mfdi), n = n() ) %>% mutate(s...
/肌纤维箱线图+气泡图组图.R
no_license
mineraltsai/manuscript-public
R
false
false
7,133
r
library(gghalves) library(ggsignif) library(ggsci) library(ggpubr) library(readxl) library(ggsignif) mf <- read_excel("Desktop/饥饿文章/r包用Excel/肌纤维箱线图.xlsx") library(tidyverse) # 统计摘要Mfdi summ_mf<- mf %>% group_by(Species) %>% summarise( mean = mean(Mfdi), sd = sd(Mfdi), n = n() ) %>% mutate(s...
/RW/randomForest.R
no_license
shimaXX/Rsource
R
false
false
2,653
r
require('data.table') library(xgboost) library(Matrix) library(ggplot2) library(Rtsne) # https://beta.oreilly.com/learning/an-illustrated-introduction-to-the-t-sne-algorithm setwd("~/Dropbox/kddcup2015/r") # load data ## train data train.feature = fread('../data/train_course_feature.csv') train.truth = fread('../dat...
/r/tsne.R
no_license
hezila/kdd2015
R
false
false
1,565
r
require('data.table') library(xgboost) library(Matrix) library(ggplot2) library(Rtsne) # https://beta.oreilly.com/learning/an-illustrated-introduction-to-the-t-sne-algorithm setwd("~/Dropbox/kddcup2015/r") # load data ## train data train.feature = fread('../data/train_course_feature.csv') train.truth = fread('../dat...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 2742 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 2742 c c Input Parameter (command line, file): c input filename QBFLIB/Tentrup/mult-matrix/mult_bool_matrix_2_3_7.sat.qdimacs c...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Tentrup/mult-matrix/mult_bool_matrix_2_3_7.sat/mult_bool_matrix_2_3_7.sat.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
650
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 2742 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 2742 c c Input Parameter (command line, file): c input filename QBFLIB/Tentrup/mult-matrix/mult_bool_matrix_2_3_7.sat.qdimacs c...
############################ housekeeping rm(list = ls()) graphics.off() setwd("~/Documents/ResearchProject/Code/") # load up the relevant packages library(caper) library(phytools) library(phylobase) library(data.table) library(geiger) library(pez) # import data load("../Data/Red_Categorymod.Rdata") load("../Data...
/Code/EDGE_wholetree.R
no_license
OScott19/ResearchProject
R
false
false
3,159
r
############################ housekeeping rm(list = ls()) graphics.off() setwd("~/Documents/ResearchProject/Code/") # load up the relevant packages library(caper) library(phytools) library(phylobase) library(data.table) library(geiger) library(pez) # import data load("../Data/Red_Categorymod.Rdata") load("../Data...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.R \name{plot.dabest} \alias{plot.dabest} \title{Estimation Plot} \usage{ \method{plot}{dabest}(x, ..., color.column = NULL, palette = "Set1", float.contrast = TRUE, slopegraph = TRUE, group.summaries = "mean_sd", rawplot.type = c("sw...
/man/plot.dabest.Rd
permissive
anhnguyendepocen/dabestr
R
false
true
6,328
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot.R \name{plot.dabest} \alias{plot.dabest} \title{Estimation Plot} \usage{ \method{plot}{dabest}(x, ..., color.column = NULL, palette = "Set1", float.contrast = TRUE, slopegraph = TRUE, group.summaries = "mean_sd", rawplot.type = c("sw...
## run_analysis.R library(reshape2) # step1 # Merges the training and the test sets to create one data set. # argument: [path] - data set path (ex: /work/Getting-and-Cleaning-Data/data) # return: [step1_val] - train & test data step1 <- function(path) { # backup and replace working dir backup_wd <...
/run_analysis.R
no_license
daxanya1/Getting-and-Cleaning-Data
R
false
false
3,985
r
## run_analysis.R library(reshape2) # step1 # Merges the training and the test sets to create one data set. # argument: [path] - data set path (ex: /work/Getting-and-Cleaning-Data/data) # return: [step1_val] - train & test data step1 <- function(path) { # backup and replace working dir backup_wd <...
testlist <- list(A = structure(c(6.6399836774179e+81, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613109594-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
256
r
testlist <- list(A = structure(c(6.6399836774179e+81, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/add_faculty_titles.R \name{add_faculty_titles} \alias{add_faculty_titles} \title{Add Faculty Titles} \format{\describe{ \item{title}{Faculty's title} \item{rank}{Faculty's rank; one of "Librarian", "Instructor", "Fellow", "Lecturer", ...
/man/add_faculty_titles.Rd
no_license
davidkane9/williams
R
false
true
888
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/add_faculty_titles.R \name{add_faculty_titles} \alias{add_faculty_titles} \title{Add Faculty Titles} \format{\describe{ \item{title}{Faculty's title} \item{rank}{Faculty's rank; one of "Librarian", "Instructor", "Fellow", "Lecturer", ...
# Code from Andy, 29 Dec 2016 # Mike reorganised the plotting commands, adding devAskNewPage and show.plot. # Mike moved beta1 and npix to the arguments. sim.spatialHDS <- function(lam0 = 4 , sigma= 1.5, B=3, nsites=100, beta1 = 1, npix = 20, show.plot=3){ # Function simulates coordinates of individuals o...
/R/sim-spatialHDS.R
no_license
guillaumesouchay/AHMbook
R
false
false
2,283
r
# Code from Andy, 29 Dec 2016 # Mike reorganised the plotting commands, adding devAskNewPage and show.plot. # Mike moved beta1 and npix to the arguments. sim.spatialHDS <- function(lam0 = 4 , sigma= 1.5, B=3, nsites=100, beta1 = 1, npix = 20, show.plot=3){ # Function simulates coordinates of individuals o...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sparta.r \docType{package} \name{sparta} \alias{sparta} \alias{sparta-package} \title{\pkg{sparta} Trend Analysis for Unstructured Data} \description{ The Sparta package includes methods used to analyse trends in unstructured occurrence datas...
/man/sparta.Rd
no_license
flovv/sparta
R
false
true
592
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sparta.r \docType{package} \name{sparta} \alias{sparta} \alias{sparta-package} \title{\pkg{sparta} Trend Analysis for Unstructured Data} \description{ The Sparta package includes methods used to analyse trends in unstructured occurrence datas...
#### WINDBELT-mapping low impact sites#### library(sf) library(tidyverse) library(sp) #install.packages("gstat","maps") library(gstat) library(maps) library(leaflet) library(dplyr) Windbelt_Df <- read_csv("G:/Data/wind project dataset/ventyx_withLR.csv") Windbelt_Df$lowimpact <- Windbelt_Df$lr_tif_1 Windbelt_Df <...
/TextAnalysis/NexisUni/R/WindDev_run.R
no_license
dlroney/WindBelt
R
false
false
1,468
r
#### WINDBELT-mapping low impact sites#### library(sf) library(tidyverse) library(sp) #install.packages("gstat","maps") library(gstat) library(maps) library(leaflet) library(dplyr) Windbelt_Df <- read_csv("G:/Data/wind project dataset/ventyx_withLR.csv") Windbelt_Df$lowimpact <- Windbelt_Df$lr_tif_1 Windbelt_Df <...
rm(list=ls()) library(rvest) # getwd() # setwd("C:/Rstudy/Day_8_191030") url = "http://www.saramin.co.kr/zf_user/search?search_area=main&search_done=y&search_optional_item=n&searchType=default_mysearch&searchword=DATA%20SCIENTIST" html = read_html(url) tech_name_nodes = html_nodes(html, '.swiper-slide') tech_name = ...
/R_training/실습제출/이종현/191030/saramin.R
no_license
BaeYS-marketing/R
R
false
false
731
r
rm(list=ls()) library(rvest) # getwd() # setwd("C:/Rstudy/Day_8_191030") url = "http://www.saramin.co.kr/zf_user/search?search_area=main&search_done=y&search_optional_item=n&searchType=default_mysearch&searchword=DATA%20SCIENTIST" html = read_html(url) tech_name_nodes = html_nodes(html, '.swiper-slide') tech_name = ...
testlist <- list(A = structure(c(2.17107980817984e+205, 9.53818252179844e+295 ), .Dim = 1:2), B = structure(c(2.19477802979261e+294, 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 ), .Dim = c(5L, 9L))) result <- do.call(multivariance:...
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613122874-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
354
r
testlist <- list(A = structure(c(2.17107980817984e+205, 9.53818252179844e+295 ), .Dim = 1:2), B = structure(c(2.19477802979261e+294, 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 ), .Dim = c(5L, 9L))) result <- do.call(multivariance:...
# Change this to an appropriate directory for your environment setwd("~/Coursera/Exploratory Data Analysis/Project 2") library(dplyr) ## Download data if (!file.exists("data")) { dir.create("data") } if (!file.exists("./data/exdata-data-NEI_data.zip")) { fileUrl <- "https://d396qusza40orc.cloudfront.net/exda...
/plot1.R
no_license
mcb2/ExpDataProject2
R
false
false
938
r
# Change this to an appropriate directory for your environment setwd("~/Coursera/Exploratory Data Analysis/Project 2") library(dplyr) ## Download data if (!file.exists("data")) { dir.create("data") } if (!file.exists("./data/exdata-data-NEI_data.zip")) { fileUrl <- "https://d396qusza40orc.cloudfront.net/exda...
testlist <- list(x = c(1.78505693566084e-308, 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 )) result <- do.call(myTAI:::cpp_harmonic_mean,testlist) str(result)
/myTAI/inst/testfiles/cpp_harmonic_mean/AFL_cpp_harmonic_mean/cpp_harmonic_mean_valgrind_files/1615844522-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
268
r
testlist <- list(x = c(1.78505693566084e-308, 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 )) result <- do.call(myTAI:::cpp_harmonic_mean,testlist) str(result)
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/TCGA_pipe.R \name{TCGA.pipe} \alias{TCGA.pipe} \title{ELMER analysis pipe for TCGA data.} \usage{ TCGA.pipe(disease, analysis = "all", wd = "./", cores = NULL, Data = NULL, ...) } \arguments{ \item{disease}{TCGA short form disease n...
/man/TCGA.pipe.Rd
no_license
scoetzee/ELMER
R
false
false
1,152
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/TCGA_pipe.R \name{TCGA.pipe} \alias{TCGA.pipe} \title{ELMER analysis pipe for TCGA data.} \usage{ TCGA.pipe(disease, analysis = "all", wd = "./", cores = NULL, Data = NULL, ...) } \arguments{ \item{disease}{TCGA short form disease n...
## Figure 1: barplot #### top genes ###### out.m<-read.table("GENIE_DiffGENE_EarlyvsTypical_CRC_02192021-MSS-ALL.txt",head=TRUE,sep="\t") out.m<-as.data.frame(out.m) out.m <- out.m[out.m$P < 0.05,] out.mbar<-out.m[,8:10] rownames(out.mbar)<-out.m$Gene #out.mbar<-out.mbar[,-(1:2)] #out.mbar$V2 <- as.numeric(as.character...
/Plot/Barplot+Forest.R
no_license
XingyiGuo/CRC_early-onset
R
false
false
4,621
r
## Figure 1: barplot #### top genes ###### out.m<-read.table("GENIE_DiffGENE_EarlyvsTypical_CRC_02192021-MSS-ALL.txt",head=TRUE,sep="\t") out.m<-as.data.frame(out.m) out.m <- out.m[out.m$P < 0.05,] out.mbar<-out.m[,8:10] rownames(out.mbar)<-out.m$Gene #out.mbar<-out.mbar[,-(1:2)] #out.mbar$V2 <- as.numeric(as.character...
rm(list=ls(all=TRUE)) graphics.off() # First clear the workspace library(psych) library(lm.beta) library(rgl) library(tidyverse) library(gridExtra) library(lsr) library(MVA) library(ggplot2) library(car) # Load packages data = read.csv("https://raw.githubusercontent.com/kekecsz/PSYP13_Data_analysis_cla...
/Home assignment1Z.R
no_license
hannapersson/PSYP13-Home-Assignment-ZK
R
false
false
9,090
r
rm(list=ls(all=TRUE)) graphics.off() # First clear the workspace library(psych) library(lm.beta) library(rgl) library(tidyverse) library(gridExtra) library(lsr) library(MVA) library(ggplot2) library(car) # Load packages data = read.csv("https://raw.githubusercontent.com/kekecsz/PSYP13_Data_analysis_cla...
makeMatrix <- function(initial_matrix = matrix()) { im <- NULL set <- function(m) { initma <<- m im <<- NULL } get <- function() { return(initma) } setinverse <- function(inverse) { im <<- inverse } getinverse <- function() { ...
/cachematrix.R
no_license
vickythakre/ProgrammingAssignment2
R
false
false
1,030
r
makeMatrix <- function(initial_matrix = matrix()) { im <- NULL set <- function(m) { initma <<- m im <<- NULL } get <- function() { return(initma) } setinverse <- function(inverse) { im <<- inverse } getinverse <- function() { ...
get_PRMS_GIS_varnames<-function(fname) { ## INPUT: name of PRMS GIS file ## OUTPUT: list with variable names # open file connection f <- file(fname, open="rt") var_txt <- character() num_vars <- 0 inheader <- FALSE n <- 0 repeat { n <- n + 1 if(n>512) break() txt <- scan(f, what=...
/R/read_prms_GIS.R
permissive
smwesten-usgs/prmsParameterizer
R
false
false
1,137
r
get_PRMS_GIS_varnames<-function(fname) { ## INPUT: name of PRMS GIS file ## OUTPUT: list with variable names # open file connection f <- file(fname, open="rt") var_txt <- character() num_vars <- 0 inheader <- FALSE n <- 0 repeat { n <- n + 1 if(n>512) break() txt <- scan(f, what=...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/VSEplot.R \name{VSEplot} \alias{VSEplot} \title{VSEplot} \usage{ VSEplot(data, padj = 0.01, ...) } \arguments{ \item{data}{A list of matrices outputted by the function VariantSetEnrichment} \item{padj}{Bonferroni adjusted p-value cutoff. Def...
/man/VSEplot.Rd
no_license
cran/VSE
R
false
true
681
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/VSEplot.R \name{VSEplot} \alias{VSEplot} \title{VSEplot} \usage{ VSEplot(data, padj = 0.01, ...) } \arguments{ \item{data}{A list of matrices outputted by the function VariantSetEnrichment} \item{padj}{Bonferroni adjusted p-value cutoff. Def...
library(h2o) h2o.init() # Import a sample binary outcome train/test set into H2O train <- h2o.importFile("https://raw.githubusercontent.com/caiomsouza/ml-open-datasets/master/csv-dataset/kaggle-santander-train.csv") test <- h2o.importFile("https://raw.githubusercontent.com/caiomsouza/ml-open-datasets/master/csv-da...
/AutoML/h2o_automl_kaggle.R
no_license
AnyaRum/PWorld17
R
false
false
1,135
r
library(h2o) h2o.init() # Import a sample binary outcome train/test set into H2O train <- h2o.importFile("https://raw.githubusercontent.com/caiomsouza/ml-open-datasets/master/csv-dataset/kaggle-santander-train.csv") test <- h2o.importFile("https://raw.githubusercontent.com/caiomsouza/ml-open-datasets/master/csv-da...
library(plotrix) ### Name: pie3D.labels ### Title: Display labels on a 3D pie chart ### Aliases: pie3D.labels ### Keywords: misc ### ** Examples pieval<-c(2,4,6,8) bisectors<-pie3D(pieval,explode=0.1,main="3D PIE OPINIONS") pielabels<- c("We hate\n pies","We oppose\n pies","We don't\n care","We just love pie...
/data/genthat_extracted_code/plotrix/examples/pie3D.labels.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
369
r
library(plotrix) ### Name: pie3D.labels ### Title: Display labels on a 3D pie chart ### Aliases: pie3D.labels ### Keywords: misc ### ** Examples pieval<-c(2,4,6,8) bisectors<-pie3D(pieval,explode=0.1,main="3D PIE OPINIONS") pielabels<- c("We hate\n pies","We oppose\n pies","We don't\n care","We just love pie...
# Load libraries x <- c('scales', 'gridExtra', 'tidyverse', 'readxl', 'dummies', 'plotly', 'broom') lapply(x, require, character.only = TRUE) # Load data df <- read_csv('jp_map.csv') # Fit a Diminishing Return Curve to the points ## 1. This function returns the sum of squared error between ## the original point ...
/drc_jp.R
no_license
nikhilkaul1234/attribution-master
R
false
false
4,764
r
# Load libraries x <- c('scales', 'gridExtra', 'tidyverse', 'readxl', 'dummies', 'plotly', 'broom') lapply(x, require, character.only = TRUE) # Load data df <- read_csv('jp_map.csv') # Fit a Diminishing Return Curve to the points ## 1. This function returns the sum of squared error between ## the original point ...
library(targets) # devtools::install_github("ropensci/targets") tar_option_set( packages = c( "tidyverse", "icedisas", # devtools::install_github("awconway/icedisas") "gtsummary", "gt" ) ) list( tar_target( data_raw, read_csv("https://raw.githubusercontent.com/awconway/hfnosedrct/6b6374...
/_targets.R
permissive
awconway/icedisas
R
false
false
3,491
r
library(targets) # devtools::install_github("ropensci/targets") tar_option_set( packages = c( "tidyverse", "icedisas", # devtools::install_github("awconway/icedisas") "gtsummary", "gt" ) ) list( tar_target( data_raw, read_csv("https://raw.githubusercontent.com/awconway/hfnosedrct/6b6374...
# This code corresponds to Fig S10 in Alexander et al. # It calcualtes statistics presented in the main results text # 1. Loading necessary libraries library(tidyverse) # 2. Setwd setwd("chickadee/output/") # 3. Reading in data (tab delimited), dropping last blank row temp <- read_tsv("../data/Table_S1.txt") temp <-...
/chickadee/scripts/Fig_S10_stats_presented_in_text.R
permissive
laninsky/project_logs
R
false
false
3,125
r
# This code corresponds to Fig S10 in Alexander et al. # It calcualtes statistics presented in the main results text # 1. Loading necessary libraries library(tidyverse) # 2. Setwd setwd("chickadee/output/") # 3. Reading in data (tab delimited), dropping last blank row temp <- read_tsv("../data/Table_S1.txt") temp <-...
% Copyright 2016-2018 Lingfei Wang % % This file is part of Findr. % % Findr is free software: you can redistribute it and/or modify % it under the terms of the GNU Affero General Public License as published by % the Free Software Foundation, either version 3 of the License, or % (at your option) any later version. %...
/findr/man/findr.pijs_gassist_pv.Rd
no_license
junghyunJJ/findr-R
R
false
false
3,838
rd
% Copyright 2016-2018 Lingfei Wang % % This file is part of Findr. % % Findr is free software: you can redistribute it and/or modify % it under the terms of the GNU Affero General Public License as published by % the Free Software Foundation, either version 3 of the License, or % (at your option) any later version. %...
\name{kernel2dmeitsjer} \alias{kernel2dmeitsjer} \title{ Create a Kernel Matrix } \description{ Create a kernel matrix to be used in a 2-D convolution smooth (e.g., using kernel2dsmooth). } \usage{ kernel2dmeitsjer(type = "gauss", ...) } \arguments{ \item{type}{ character name of the kernel to be created. } \item{\...
/man/kernel2dmeitsjer.Rd
no_license
cran/smoothie
R
false
false
15,212
rd
\name{kernel2dmeitsjer} \alias{kernel2dmeitsjer} \title{ Create a Kernel Matrix } \description{ Create a kernel matrix to be used in a 2-D convolution smooth (e.g., using kernel2dsmooth). } \usage{ kernel2dmeitsjer(type = "gauss", ...) } \arguments{ \item{type}{ character name of the kernel to be created. } \item{\...
# Deliverable 1 Mecha_car <- read.csv(file='MechaCar_mpg.csv',check.names=F,stringsAsFactors = F) lm(mpg ~ vehicle_length + vehicle_weight + spoiler_angle + ground_clearance + AWD,data=Mecha_car) #generated multiple linear regression model summary(lm(mpg ~ vehicle_length + vehicle_weight + spoiler_angle + ...
/MechaCarChallenge.R
no_license
Salmanbasharat/MechaCar_Statistical_Analysis
R
false
false
1,300
r
# Deliverable 1 Mecha_car <- read.csv(file='MechaCar_mpg.csv',check.names=F,stringsAsFactors = F) lm(mpg ~ vehicle_length + vehicle_weight + spoiler_angle + ground_clearance + AWD,data=Mecha_car) #generated multiple linear regression model summary(lm(mpg ~ vehicle_length + vehicle_weight + spoiler_angle + ...
wav <- function(we,me){ # Computes weighted average #we =vector of weights #me=vector of means me<-as.matrix(me) index<-!is.na(me) wa<-(we[index] %*%me[index])/sum(we[index]) return(wa) }
/quint/R/wav.R
no_license
ingted/R-Examples
R
false
false
219
r
wav <- function(we,me){ # Computes weighted average #we =vector of weights #me=vector of means me<-as.matrix(me) index<-!is.na(me) wa<-(we[index] %*%me[index])/sum(we[index]) return(wa) }
\name{tree.ppp} \alias{tree.ppp} \docType{data} \title{ Sample data for analizing the forest spatial structure. } \description{ A sample data of field survey, to help us understanding the method of forest spatial structure analysis.class is "ppp". } \usage{data("tree.ppp")} \details{ The function "ppp" in th...
/man/tree.ppp.Rd
no_license
cran/forestSAS
R
false
false
399
rd
\name{tree.ppp} \alias{tree.ppp} \docType{data} \title{ Sample data for analizing the forest spatial structure. } \description{ A sample data of field survey, to help us understanding the method of forest spatial structure analysis.class is "ppp". } \usage{data("tree.ppp")} \details{ The function "ppp" in th...
library(lmtest) library(parallel) library(MAST) library(MultiAssayExperiment) library(SummarizedExperiment) library(tidyverse) library(data.table) #################### This script contains wrappers used throughout other scripts, mostly to run #################### various Gene Differential Expression methods ## Wrappe...
/wrappers.R
permissive
GabrielHoffman/logistic_regresion_for_GDE
R
false
false
11,166
r
library(lmtest) library(parallel) library(MAST) library(MultiAssayExperiment) library(SummarizedExperiment) library(tidyverse) library(data.table) #################### This script contains wrappers used throughout other scripts, mostly to run #################### various Gene Differential Expression methods ## Wrappe...
## Getting full dataset data_full <- read.csv("./Data/household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"') data_full$Date <- as.Date(data_full$Date, format="%d/%m/%Y") ## Subsetting the data data <- subset(data_full, subset...
/plot1.R
no_license
RLI0602/ExData_Plotting1
R
false
false
714
r
## Getting full dataset data_full <- read.csv("./Data/household_power_consumption.txt", header=T, sep=';', na.strings="?", nrows=2075259, check.names=F, stringsAsFactors=F, comment.char="", quote='\"') data_full$Date <- as.Date(data_full$Date, format="%d/%m/%Y") ## Subsetting the data data <- subset(data_full, subset...
#' @title Student Answers for Specific Student #' #' @description Outputs a students random answers to a multiple choice exam in #' the form of a dataframe given the number of questions asked and total number #' of questions available. Answers can be from a to e, with NA's indicating the #' question was not answered. I...
/examMarks/R/generateAnswerSheets.R
no_license
ddavis3739/examMarks-R-package
R
false
false
12,761
r
#' @title Student Answers for Specific Student #' #' @description Outputs a students random answers to a multiple choice exam in #' the form of a dataframe given the number of questions asked and total number #' of questions available. Answers can be from a to e, with NA's indicating the #' question was not answered. I...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{MsigdbMapping} \alias{MsigdbMapping} \title{MsigdbMapping} \format{List} \source{ \url{AMARETTO} } \usage{ MsigdbMapping } \description{ A dataset containing all MSIGDB pathways and their descriptions. . } \keyword...
/man/MsigdbMapping.Rd
permissive
gevaertlab/AMARETTO
R
false
true
331
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{MsigdbMapping} \alias{MsigdbMapping} \title{MsigdbMapping} \format{List} \source{ \url{AMARETTO} } \usage{ MsigdbMapping } \description{ A dataset containing all MSIGDB pathways and their descriptions. . } \keyword...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mytable.R \name{mytable} \alias{mytable} \title{Cross Tabulation and Table Creation} \usage{ mytable(...) } \arguments{ \item{...}{Arguments provided to \code{\link{table}}.} } \value{ An array of integer values of class "table". } \descripti...
/man/mytable.Rd
no_license
JVAdams/jvamisc
R
false
true
502
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mytable.R \name{mytable} \alias{mytable} \title{Cross Tabulation and Table Creation} \usage{ mytable(...) } \arguments{ \item{...}{Arguments provided to \code{\link{table}}.} } \value{ An array of integer values of class "table". } \descripti...
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
/R/simer.r
permissive
ntduc11/SIMER
R
false
false
88,642
r
# Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
# Jake Yeung # Date of Creation: 2020-01-20 # File: ~/projects/scchic/scripts/rstudioserver_analysis/BM_all_merged/6-correct_variance_LDA_k4me3.R # K4me3 library(dplyr) library(tidyr) library(ggplot2) library(data.table) library(Matrix) library(topicmodels) library(JFuncs) library(scchicFuncs) library(hash) library...
/scripts/rstudioserver_analysis/BM_all_merged/6-correct_variance_LDA_k4me3_remove_plates_write_unenriched_and_stem.R
no_license
jakeyeung/sortchicAllScripts
R
false
false
8,127
r
# Jake Yeung # Date of Creation: 2020-01-20 # File: ~/projects/scchic/scripts/rstudioserver_analysis/BM_all_merged/6-correct_variance_LDA_k4me3.R # K4me3 library(dplyr) library(tidyr) library(ggplot2) library(data.table) library(Matrix) library(topicmodels) library(JFuncs) library(scchicFuncs) library(hash) library...
d <- generateFakeData() # compute small area estimates sae <- fSAE(y0 ~ x + area2, data=d$sam, area="area", popdata=d$Xpop, method="hybrid", keep.data=TRUE) # compute unit weights w <- uweights(sae, forTotal=TRUE) summary(w) # summary statistics plot(w) # histogram of weights # checks all.equ...
/R/examples/uweights.R
no_license
cran/hbsae
R
false
false
438
r
d <- generateFakeData() # compute small area estimates sae <- fSAE(y0 ~ x + area2, data=d$sam, area="area", popdata=d$Xpop, method="hybrid", keep.data=TRUE) # compute unit weights w <- uweights(sae, forTotal=TRUE) summary(w) # summary statistics plot(w) # histogram of weights # checks all.equ...
############################## # # # Group_project MSI Data # # Machine Learning # ############################## # Clear workspace rm(list=ls()) # Close any open graphics devices graphics.off() library(caret) library(kernlab) library(gmodels) library(openxlsx) ...
/MachineLearning/MSI/MSI_AB_50_Iteration.R
permissive
saha-19/FreshAPI
R
false
false
19,675
r
############################## # # # Group_project MSI Data # # Machine Learning # ############################## # Clear workspace rm(list=ls()) # Close any open graphics devices graphics.off() library(caret) library(kernlab) library(gmodels) library(openxlsx) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/EstHMMCop.R \name{EstHMMCop} \alias{EstHMMCop} \title{Estimation of bivariate Markov regime switching bivariate copula model} \usage{ EstHMMCop(y, reg, family, max_iter, eps) } \arguments{ \item{y}{(nx2) data matrix (observations or ...
/man/EstHMMCop.Rd
no_license
cran/HMMcopula
R
false
true
1,658
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/EstHMMCop.R \name{EstHMMCop} \alias{EstHMMCop} \title{Estimation of bivariate Markov regime switching bivariate copula model} \usage{ EstHMMCop(y, reg, family, max_iter, eps) } \arguments{ \item{y}{(nx2) data matrix (observations or ...
####################################################### # # library(splm) library(dplyr) # # rm(list=ls()) Pdata <- read.csv("_dataW04/PanelData.csv") str(Pdata) summary(Pdata) # # ### Data # # Pdata$EUR_HAB ... Pdata$PPS_HAB_EU - GDP per capita, etc. # # Pdata$U_pc ... nemployment % # # Pdata$A_...
/Week_05/W4_R_15_Spatial_panel.R
no_license
jfsantosm/4EK417
R
false
false
6,891
r
####################################################### # # library(splm) library(dplyr) # # rm(list=ls()) Pdata <- read.csv("_dataW04/PanelData.csv") str(Pdata) summary(Pdata) # # ### Data # # Pdata$EUR_HAB ... Pdata$PPS_HAB_EU - GDP per capita, etc. # # Pdata$U_pc ... nemployment % # # Pdata$A_...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/plot.twitterdat.R \name{plot.twitterdat} \alias{plot.twitterdat} \title{plot method for twitterdat} \usage{ \method{plot}{twitterdat}(x, ...) } \arguments{ \item{x}{data to be plotted} } \description{ plot method for twitterdat }
/man/plot.twitterdat.Rd
no_license
petermeissner/twitter_analytics
R
false
false
317
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/plot.twitterdat.R \name{plot.twitterdat} \alias{plot.twitterdat} \title{plot method for twitterdat} \usage{ \method{plot}{twitterdat}(x, ...) } \arguments{ \item{x}{data to be plotted} } \description{ plot method for twitterdat }
library(qtl) library(snowfall) load("/share/malooflab/Ruijuan/F2/QTL_analysis/data/LG.f2.after.crossover.43traits.Rdata") LG.f2.after.crossover <- sim.geno(LG.f2.after.crossover,step=1,n.draws=32) LG.f2.after.crossover <- calc.genoprob(LG.f2.after.crossover,step=1) sfInit(parallel = TRUE, cpus = 16) sfExport("LG.f2....
/F2/scantwo/scantwo_perm_6.2_new.R
no_license
leejimmy93/KIAT_cabernet
R
false
false
677
r
library(qtl) library(snowfall) load("/share/malooflab/Ruijuan/F2/QTL_analysis/data/LG.f2.after.crossover.43traits.Rdata") LG.f2.after.crossover <- sim.geno(LG.f2.after.crossover,step=1,n.draws=32) LG.f2.after.crossover <- calc.genoprob(LG.f2.after.crossover,step=1) sfInit(parallel = TRUE, cpus = 16) sfExport("LG.f2....
library(knitr) knit("Simulation_scalar_function_scalar.Rmd")
/Simulations/Model_based_Simulation/gypsie/sfs_simulation/Simulation_scalar_function_scalar.R
no_license
ywebbvar/functional_mediation
R
false
false
60
r
library(knitr) knit("Simulation_scalar_function_scalar.Rmd")
## this function constructs a scored gene network that will be used for searching gene modules ## Yuanlong LIU ## 08-12-2017 ## updated 05-01-2018 construct_scored_net <- function( gene_network_data, interaction_indices, weight_index=NULL, gene_ps, gene_scores, genes2exclude = NULL ) { if( !missing( g...
/SigMod_v2/full/R/construct_scored_net.R
no_license
SafiaSafa/stage
R
false
false
4,842
r
## this function constructs a scored gene network that will be used for searching gene modules ## Yuanlong LIU ## 08-12-2017 ## updated 05-01-2018 construct_scored_net <- function( gene_network_data, interaction_indices, weight_index=NULL, gene_ps, gene_scores, genes2exclude = NULL ) { if( !missing( g...
methodDict <- data.table(keyword=c('glm', 'glmer', 'lmer', 'bayesglm','ridge', 'blmer'), lmMethod=c('GLMlike', 'LMERlike','LMERlike', 'BayesGLMlike','RidgeBGLMlike', 'bLMERlike'), implementsEbayes=c(TRUE, FALSE, FALSE, TRUE, TRUE, FALSE)) if(getRversion() >= "2.15.1")...
/R/zeroinf.R
no_license
lagzxadr/MAST
R
false
false
9,621
r
methodDict <- data.table(keyword=c('glm', 'glmer', 'lmer', 'bayesglm','ridge', 'blmer'), lmMethod=c('GLMlike', 'LMERlike','LMERlike', 'BayesGLMlike','RidgeBGLMlike', 'bLMERlike'), implementsEbayes=c(TRUE, FALSE, FALSE, TRUE, TRUE, FALSE)) if(getRversion() >= "2.15.1")...
library(glmnet) library(ggplot2) library(reshape2) library(BayesBridge) ######################## ## simulation example ######################## # Data Generate N = 50 theta = 5 x = rnorm(N,sd=10) X = as.matrix(data.frame(rep(1,N),x)) y = rnorm(N) + x*theta + 1 # y=1+5x+noise # Weighted Bootstrap T = 1000 theta_w =...
/oldwbb/WBB/WBB2.R
no_license
wiscstatman/optimizetointegrate
R
false
false
2,505
r
library(glmnet) library(ggplot2) library(reshape2) library(BayesBridge) ######################## ## simulation example ######################## # Data Generate N = 50 theta = 5 x = rnorm(N,sd=10) X = as.matrix(data.frame(rep(1,N),x)) y = rnorm(N) + x*theta + 1 # y=1+5x+noise # Weighted Bootstrap T = 1000 theta_w =...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ReadNclamp.R \name{SummariseSweepFile} \alias{SummariseSweepFile} \title{Extract summary information from an Nclamp/Igor Sweep File} \usage{ SummariseSweepFile(f, Verbose = FALSE) } \arguments{ \item{f}{path to an Nclamp/Igor PXP format sweep...
/man/SummariseSweepFile.Rd
no_license
cran/IgorR
R
false
true
803
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ReadNclamp.R \name{SummariseSweepFile} \alias{SummariseSweepFile} \title{Extract summary information from an Nclamp/Igor Sweep File} \usage{ SummariseSweepFile(f, Verbose = FALSE) } \arguments{ \item{f}{path to an Nclamp/Igor PXP format sweep...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/AgainStart.R \docType{data} \name{COWS} \alias{COWS} \title{Butterfat of Cows} \format{A data frame with 100 observations on the following 3 variables: \itemize{ \item \code{butterfat} (average butterfat percentage) \item \code{age} (...
/man/COWS.Rd
no_license
darokun/PASWR2
R
false
false
1,472
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/AgainStart.R \docType{data} \name{COWS} \alias{COWS} \title{Butterfat of Cows} \format{A data frame with 100 observations on the following 3 variables: \itemize{ \item \code{butterfat} (average butterfat percentage) \item \code{age} (...
# get names of installed packages packs <- installed.packages() exc <- names(packs[,'Package']) # get available package names av <- names(available.packages()[,1]) # create loooong string ins <- av[!av %in% exc] install.packages(ins)
/all_r_packages.R
no_license
Albertoafonsojunior/R-Programming-Language
R
false
false
246
r
# get names of installed packages packs <- installed.packages() exc <- names(packs[,'Package']) # get available package names av <- names(available.packages()[,1]) # create loooong string ins <- av[!av %in% exc] install.packages(ins)
#jscode <- "shinyjs.refresh = function() { location.reload(); }" #jscode <- "shinyjs.refresh = function() { location.reload(); }" project_specific_admin_FieldTrialIdentity_Modal <- div( div(id = "project_specific_admin_FieldTrialIdentity_Form", fluidRow( column(10, offset = 1, ...
/tabs/server/project_specific/administration/field_trial_identity.R
no_license
mkaranja/Banana-Tracker
R
false
false
2,255
r
#jscode <- "shinyjs.refresh = function() { location.reload(); }" #jscode <- "shinyjs.refresh = function() { location.reload(); }" project_specific_admin_FieldTrialIdentity_Modal <- div( div(id = "project_specific_admin_FieldTrialIdentity_Form", fluidRow( column(10, offset = 1, ...
## These two functions, makeCacheMatrix and cacheSolve, are ## a pair of functions which will calculate the inverse of a matrix ## and save it to a cache which can be recalled. ## makeCacheMatrix creates a special "matrix", which is really a list ## containing functions to ## (1) set the value of the matrix ## (2) g...
/cachematrix.R
no_license
evae2/ProgrammingAssignment2
R
false
false
2,592
r
## These two functions, makeCacheMatrix and cacheSolve, are ## a pair of functions which will calculate the inverse of a matrix ## and save it to a cache which can be recalled. ## makeCacheMatrix creates a special "matrix", which is really a list ## containing functions to ## (1) set the value of the matrix ## (2) g...
# Purpose: Run file for high frequency and data quality checks for the survey of public officials # Author: Brian Stacy # This file will run four R scripts in order. # Each file can be run independently, but you will be prompted for certain paths that may not be specified # This file will sequency the R scripts the co...
/Countries/Madagascar/2021/Public_Officials/01_data/01_public_officials_run.R
permissive
worldbank/GEPD
R
false
false
4,161
r
# Purpose: Run file for high frequency and data quality checks for the survey of public officials # Author: Brian Stacy # This file will run four R scripts in order. # Each file can be run independently, but you will be prompted for certain paths that may not be specified # This file will sequency the R scripts the co...
subject_train <- read.table("./UCI HAR Dataset/train/subject_train.txt", col.names="subject") label_train <- read.table("./UCI HAR Dataset/train/Y_train.txt", col.names="activity_id") features <- read.table("./UCI HAR Dataset/features.txt") data_train <- read.table("./UCI HAR Dataset/train/X_train.txt", col.names=featu...
/run_analysis.R
no_license
olga-demidova/Getdata_CourseProject
R
false
false
1,593
r
subject_train <- read.table("./UCI HAR Dataset/train/subject_train.txt", col.names="subject") label_train <- read.table("./UCI HAR Dataset/train/Y_train.txt", col.names="activity_id") features <- read.table("./UCI HAR Dataset/features.txt") data_train <- read.table("./UCI HAR Dataset/train/X_train.txt", col.names=featu...
library(tidyverse) library(gdata) library(hablar) library(naniar) reason_raw <- read.xls ("migration/data/tab-a-5.xls", sheet = 1, header = FALSE) # remove header/footer info rows reason_df <- reason_raw %>% .[6:54, 1:22] %>% as_tibble() %>% row_to_names(row_number = 1) %>% .[-c(1), -c(11)] # create tibble ...
/R/parse_reason.R
no_license
jessieou/migration
R
false
false
1,655
r
library(tidyverse) library(gdata) library(hablar) library(naniar) reason_raw <- read.xls ("migration/data/tab-a-5.xls", sheet = 1, header = FALSE) # remove header/footer info rows reason_df <- reason_raw %>% .[6:54, 1:22] %>% as_tibble() %>% row_to_names(row_number = 1) %>% .[-c(1), -c(11)] # create tibble ...
### Zeitreihe: Selbstwertgefühl library(tidyverse) library(dplyr) library(ggplot2) ## a) Mittelwerte der Variable "selfworth" für jedes Jahr bilden # Erstellen eines Datensatzes, der nur die beiden Variablen "selfworth" # und "year" enthält df1 <- data.frame(dfc$selfworth, dfc$year) View(df1) # Die Variablen "Sel...
/ANALYSIS/DATA/ts_selfworth.R
no_license
rafael-schuetz/Pareto
R
false
false
4,509
r
### Zeitreihe: Selbstwertgefühl library(tidyverse) library(dplyr) library(ggplot2) ## a) Mittelwerte der Variable "selfworth" für jedes Jahr bilden # Erstellen eines Datensatzes, der nur die beiden Variablen "selfworth" # und "year" enthält df1 <- data.frame(dfc$selfworth, dfc$year) View(df1) # Die Variablen "Sel...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_location_details.R \name{get_location_details} \alias{get_location_details} \title{Show location details} \usage{ get_location_details(location_id, api_key) } \arguments{ \item{location_id}{Location ID. (integer)} \item{api_key}{An activ...
/man/get_location_details.Rd
no_license
s-mohanasundaram/rgtmx
R
false
true
592
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/get_location_details.R \name{get_location_details} \alias{get_location_details} \title{Show location details} \usage{ get_location_details(location_id, api_key) } \arguments{ \item{location_id}{Location ID. (integer)} \item{api_key}{An activ...
####Complete Case Analysis QoL####### #patients that had responses for all time points #Summary Statistics tapply(completed$QoL_score, completed$timing_of_survey, mean) #0 1 3 #64.53901 63.12057 67.73050 ##Mean, minimum and maximum values of QoL and uncertainty for each age group tapply(completed$QoL...
/R96/Statistical_Program/complete_cases_analysis_qol.R
no_license
stilianoudakis/Biostatistical_Consulting_Lab
R
false
false
3,563
r
####Complete Case Analysis QoL####### #patients that had responses for all time points #Summary Statistics tapply(completed$QoL_score, completed$timing_of_survey, mean) #0 1 3 #64.53901 63.12057 67.73050 ##Mean, minimum and maximum values of QoL and uncertainty for each age group tapply(completed$QoL...
#' @title fun_name #' #' @description kolejna funkcja podmieniona #' #' @param param fun_name #' #' #' #' @export as.data.frame.complex<- function(params){ rap <- c("Czesc czesc tu Sebol nawija, Mordo nie ma gandy a ja wbijam klina", "Tutaj start, mega bujanka. Zaczynamy tutaj strefe jaranka",...
/R/as.data.frame.complex.R
no_license
granatb/RapeR
R
false
false
697
r
#' @title fun_name #' #' @description kolejna funkcja podmieniona #' #' @param param fun_name #' #' #' #' @export as.data.frame.complex<- function(params){ rap <- c("Czesc czesc tu Sebol nawija, Mordo nie ma gandy a ja wbijam klina", "Tutaj start, mega bujanka. Zaczynamy tutaj strefe jaranka",...
testlist <- list(score = NULL, id = NULL, item_score = integer(0), person_id = c(13750737L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, ...
/dexterMST/inst/testfiles/im_booklet_score/libFuzzer_im_booklet_score/im_booklet_score_valgrind_files/1612728196-test.R
no_license
akhikolla/updatedatatype-list1
R
false
false
531
r
testlist <- list(score = NULL, id = NULL, item_score = integer(0), person_id = c(13750737L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, 0L, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Multicast.R \name{dinvgamma} \alias{dinvgamma} \title{dinvgamma} \usage{ dinvgamma(x, shape, scale) } \arguments{ \item{x}{Scalar location to evaluate density} \item{shape}{Scalar shape parameter} \item{scale}{Scalar shape parameter} } \val...
/pkg/man/dinvgamma.Rd
no_license
desmarais-lab/MulticastNetwork
R
false
true
393
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Multicast.R \name{dinvgamma} \alias{dinvgamma} \title{dinvgamma} \usage{ dinvgamma(x, shape, scale) } \arguments{ \item{x}{Scalar location to evaluate density} \item{shape}{Scalar shape parameter} \item{scale}{Scalar shape parameter} } \val...
# ALBUM METHODS #' Get the metadata and tracklist for an album. #' #' Get the metadata and tracklist for an album on Last.fm using the album name or a musicbrainz id. #' Implementation of last.fm's \emph{album.getInfo} API method #' (\url{http://www.last.fm/api/show/album.getInfo}) #' #' @param artist The artist name....
/R/album.R
no_license
juyeongkim/lastfmr
R
false
false
4,556
r
# ALBUM METHODS #' Get the metadata and tracklist for an album. #' #' Get the metadata and tracklist for an album on Last.fm using the album name or a musicbrainz id. #' Implementation of last.fm's \emph{album.getInfo} API method #' (\url{http://www.last.fm/api/show/album.getInfo}) #' #' @param artist The artist name....
RLibrary = function( ... ) { #\\ used to (re)load libraries conveniently ll = unique(c(...)) pkgs = .packages(all.available = TRUE) pkgsLoaded = .packages() found = intersect( pkgs, ll ) if (length(found) > 0 ) { for ( pkg in found ) { # try( detach( paste("package", pkg, sep=":"), unload=TRUE,...
/R/RLibrary.r
permissive
PEDsnowcrab/aegis
R
false
false
1,032
r
RLibrary = function( ... ) { #\\ used to (re)load libraries conveniently ll = unique(c(...)) pkgs = .packages(all.available = TRUE) pkgsLoaded = .packages() found = intersect( pkgs, ll ) if (length(found) > 0 ) { for ( pkg in found ) { # try( detach( paste("package", pkg, sep=":"), unload=TRUE,...
# read only one row to get column names colNames <- read.csv("household_power_consumption.txt", sep=";", nrows=1) powerUse <- read.csv("household_power_consumption.txt", sep=";", skip=46*24*60, # skip the first 46 days nrows=3*24*60, # read in only 3 days to save RAM ...
/plot3.R
no_license
marhew/ExData_Plotting1
R
false
false
1,351
r
# read only one row to get column names colNames <- read.csv("household_power_consumption.txt", sep=";", nrows=1) powerUse <- read.csv("household_power_consumption.txt", sep=";", skip=46*24*60, # skip the first 46 days nrows=3*24*60, # read in only 3 days to save RAM ...
#Step 1: Download required package #Note: You only need to do this the first time! install.packages("openxlsx") #Step 2: Enter your variables filename <- "Plate map.xlsx" #Name of your plate map Excel file plate <- 384 #Number of wells in your plate (must be 384 or 96) folder <- "20181128" #Name of the folder where...
/Plate map to MS file/Plate map to MS file.R
no_license
maya123z/MassSpecFileHandler
R
false
false
2,476
r
#Step 1: Download required package #Note: You only need to do this the first time! install.packages("openxlsx") #Step 2: Enter your variables filename <- "Plate map.xlsx" #Name of your plate map Excel file plate <- 384 #Number of wells in your plate (must be 384 or 96) folder <- "20181128" #Name of the folder where...
\name{exportBatchInteractions2text} \alias{exportBatchInteractions2text} \alias{exportBatchInteractions2text,r3CseqInBatch-method} \title{export identified interaction regions to the tab separated format for replicates analysis} \description{ export interaction regions from RagedData to the tab separated format for...
/man/exportBatchInteractions2text.Rd
no_license
supatt-lab/r3Cseq
R
false
false
693
rd
\name{exportBatchInteractions2text} \alias{exportBatchInteractions2text} \alias{exportBatchInteractions2text,r3CseqInBatch-method} \title{export identified interaction regions to the tab separated format for replicates analysis} \description{ export interaction regions from RagedData to the tab separated format for...