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
spp2msom <- function(sim.obs){ n.substrat <- dim(attributes(sim.obs)$X.obs)[2] n.strat <- nrow(sim.obs) ns <- attr(sim.obs, "dims")["ns"] grid.t <- attr(sim.obs, "dims")["grid.t"] # 1) Label and sort rows of obs.arr according to stratum-substratum organization # Indicate which rows belong to which strata stratID...
/Scripts/SimFunctions/spp2msom.R
no_license
rBatt/trawl
R
false
false
3,169
r
spp2msom <- function(sim.obs){ n.substrat <- dim(attributes(sim.obs)$X.obs)[2] n.strat <- nrow(sim.obs) ns <- attr(sim.obs, "dims")["ns"] grid.t <- attr(sim.obs, "dims")["grid.t"] # 1) Label and sort rows of obs.arr according to stratum-substratum organization # Indicate which rows belong to which strata stratID...
# return Vect with corrected baseline math_sub_baseline <-function(Vect,baseline_hwm=5) { pacman::p_load(baseline) baseline.medianWindow(matrix(Vect,nrow = 1),hwm = baseline_hwm)$corrected[1,] } math_get_baseline <-function(Vect,baseline_hwm=5) { pacman::p_load(baseline) baseline.medianWindow(matrix(Vect,nrow ...
/R/Math.R
no_license
aquaflakes/fjComm
R
false
false
989
r
# return Vect with corrected baseline math_sub_baseline <-function(Vect,baseline_hwm=5) { pacman::p_load(baseline) baseline.medianWindow(matrix(Vect,nrow = 1),hwm = baseline_hwm)$corrected[1,] } math_get_baseline <-function(Vect,baseline_hwm=5) { pacman::p_load(baseline) baseline.medianWindow(matrix(Vect,nrow ...
twitter_paradox -> data n <- length(data$Followers) x <- c(1:n) max_y <- max(data$Followers) max_x <- length(data$Friend) plot(data$Followers, log="y", main="Twitter Friendship Paradox for my Sister\n(Follower Version)", xlab = "Followers", ylab = "Number of Followers (Log Scale)", ylim=range(1,max_y), axes = FALSE, ...
/a04/twitter.R
no_license
phvargas/cs532-s16
R
false
false
1,036
r
twitter_paradox -> data n <- length(data$Followers) x <- c(1:n) max_y <- max(data$Followers) max_x <- length(data$Friend) plot(data$Followers, log="y", main="Twitter Friendship Paradox for my Sister\n(Follower Version)", xlab = "Followers", ylab = "Number of Followers (Log Scale)", ylim=range(1,max_y), axes = FALSE, ...
map_chr <- function(.x, .f, ...) { vapply(.x, .f, ..., FUN.VALUE = character(1), USE.NAMES = FALSE) } map_lgl <- function(.x, .f, ...) { vapply(.x, .f, ..., FUN.VALUE = logical(1), USE.NAMES = FALSE) } str_trunc <- function(x, width) { if (nchar(x) <= width) { x } else { paste0(substr(x, 1, width - 3),...
/R/utils.R
permissive
tidyverse/rvest
R
false
false
1,424
r
map_chr <- function(.x, .f, ...) { vapply(.x, .f, ..., FUN.VALUE = character(1), USE.NAMES = FALSE) } map_lgl <- function(.x, .f, ...) { vapply(.x, .f, ..., FUN.VALUE = logical(1), USE.NAMES = FALSE) } str_trunc <- function(x, width) { if (nchar(x) <= width) { x } else { paste0(substr(x, 1, width - 3),...
for(i in c(0, 0.1, 0.2, 0.3)) { #ransam<-read.table(paste("mean1000X_PxPSSM_topScorer_distro_frm_REST_o_HsProteome_IUme",i,sep=""),sep="\t") ransam<-read.table(paste("mean1000X_LxPSSM_topScorer_distro_frm_REST_o_HsProteome_IUme",i,sep=""),sep="\t") dr<-density(ransam$V6,bw="SJ") xr<-hist(ransam$V6,breaks=15) xr$co...
/HsCNome2018/BioID/proteomewide_vs_bioid_score_distro_plotter_v2.R
no_license
nikhil-damle/BucketList
R
false
false
5,695
r
for(i in c(0, 0.1, 0.2, 0.3)) { #ransam<-read.table(paste("mean1000X_PxPSSM_topScorer_distro_frm_REST_o_HsProteome_IUme",i,sep=""),sep="\t") ransam<-read.table(paste("mean1000X_LxPSSM_topScorer_distro_frm_REST_o_HsProteome_IUme",i,sep=""),sep="\t") dr<-density(ransam$V6,bw="SJ") xr<-hist(ransam$V6,breaks=15) xr$co...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/table_output.R \name{Escribano_3} \alias{Escribano_3} \title{Escribano model 3} \usage{ Escribano_3(path = "C:/Users/akl/Dropbox/Economics/Final_Thesis/Thesis/Tables", country = "de") } \description{ Escribano model 3 }
/man/Escribano_3.Rd
no_license
DrRoad/powerfor
R
false
false
312
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/table_output.R \name{Escribano_3} \alias{Escribano_3} \title{Escribano model 3} \usage{ Escribano_3(path = "C:/Users/akl/Dropbox/Economics/Final_Thesis/Thesis/Tables", country = "de") } \description{ Escribano model 3 }
## Coursera EDA Assignment 1 ## Electric Power Consumption Sys.getlocale(category = "LC_TIME") Sys.setlocale("LC_TIME", "English") setwd("C:/Users/Michael/Documents/Coursera/EDA") ## dataset - missing values are coded as ? EPC2 <- read.table("household_power_consumption.txt", sep=";", ...
/plot3.R
no_license
modenthal/ExData_Plotting1
R
false
false
1,463
r
## Coursera EDA Assignment 1 ## Electric Power Consumption Sys.getlocale(category = "LC_TIME") Sys.setlocale("LC_TIME", "English") setwd("C:/Users/Michael/Documents/Coursera/EDA") ## dataset - missing values are coded as ? EPC2 <- read.table("household_power_consumption.txt", sep=";", ...
<<<<<<< HEAD ?hist x=1 y=0 x=rep(1, each=7)#repeat numbers in a vector y=rep(0,each=3) y hist(x,y) head(attitude) hist(attitude$complaints) x z=c(x,y)#combine 2 vectors z hist(z)#hist of 1's and 0's a=rep(1, each=700)#repeat numbers in a vector b=rep(0,each=300) c=c(a,b) hist(c) #MAX LIKELIHOOD OF COIN FLIPS curve(db...
/Maximum Likelihood.R
no_license
silviodaniel/Tutorials-R-Python-Linux
R
false
false
1,326
r
<<<<<<< HEAD ?hist x=1 y=0 x=rep(1, each=7)#repeat numbers in a vector y=rep(0,each=3) y hist(x,y) head(attitude) hist(attitude$complaints) x z=c(x,y)#combine 2 vectors z hist(z)#hist of 1's and 0's a=rep(1, each=700)#repeat numbers in a vector b=rep(0,each=300) c=c(a,b) hist(c) #MAX LIKELIHOOD OF COIN FLIPS curve(db...
context("Test MAVB") test_that("Short test of MAVB running for CRAN", { N <- 1000 G <- 10 x <- rnorm(N) g <- sample(1:G, N, replace = T) g2 <- sample(1:G, N, replace = T) alpha <- rnorm(G) alpha2 <- rnorm(G) y <- rbinom(n = N, size = 1, prob = plogis(-1 + x + alpha[g] + alpha2[g])) est_glmer <- sup...
/tests/testthat/test-MAVB.R
no_license
gonzalezrostani/vglmer
R
false
false
2,234
r
context("Test MAVB") test_that("Short test of MAVB running for CRAN", { N <- 1000 G <- 10 x <- rnorm(N) g <- sample(1:G, N, replace = T) g2 <- sample(1:G, N, replace = T) alpha <- rnorm(G) alpha2 <- rnorm(G) y <- rbinom(n = N, size = 1, prob = plogis(-1 + x + alpha[g] + alpha2[g])) est_glmer <- sup...
library(wmtsa) ### Name: nile ### Title: Yearly Nile river level minima ### Aliases: nile ### Keywords: ts ### ** Examples plot(nile)
/data/genthat_extracted_code/wmtsa/examples/nile.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
141
r
library(wmtsa) ### Name: nile ### Title: Yearly Nile river level minima ### Aliases: nile ### Keywords: ts ### ** Examples plot(nile)
#' Geometry class (S4) and methods #' #' A \code{geom} stores a table of points, a table of feature to which the #' points are associated and a table of groups, to which features are #' associated. A \code{geom} can be spatial, but is not by default. A #' \code{geom} can either have absolute or relative values, where r...
/geometr/R/geom.R
no_license
akhikolla/TestedPackages-NoIssues
R
false
false
14,607
r
#' Geometry class (S4) and methods #' #' A \code{geom} stores a table of points, a table of feature to which the #' points are associated and a table of groups, to which features are #' associated. A \code{geom} can be spatial, but is not by default. A #' \code{geom} can either have absolute or relative values, where r...
# TODO: Add comment # # Author: Brad # File: Hedge_Fund_Databases_Eurekahedge_Expand_Fields_part3.R # Version: 1.0 # Date: 11.10.2014 # Purpose: Expand Eurekahedge Fields # ############################################################################### ##########################################################...
/Hedge_Fund_Databases_Eurekahedge_Expand_Fields_part3.R
no_license
sbraddaughdrill/Hedge_Fund_Databases
R
false
false
28,964
r
# TODO: Add comment # # Author: Brad # File: Hedge_Fund_Databases_Eurekahedge_Expand_Fields_part3.R # Version: 1.0 # Date: 11.10.2014 # Purpose: Expand Eurekahedge Fields # ############################################################################### ##########################################################...
library(plotfunctions) ### Name: marginDensityPlot ### Title: Plot density of distribution in margins of the plot. ### Aliases: marginDensityPlot ### ** Examples # density of a random sample from normal distribution: val1 <- qnorm(ppoints(500)) val2 <- qt(ppoints(500), df = 2) dens1 <- density(val1) dens2 <- densit...
/data/genthat_extracted_code/plotfunctions/examples/marginDensityPlot.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
1,662
r
library(plotfunctions) ### Name: marginDensityPlot ### Title: Plot density of distribution in margins of the plot. ### Aliases: marginDensityPlot ### ** Examples # density of a random sample from normal distribution: val1 <- qnorm(ppoints(500)) val2 <- qt(ppoints(500), df = 2) dens1 <- density(val1) dens2 <- densit...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/monarchr.R \name{monarch_api} \alias{monarch_api} \title{Gets response from monarch API.} \usage{ monarch_api(url) } \arguments{ \item{url}{URL as a string.} } \value{ A monarch_api S3 class with content as R objects, the url used for the que...
/man/monarch_api.Rd
no_license
charlieccarey/monarchr
R
false
true
603
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/monarchr.R \name{monarch_api} \alias{monarch_api} \title{Gets response from monarch API.} \usage{ monarch_api(url) } \arguments{ \item{url}{URL as a string.} } \value{ A monarch_api S3 class with content as R objects, the url used for the que...
# Make codeml_results csv same with codeml_results_split_COMB results = read.table("codeml_results.csv", header=FALSE, sep=",") names(results) <- c("index","CAZy_Family","lnL0","tdir","lnL1","LRT","p.value") results$index <- NULL new_results <- results[c("CAZy_Family", "tdir", "lnL0", "lnL1", "LRT", "p.value")] head(ne...
/bin/bind.R
no_license
ex208/Positive_Selection_Pipeline
R
false
false
1,186
r
# Make codeml_results csv same with codeml_results_split_COMB results = read.table("codeml_results.csv", header=FALSE, sep=",") names(results) <- c("index","CAZy_Family","lnL0","tdir","lnL1","LRT","p.value") results$index <- NULL new_results <- results[c("CAZy_Family", "tdir", "lnL0", "lnL1", "LRT", "p.value")] head(ne...
#### Introdução ao R e Rstudio -------------- #1# Crie dois objetos, x1 e x2, composto pelos cinco primeiros números ímpares # e pares, respectivamente. DIca: função seq(). x1 = seq(1, length.out = 5, by = 2) # alt shift seta baixo x2 = seq(0, length.out = 5, by = 2) x1 x2 #2# Calcule a soma dos elementos de x1 sum(...
/aula_1_exercicios.R
no_license
sillasgonzaga/turma_ibpad_cdr
R
false
false
3,961
r
#### Introdução ao R e Rstudio -------------- #1# Crie dois objetos, x1 e x2, composto pelos cinco primeiros números ímpares # e pares, respectivamente. DIca: função seq(). x1 = seq(1, length.out = 5, by = 2) # alt shift seta baixo x2 = seq(0, length.out = 5, by = 2) x1 x2 #2# Calcule a soma dos elementos de x1 sum(...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/HP.mod.R \name{like.resamp} \alias{like.resamp} \title{Local Optimums and Covariance from the optimizer step.} \usage{ like.resamp(K, log.like.0, opt.cov.d, opt.mu.d, d.keep, d = 10, theta.dim = 9) } \arguments{ \item{K}{Number of...
/man/like.resamp.Rd
no_license
cran/strandCet
R
false
true
2,241
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/HP.mod.R \name{like.resamp} \alias{like.resamp} \title{Local Optimums and Covariance from the optimizer step.} \usage{ like.resamp(K, log.like.0, opt.cov.d, opt.mu.d, d.keep, d = 10, theta.dim = 9) } \arguments{ \item{K}{Number of...
############# Simple model for Lao pf elimination ########### #setwd("C:/Users/lisa/Dropbox/0_Backup_Ddrive/Data_Current/Lorenz") library(deSolve) library(TSA) # define the number of weeks to run the model dt<-1/12 startyear<-2016 stopyear<-2021 maxt<-stopyear-startyear times <- seq(0, maxt, by = dt) tsteps<-le...
/LorenzLaoModel17122017_forSai.R
no_license
MAEMOD-MORU/lmrm
R
false
false
19,184
r
############# Simple model for Lao pf elimination ########### #setwd("C:/Users/lisa/Dropbox/0_Backup_Ddrive/Data_Current/Lorenz") library(deSolve) library(TSA) # define the number of weeks to run the model dt<-1/12 startyear<-2016 stopyear<-2021 maxt<-stopyear-startyear times <- seq(0, maxt, by = dt) tsteps<-le...
# ------------------------------------------------------------------ # The Computer Language Shootout # http://shootout.alioth.debian.org/ # # Contributed by Leo Osvald # ------------------------------------------------------------------ codes <- c( "A", "C", "G", "T", "U", "M", "R", "W", "S", "Y", "K", "V...
/benchmarks/shootout/reversecomplement/reversecomplement.r
no_license
reactorlabs/rjit
R
false
false
1,036
r
# ------------------------------------------------------------------ # The Computer Language Shootout # http://shootout.alioth.debian.org/ # # Contributed by Leo Osvald # ------------------------------------------------------------------ codes <- c( "A", "C", "G", "T", "U", "M", "R", "W", "S", "Y", "K", "V...
# Run the analysis -> creates the tiny data set and saves it under "tiny.txt" # Reads the base sets (files with begining by X) in an optimal way # * filePath: path of the file # * filteredFeatures: ids of the features to be extracted # * features: all features names readBaseSet <- function(filePath, filteredFeatures,...
/run_analysis.R
no_license
MVDinesh/GettingnCleaningData-Project
R
false
false
3,455
r
# Run the analysis -> creates the tiny data set and saves it under "tiny.txt" # Reads the base sets (files with begining by X) in an optimal way # * filePath: path of the file # * filteredFeatures: ids of the features to be extracted # * features: all features names readBaseSet <- function(filePath, filteredFeatures,...
\name{parse_taxa} \alias{parse_taxa} \title{ Parsing scientific names for a species } \description{ Parsing scientif names to FAMILY,GENUS, SPECIES, AUTHOR_OF_SPECIES, INFRASPECIFIC_RANK, INFRASPECIFIC_EPITHET, AUTHOR_OF_INFRASPECIFIC_RANK } \usage{ parse_taxa(taxa) } \arguments{ \item{taxa}{ A string representing s...
/man/parse_taxa.Rd
no_license
rededsky/herblabel
R
false
false
1,955
rd
\name{parse_taxa} \alias{parse_taxa} \title{ Parsing scientific names for a species } \description{ Parsing scientif names to FAMILY,GENUS, SPECIES, AUTHOR_OF_SPECIES, INFRASPECIFIC_RANK, INFRASPECIFIC_EPITHET, AUTHOR_OF_INFRASPECIFIC_RANK } \usage{ parse_taxa(taxa) } \arguments{ \item{taxa}{ A string representing s...
testlist <- list(g = -4.55634347060681e+100, z = -4.5563408326049e+100) result <- do.call(hmlasso:::softThresholdC,testlist) str(result)
/hmlasso/inst/testfiles/softThresholdC/libFuzzer_softThresholdC/softThresholdC_valgrind_files/1609897586-test.R
no_license
akhikolla/newtestfiles-2
R
false
false
136
r
testlist <- list(g = -4.55634347060681e+100, z = -4.5563408326049e+100) result <- do.call(hmlasso:::softThresholdC,testlist) str(result)
# problem 1.1 gerber = read.csv("gerber.csv") str(gerber) summary(gerber) voting = table(gerber$voting) prop.table(voting) voting_civic = table(gerber$voting[gerber$civicduty == 1]) prop.table(voting_civic) voting_hawthorne = table(gerber$voting[gerber$hawthorne == 1]) prop.table(voting_hawthorne) voting_self = ta...
/theAnalyticsEdge/Unit04_Trees/Unit4_Vote.R
no_license
wanlipu/dsmain
R
false
false
2,747
r
# problem 1.1 gerber = read.csv("gerber.csv") str(gerber) summary(gerber) voting = table(gerber$voting) prop.table(voting) voting_civic = table(gerber$voting[gerber$civicduty == 1]) prop.table(voting_civic) voting_hawthorne = table(gerber$voting[gerber$hawthorne == 1]) prop.table(voting_hawthorne) voting_self = ta...
library(tidyverse) library(magrittr) ## create affiliate networks for all host-par pairs rm(list = ls()) # load data gmpd_obs <- read.csv("./data/modified/gmpd_zooscored.csv", row.names = 1, stringsAsFactors = F) # gmpd_obs <- read.csv("./data/modified/gmpd_obs.csv", row.names = 1, stringsAsFactors = F) # AL...
/scripts/allpairsnetwork.R
no_license
gititgrrrl/PROTraits
R
false
false
4,237
r
library(tidyverse) library(magrittr) ## create affiliate networks for all host-par pairs rm(list = ls()) # load data gmpd_obs <- read.csv("./data/modified/gmpd_zooscored.csv", row.names = 1, stringsAsFactors = F) # gmpd_obs <- read.csv("./data/modified/gmpd_obs.csv", row.names = 1, stringsAsFactors = F) # AL...
####### Part 3 Unsupervised Learning ####### #first read in the word matrix library(Matrix) word = readMM("sparse_word_feature_matrix.mtx") #will be a dataframe any(is.na(word))# and other features to check legitimacy of word matrix wordFreq = apply(word[1:100],2,function(x) sum(x!=0)) hist(wordFreq) #identify words ...
/Modern Statistical Prediction and Machine Learning/finalproj1.R
no_license
kyen89/MyProject
R
false
false
6,957
r
####### Part 3 Unsupervised Learning ####### #first read in the word matrix library(Matrix) word = readMM("sparse_word_feature_matrix.mtx") #will be a dataframe any(is.na(word))# and other features to check legitimacy of word matrix wordFreq = apply(word[1:100],2,function(x) sum(x!=0)) hist(wordFreq) #identify words ...
#' Make model data from "raw" data #' #' @param rawData The data to convert. Currently methods only exist for #' data.frame, but rcData objects may be added in the future. #' @param model (optional) A model from which to extract transformation #' information. #' @param flowTransform Which transformation to use (link ar...
/R/makeModelData.R
no_license
markwh/rcmodel
R
false
false
10,319
r
#' Make model data from "raw" data #' #' @param rawData The data to convert. Currently methods only exist for #' data.frame, but rcData objects may be added in the future. #' @param model (optional) A model from which to extract transformation #' information. #' @param flowTransform Which transformation to use (link ar...
/Doutorado/Chapter-1/Analysis/Field and VIs/Scripts de processamentos/Sumario_media_ano.R
no_license
Eduardoqm/Science-Repository
R
false
false
1,692
r
# This is file ../spam/R/precmat.R # This file is part of the spam package, # http://www.math.uzh.ch/furrer/software/spam/ # by Reinhard Furrer [aut, cre], Florian Gerber [ctb] # construct various precision matrices precmat <- function(n, season=12, m=n, A=NULL, order=1, ... , type="RW1") { avtype <-...
/spam/R/precmat.R
no_license
ingted/R-Examples
R
false
false
3,760
r
# This is file ../spam/R/precmat.R # This file is part of the spam package, # http://www.math.uzh.ch/furrer/software/spam/ # by Reinhard Furrer [aut, cre], Florian Gerber [ctb] # construct various precision matrices precmat <- function(n, season=12, m=n, A=NULL, order=1, ... , type="RW1") { avtype <-...
# Create 10k transcript TSS K27 annotation library(here) maindir = here() source(file.path(maindir,"Scripts","global_var.R")) annotDir = file.path(maindir, "annotation") # Load Transcript 10k annotation (52138 10k regions around transcript TSS) annot_transcript_10k = read.table(gzfile(file.path(annotDir, "gencode.v34...
/Scripts/scChIPseq/transcript_10K_K27_annotation.R
no_license
vallotlab/ChemoPersistance
R
false
false
8,398
r
# Create 10k transcript TSS K27 annotation library(here) maindir = here() source(file.path(maindir,"Scripts","global_var.R")) annotDir = file.path(maindir, "annotation") # Load Transcript 10k annotation (52138 10k regions around transcript TSS) annot_transcript_10k = read.table(gzfile(file.path(annotDir, "gencode.v34...
#Load packages library(tidyverse) library(tidytext) library(widyr) library(igraph) library(ggraph) #Get the data tuesdata <- tidytuesdayR::tt_load(2021, week = 13) roll_calls <- tuesdata$roll_calls #Unnest desc column and remove common words roll_calls %>% unnest_tokens(word, descr) %>% anti_join(stop_words)...
/2021/W13_UN_Votes/W13_UN_Votes.R
no_license
dimbage/R_Tidytuesday
R
false
false
1,461
r
#Load packages library(tidyverse) library(tidytext) library(widyr) library(igraph) library(ggraph) #Get the data tuesdata <- tidytuesdayR::tt_load(2021, week = 13) roll_calls <- tuesdata$roll_calls #Unnest desc column and remove common words roll_calls %>% unnest_tokens(word, descr) %>% anti_join(stop_words)...
#' Return data for given year or sequence of years #' #' \code{fars_read_years} searches your working directory for files for the #' corresponding Fatality Analysis Reports for the years you input and returns a #' combined table with all the data for the years you input #' #' @param years The input years either as list...
/R/fars_read_years.R
no_license
maxeysholdt/courserapackage
R
false
false
1,137
r
#' Return data for given year or sequence of years #' #' \code{fars_read_years} searches your working directory for files for the #' corresponding Fatality Analysis Reports for the years you input and returns a #' combined table with all the data for the years you input #' #' @param years The input years either as list...
data(spas) # example Spas-Zagorye data is included with grwat package # separate sep = gr_separate(spas, params = gr_get_params(reg = 'center')) test_that("Period plot has the correct content", { # One year plt = suppressWarnings(gr_plot_sep(sep, 1978)) expect_type(plt, 'list') expect_s3_class(plt[[1]], 'g...
/tests/testthat/test-gr_plot_sep.R
permissive
tsamsonov/grwat
R
false
false
1,327
r
data(spas) # example Spas-Zagorye data is included with grwat package # separate sep = gr_separate(spas, params = gr_get_params(reg = 'center')) test_that("Period plot has the correct content", { # One year plt = suppressWarnings(gr_plot_sep(sep, 1978)) expect_type(plt, 'list') expect_s3_class(plt[[1]], 'g...
testlist <- list(A = structure(c(2.31584307451017e+77, 1.0442506772823e-305, 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/1613112216-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
256
r
testlist <- list(A = structure(c(2.31584307451017e+77, 1.0442506772823e-305, 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)
#' Compare two biclusterings or a pair of partition matrices #' #' @param bc1 the first biclustering or partition matrix. Must be either of class #' \code{biclustermd} or \code{matrix}. #' @param bc2 the second biclustering or partition matrix. Must be either of class #' \code{biclustermd} or \code{matrix}. #' #' @...
/R/compare_biclusters.R
no_license
jreisner/biclustermd
R
false
false
2,263
r
#' Compare two biclusterings or a pair of partition matrices #' #' @param bc1 the first biclustering or partition matrix. Must be either of class #' \code{biclustermd} or \code{matrix}. #' @param bc2 the second biclustering or partition matrix. Must be either of class #' \code{biclustermd} or \code{matrix}. #' #' @...
#' Return total blup of breedR #' #' @description #' \code{pedigree_plot} pedigree plot #' @param mod: pedigree_plot #' #' @examples #' ID <- c(1,2,3,4,5) #' Sire <- c(0,0,1,1,3) #' Dam <- c(0,0,0,2,2) #' ped = data.frame(ID,Sire,Dam) #' ped #' pedigree_plot(ped) #' pedigree_plot(ped,simple = T) pedigree_plot <- func...
/R/pedigree_plot.R
no_license
dengfei2013/learnasreml
R
false
false
494
r
#' Return total blup of breedR #' #' @description #' \code{pedigree_plot} pedigree plot #' @param mod: pedigree_plot #' #' @examples #' ID <- c(1,2,3,4,5) #' Sire <- c(0,0,1,1,3) #' Dam <- c(0,0,0,2,2) #' ped = data.frame(ID,Sire,Dam) #' ped #' pedigree_plot(ped) #' pedigree_plot(ped,simple = T) pedigree_plot <- func...
rm(list = ls()) setwd("Desktop/new_PCA/script/") x <- 1500000 y <- .1 # select a UCSC genome with ucscGenomes() library (rtracklayer) mySession = browserSession("UCSC") genome(mySession) <- "canFam2" tbl.gap <- getTable(ucscTableQuery(mySession, track="gap",table="gap")) ass <- getTable(ucscTableQuery(mySessio...
/Genome_break.R
no_license
ReubenBuck/Repeat_Distributions
R
false
false
1,232
r
rm(list = ls()) setwd("Desktop/new_PCA/script/") x <- 1500000 y <- .1 # select a UCSC genome with ucscGenomes() library (rtracklayer) mySession = browserSession("UCSC") genome(mySession) <- "canFam2" tbl.gap <- getTable(ucscTableQuery(mySession, track="gap",table="gap")) ass <- getTable(ucscTableQuery(mySessio...
source("env.R") source("util.R") load.monthly_link_additions = tsv_loader( paste(DATA_DIR, "th_monthly_link_additions.tsv", sep="/"), "MONTHLY_LINK_ADDITIONS", function(dt){ old_month = dt$month dt$month = as.Date(paste(old_month, "01", sep="-")) dt } )
/R/loader/monthly_link_additions.R
no_license
halfak/teahouse_experiment
R
false
false
270
r
source("env.R") source("util.R") load.monthly_link_additions = tsv_loader( paste(DATA_DIR, "th_monthly_link_additions.tsv", sep="/"), "MONTHLY_LINK_ADDITIONS", function(dt){ old_month = dt$month dt$month = as.Date(paste(old_month, "01", sep="-")) dt } )
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/google_map_layers.R \name{add_overlay} \alias{add_overlay} \title{Add Overlay} \usage{ add_overlay(map, north, east, south, west, overlay_url, layer_id = NULL) } \arguments{ \item{map}{a googleway map object created from \code{google_map()}} ...
/man/add_overlay.Rd
no_license
applied-statistic-using-r/googleway
R
false
true
992
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/google_map_layers.R \name{add_overlay} \alias{add_overlay} \title{Add Overlay} \usage{ add_overlay(map, north, east, south, west, overlay_url, layer_id = NULL) } \arguments{ \item{map}{a googleway map object created from \code{google_map()}} ...
setwd("/Users/williamjohnson/Desktop/Laura/Mussels/Research/field_data") library(tidyverse) # Read in the .csv files and save as tbls bky01sys1 <- as.tibble(read.csv("BKY01_sys1.csv", header = TRUE)) bky01sys2 <- as.tibble(read.csv("BKY01_sys2.csv", header = TRUE)) #Change transect_num and quadrat_num variables to fac...
/site_DATAexplore/BKY01_DataExploration.R
no_license
ljohnso8/thesis-mussels
R
false
false
7,648
r
setwd("/Users/williamjohnson/Desktop/Laura/Mussels/Research/field_data") library(tidyverse) # Read in the .csv files and save as tbls bky01sys1 <- as.tibble(read.csv("BKY01_sys1.csv", header = TRUE)) bky01sys2 <- as.tibble(read.csv("BKY01_sys2.csv", header = TRUE)) #Change transect_num and quadrat_num variables to fac...
#' corrected_z_test #' #' @param data partially paired data #' @param sig_level significance level for the hypothesis test #' #' @return list object containing in particular: #' z_corr, the corrected z statistic for the hypothesis test #' stat_sig, the result of the hypothesis test #' @export #' #' @examples #' correct...
/R/corrected_z_test.R
permissive
HorridTom/meancomppp
R
false
false
2,170
r
#' corrected_z_test #' #' @param data partially paired data #' @param sig_level significance level for the hypothesis test #' #' @return list object containing in particular: #' z_corr, the corrected z statistic for the hypothesis test #' stat_sig, the result of the hypothesis test #' @export #' #' @examples #' correct...
\name{fitMk} \alias{fitMk} \alias{plot.fitMk} \alias{plot.gfit} \title{Fits Mk model} \usage{ fitMk(tree, x, model="SYM", fixedQ=NULL, ...) \method{plot}{fitMk}(x, ...) \method{plot}{gfit}(x, ...) } \arguments{ \item{tree}{an object of class \code{"phylo"}.} \item{x}{a vector of tip values for species; \c...
/man/fitMk.Rd
no_license
bmpvieira-forks/phytools
R
false
false
2,213
rd
\name{fitMk} \alias{fitMk} \alias{plot.fitMk} \alias{plot.gfit} \title{Fits Mk model} \usage{ fitMk(tree, x, model="SYM", fixedQ=NULL, ...) \method{plot}{fitMk}(x, ...) \method{plot}{gfit}(x, ...) } \arguments{ \item{tree}{an object of class \code{"phylo"}.} \item{x}{a vector of tip values for species; \c...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/app.R \name{timeseries_plot} \alias{timeseries_plot} \title{Time plot.} \usage{ timeseries_plot(tsdata) } \description{ Facet by variables, all keys on same graph }
/man/timeseries_plot.Rd
no_license
EBlonkowski/TSwatch
R
false
true
243
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/app.R \name{timeseries_plot} \alias{timeseries_plot} \title{Time plot.} \usage{ timeseries_plot(tsdata) } \description{ Facet by variables, all keys on same graph }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/distribution_tuning.R \name{plot_prediction_against_observed} \alias{plot_prediction_against_observed} \title{Plotting diagnostic to determine goodness of fit} \usage{ plot_prediction_against_observed( dat, nat_mat_list, family, missi...
/eSVD/man/plot_prediction_against_observed.Rd
permissive
linnykos/esvd
R
false
true
2,574
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/distribution_tuning.R \name{plot_prediction_against_observed} \alias{plot_prediction_against_observed} \title{Plotting diagnostic to determine goodness of fit} \usage{ plot_prediction_against_observed( dat, nat_mat_list, family, missi...
context("EAimp") library(modi) test_that("Dimension of imputed data is equal to dimension of input data", { data(bushfirem, bushfire.weights) invisible(capture.output(det.res <- EAdet(bushfirem, bushfire.weights, plotting = FALSE))) invisible(capture.output(imp.res <- EAimp(bushfirem, bushfire.weights, ...
/tests/testthat/test_EAimp.R
no_license
cran/modi
R
false
false
463
r
context("EAimp") library(modi) test_that("Dimension of imputed data is equal to dimension of input data", { data(bushfirem, bushfire.weights) invisible(capture.output(det.res <- EAdet(bushfirem, bushfire.weights, plotting = FALSE))) invisible(capture.output(imp.res <- EAimp(bushfirem, bushfire.weights, ...
library(cec2005benchmark) ### Name: cec2005benchmark11 ### Title: Function Number 11 ### Aliases: cec2005benchmark11 ### ** Examples cec2005benchmark11(runif(10, -0.5, 0.5))
/data/genthat_extracted_code/cec2005benchmark/examples/cec2005benchmark11.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
181
r
library(cec2005benchmark) ### Name: cec2005benchmark11 ### Title: Function Number 11 ### Aliases: cec2005benchmark11 ### ** Examples cec2005benchmark11(runif(10, -0.5, 0.5))
## Create one R script called run_analysis.R that does the following: ## 1. Merges the training and the test sets to create one data set. ## 2. Extracts only the measurements on the mean and standard deviation for each measurement. ## 3. Uses descriptive activity names to name the activities in the data set ##...
/run_analysis.R
no_license
MChauhan2014/Getting-and-Cleaning-Data
R
false
false
2,798
r
## Create one R script called run_analysis.R that does the following: ## 1. Merges the training and the test sets to create one data set. ## 2. Extracts only the measurements on the mean and standard deviation for each measurement. ## 3. Uses descriptive activity names to name the activities in the data set ##...
## this script recodes countries in cshapes that change status within the same ## year. this happens when borders change or capitals are moved and the effective ## date is anything other than december 31. it uses a rule where any change that ## occurs in the first half of a year results in that iteration of a country #...
/Code/cshapes Recode.R
no_license
jayrobwilliams/conflict-preemption
R
false
false
2,040
r
## this script recodes countries in cshapes that change status within the same ## year. this happens when borders change or capitals are moved and the effective ## date is anything other than december 31. it uses a rule where any change that ## occurs in the first half of a year results in that iteration of a country #...
# Test for onesampsgn function Returns: An error message if any # tests fail context("onesampsgn") # Declare test variables x <- c(56, 70, 89, 94, 96, 101, 102, 102, 102, 105, 106, 108, 110, 113, 116) oops_inf <- c(Inf, 1, 2) oops_nan <- c(1, NaN, 3) oops_notnumeric <- c(1, 2, "oops") test_that("edge cases", { #...
/tests/testthat/test_onesampsgn.R
no_license
joemckean/mathstat
R
false
false
3,355
r
# Test for onesampsgn function Returns: An error message if any # tests fail context("onesampsgn") # Declare test variables x <- c(56, 70, 89, 94, 96, 101, 102, 102, 102, 105, 106, 108, 110, 113, 116) oops_inf <- c(Inf, 1, 2) oops_nan <- c(1, NaN, 3) oops_notnumeric <- c(1, 2, "oops") test_that("edge cases", { #...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/goals.R \name{ga_goal_list} \alias{ga_goal_list} \title{List goals} \usage{ ga_goal_list(accountId, webPropertyId, profileId) } \arguments{ \item{accountId}{Account Id} \item{webPropertyId}{Web Property Id} \item{profileId}{Profile Id} } \v...
/man/ga_goal_list.Rd
no_license
Cecile31/googleAnalyticsR
R
false
true
1,044
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/goals.R \name{ga_goal_list} \alias{ga_goal_list} \title{List goals} \usage{ ga_goal_list(accountId, webPropertyId, profileId) } \arguments{ \item{accountId}{Account Id} \item{webPropertyId}{Web Property Id} \item{profileId}{Profile Id} } \v...
# Plot discrete colorbar function plot_discrete_cbar = function ( # Vector of breaks. If +-Inf are used, triangles will be added to the sides of the color bar breaks, palette = "Greys", # RColorBrewer palette to use # Alternatively, manually set colors colors = RColorBrewer::brewer.pal(length(breaks) -...
/Scripts/functions/plot_discrete_cbar.R
no_license
JasperMCDenissen/2022_Denissen_ELI_CMIP6_Nat_Clim_Change
R
false
false
4,863
r
# Plot discrete colorbar function plot_discrete_cbar = function ( # Vector of breaks. If +-Inf are used, triangles will be added to the sides of the color bar breaks, palette = "Greys", # RColorBrewer palette to use # Alternatively, manually set colors colors = RColorBrewer::brewer.pal(length(breaks) -...
#' #' Create data for `hed` approach #' #' Generate standardized data for the `hed` modeling approach #' #' @param trans_df sales transaction in either a data.frame or a #' trans_df class from dateToPeriod() function #' @param prop_id field contain the unique property identification #' @param trans_id field containing ...
/R/hedCreateTrans.R
no_license
zhaoxiaohe/hpiR
R
false
false
3,302
r
#' #' Create data for `hed` approach #' #' Generate standardized data for the `hed` modeling approach #' #' @param trans_df sales transaction in either a data.frame or a #' trans_df class from dateToPeriod() function #' @param prop_id field contain the unique property identification #' @param trans_id field containing ...
#' Read And Tidy PEEK AOIS File #' #' This function allows you to read and parse a single PEEK order file generated by the Language #' Learning Lab #' #' @description \code{read_aois()} is a special case of \code{read_delm()}. #' It's useful for doing minor cleaning of the AOI coordinates. If you set \code{tidy = FA...
/R/read_aois.R
no_license
kemacdonald/Rtobii
R
false
false
1,489
r
#' Read And Tidy PEEK AOIS File #' #' This function allows you to read and parse a single PEEK order file generated by the Language #' Learning Lab #' #' @description \code{read_aois()} is a special case of \code{read_delm()}. #' It's useful for doing minor cleaning of the AOI coordinates. If you set \code{tidy = FA...
######################################################################## #### Multivariate parcor model with shrinkage prior of inverse gamma ######################################################################## build_model <- function(F1_fwd, F1_bwd, P, m, K, n_Total){ ### the dimension of F1_fwd and F1_bwd: n_To...
/R/shrinkTVP_mNIG_mPARCOR.R
no_license
Jayzhaowj/PARCORwMNIGDF
R
false
false
12,738
r
######################################################################## #### Multivariate parcor model with shrinkage prior of inverse gamma ######################################################################## build_model <- function(F1_fwd, F1_bwd, P, m, K, n_Total){ ### the dimension of F1_fwd and F1_bwd: n_To...
#' Calculate the 9x9 matrix used to find expected value #' #' See inbred.pdf note #' #' @param p Double vector, allele frequencies #' @export #' @examples #' LRH(c(0.2, 0.8)) #' LRH <- function(p){ L <- length(p) s <- sum(1/p) s2 <- sum(1/p^2) line1 <- c(s2, s, s, L, s, L, s, L, 1...
/R/LRH.R
no_license
thoree/inbred
R
false
false
971
r
#' Calculate the 9x9 matrix used to find expected value #' #' See inbred.pdf note #' #' @param p Double vector, allele frequencies #' @export #' @examples #' LRH(c(0.2, 0.8)) #' LRH <- function(p){ L <- length(p) s <- sum(1/p) s2 <- sum(1/p^2) line1 <- c(s2, s, s, L, s, L, s, L, 1...
#Volcanoe # Loads the Shiny and leaflet libraries. library(shiny) library(leaflet) library(dplyr) library(lubridate) library(ggplot2) library(htmlTable) volmap <- read.csv("Voldata.csv", header=TRUE) summary(volmap)
/Shiny_VolcanicVEI/bak_global.R
no_license
TrunksLegendary/Developing_Data_Products_Wk4-Volcanic-Activity
R
false
false
220
r
#Volcanoe # Loads the Shiny and leaflet libraries. library(shiny) library(leaflet) library(dplyr) library(lubridate) library(ggplot2) library(htmlTable) volmap <- read.csv("Voldata.csv", header=TRUE) summary(volmap)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/table15_28.R \docType{data} \name{Table15_28} \alias{Table15_28} \title{Table 15_28} \format{ \itemize{ \item \strong{AGE} \item \strong{AGEEDUC} \item \strong{EDUC} \item \strong{INCOME} \item \strong{PCIGS79} \item \strong{SMOKER} \item \st...
/man/Table15_28.Rd
no_license
brunoruas2/gujarati
R
false
true
414
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/table15_28.R \docType{data} \name{Table15_28} \alias{Table15_28} \title{Table 15_28} \format{ \itemize{ \item \strong{AGE} \item \strong{AGEEDUC} \item \strong{EDUC} \item \strong{INCOME} \item \strong{PCIGS79} \item \strong{SMOKER} \item \st...
#' Set up strategy to handle missing values #' #' @noRd handle_NA <- function(blocks, NA_method = "na.ignore") { na.rm <- FALSE if (NA_method == "na.omit") blocks <- intersection_list(blocks) if (NA_method == "na.ignore") { blocks <- blocks na.rm <- Reduce("||", lapply(blocks, function(x) any(is.n...
/R/handle_NA.R
no_license
cran/RGCCA
R
false
false
385
r
#' Set up strategy to handle missing values #' #' @noRd handle_NA <- function(blocks, NA_method = "na.ignore") { na.rm <- FALSE if (NA_method == "na.omit") blocks <- intersection_list(blocks) if (NA_method == "na.ignore") { blocks <- blocks na.rm <- Reduce("||", lapply(blocks, function(x) any(is.n...
library(psych) library(dplyr) # PCA practice 2 // 1015 수업까지 보내기. #### bullsOri <- read.csv("../0924_1001/bulls.csv", stringsAsFactors = F) str(bulls) # breed 종 => 제외 필요. # Salespr 가격 => 제외 필요 bulls <- bulls[,-c(1,2)] pairs.panels(bulls) bulls <- bulls[!bulls$PrctFFB==81.40,] bulls_pca <- prcomp(bulls,scale=T) plot(b...
/4. KMU/Second Semester/Statistics/1008_1022_Exploratory Factor Analysis/1008.R
no_license
byungjun0689/DataScience
R
false
false
1,649
r
library(psych) library(dplyr) # PCA practice 2 // 1015 수업까지 보내기. #### bullsOri <- read.csv("../0924_1001/bulls.csv", stringsAsFactors = F) str(bulls) # breed 종 => 제외 필요. # Salespr 가격 => 제외 필요 bulls <- bulls[,-c(1,2)] pairs.panels(bulls) bulls <- bulls[!bulls$PrctFFB==81.40,] bulls_pca <- prcomp(bulls,scale=T) plot(b...
# All libraries are imported in global.R # Define the Application server logic shinyServer(function(input, output) { # Handling file uploads # Use browser() for debugging: temp is in input$userfileupload$datapath # Handling file uploads # Use browser() for debugging: temp is in input$userfileuploa...
/dq5/dq5-people3-diversity-inclusion-main/shinyapp/server.R
no_license
zylstraa/People3Diversity
R
false
false
15,908
r
# All libraries are imported in global.R # Define the Application server logic shinyServer(function(input, output) { # Handling file uploads # Use browser() for debugging: temp is in input$userfileupload$datapath # Handling file uploads # Use browser() for debugging: temp is in input$userfileuploa...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cloudwatch_operations.R \name{cloudwatch_delete_insight_rules} \alias{cloudwatch_delete_insight_rules} \title{Permanently deletes the specified Contributor Insights rules} \usage{ cloudwatch_delete_insight_rules(RuleNames) } \arguments{ \item...
/paws/man/cloudwatch_delete_insight_rules.Rd
permissive
johnnytommy/paws
R
false
true
839
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cloudwatch_operations.R \name{cloudwatch_delete_insight_rules} \alias{cloudwatch_delete_insight_rules} \title{Permanently deletes the specified Contributor Insights rules} \usage{ cloudwatch_delete_insight_rules(RuleNames) } \arguments{ \item...
## The first function makeCacheMatrix will take in the target ## matrix to be inversed as argument and return a list, which ## contains 4 functions, to be used by the second function, ## cacheSolve which will calculate and return the inverse of ## the target matrix if the value has not been calculated and ## other...
/cachematrix.R
no_license
porsmbao/ProgrammingAssignment2
R
false
false
1,737
r
## The first function makeCacheMatrix will take in the target ## matrix to be inversed as argument and return a list, which ## contains 4 functions, to be used by the second function, ## cacheSolve which will calculate and return the inverse of ## the target matrix if the value has not been calculated and ## other...
# Set the working directory that contains the experiment results. setwd("~/Desktop/SFigure4") ############################################################# #START: Load in data used to create Supplemental Figure 4 ############################################################# # load in the Results file A<-read.csv("Res...
/Rcode/ReadmeFolders/SFigure4/SFigure4.R
no_license
davidmedvigy/Levy-Varon-etal
R
false
false
2,227
r
# Set the working directory that contains the experiment results. setwd("~/Desktop/SFigure4") ############################################################# #START: Load in data used to create Supplemental Figure 4 ############################################################# # load in the Results file A<-read.csv("Res...
## R code written by Elizabeth A. Bowman Oct. 27, 2016 ## University of Arizona, School of Plant Sciences, eabowman@email.arizona.edu ## Code to load packages and, if needed, to install packages onto your computer. ## To install packages, uncomment code line. #==========================================================...
/script/Load_packages.R
no_license
eabowman/Bowman_and_Arnold_fungal_elev_grad
R
false
false
1,135
r
## R code written by Elizabeth A. Bowman Oct. 27, 2016 ## University of Arizona, School of Plant Sciences, eabowman@email.arizona.edu ## Code to load packages and, if needed, to install packages onto your computer. ## To install packages, uncomment code line. #==========================================================...
hmdmtest <- function(y,f) { ### Modified Diebold-Mariano test for one-step ahead forecasts (when presence of ARCH effects is suspected) ### a wrapper for dm.test() from "forecast" package ### y - forecasted time-series ### f - a matrix or xts object, ### first row sho...
/fuzzedpackages/fDMA/R/hmdmtest.R
no_license
akhikolla/testpackages
R
false
false
1,671
r
hmdmtest <- function(y,f) { ### Modified Diebold-Mariano test for one-step ahead forecasts (when presence of ARCH effects is suspected) ### a wrapper for dm.test() from "forecast" package ### y - forecasted time-series ### f - a matrix or xts object, ### first row sho...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mcmcDREAM.R \name{DREAM} \alias{DREAM} \title{DREAM} \usage{ DREAM(bayesianSetup, settings = list(iterations = 10000, nCR = 3, gamma = NULL, eps = 0, e = 0.05, pCRupdate = TRUE, updateInterval = 10, burnin = 0, thin = 1, adaptation = 0.2,...
/BayesianTools/man/DREAM.Rd
no_license
akhikolla/ClusterTests
R
false
true
3,825
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mcmcDREAM.R \name{DREAM} \alias{DREAM} \title{DREAM} \usage{ DREAM(bayesianSetup, settings = list(iterations = 10000, nCR = 3, gamma = NULL, eps = 0, e = 0.05, pCRupdate = TRUE, updateInterval = 10, burnin = 0, thin = 1, adaptation = 0.2,...
sdLog <- function(Parray) { Parray[Parray == 0] <- 1e-11 Plog <- log(Parray) Pm <- apply(Plog, c(1, 2), mean, na.rm = TRUE) Psd <- apply(Plog, c(1, 2), sd, na.rm = TRUE) return(list(Pmean = exp(Pm), Plow = exp(Pm - Psd), Phi = exp(Pm + Psd))) } sdReg <- function(Parray) { Pmean <- apply(P...
/AlgResults2/helperEdge.R
no_license
innager/edgeplots
R
false
false
484
r
sdLog <- function(Parray) { Parray[Parray == 0] <- 1e-11 Plog <- log(Parray) Pm <- apply(Plog, c(1, 2), mean, na.rm = TRUE) Psd <- apply(Plog, c(1, 2), sd, na.rm = TRUE) return(list(Pmean = exp(Pm), Plow = exp(Pm - Psd), Phi = exp(Pm + Psd))) } sdReg <- function(Parray) { Pmean <- apply(P...
x<-4 class(x) x <-c(4,"a", TRUE) class(x) x x<-c(1,3,5) y<-c(3,2,10) cbind(x,y) x <- list(2, "a", "b", TRUE) x[[1]] class(x[[1]]) class(x[1]) x<-1:4 y<-2 x+y x <- c(17, 14, 4, 5, 13, 12, 10) x[x>10]<-4 x x <- c(17, 14, 4, 5, 13, 12, 10) x x[x > 10]<-4 x dir ls con <- gzfile("rprog-data-quiz1_data1.zip") data <- read....
/Course 1/week1.r
no_license
AndreyShagal/R-scripts
R
false
false
1,307
r
x<-4 class(x) x <-c(4,"a", TRUE) class(x) x x<-c(1,3,5) y<-c(3,2,10) cbind(x,y) x <- list(2, "a", "b", TRUE) x[[1]] class(x[[1]]) class(x[1]) x<-1:4 y<-2 x+y x <- c(17, 14, 4, 5, 13, 12, 10) x[x>10]<-4 x x <- c(17, 14, 4, 5, 13, 12, 10) x x[x > 10]<-4 x dir ls con <- gzfile("rprog-data-quiz1_data1.zip") data <- read....
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(3.97314911878724e-307, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = c(1.46950620900256e+302, 4.11932782999429e-175, -3.8...
/meteor/inst/testfiles/ET0_PriestleyTaylor/AFL_ET0_PriestleyTaylor/ET0_PriestleyTaylor_valgrind_files/1615843490-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
2,232
r
testlist <- list(G = numeric(0), Rn = numeric(0), atmp = c(3.97314911878724e-307, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), relh = c(1.46950620900256e+302, 4.11932782999429e-175, -3.8...
list.of.packages <- c("DT","tidyverse","pavian","plotly","dplyr","plyr","reshape2","randomcoloR") lapply(list.of.packages,library,character.only = TRUE) # Read in clomp_viz files and do some cleaning setwd("/Users/uwvirongs/Documents/Michelle/bk/bk_clomp/clompviz_no_bad_klebsiella") path<-getwd() files<-list.files(pat...
/bk_jc_metagenomics_figure.R
permissive
greninger-lab/bk_dvgs
R
false
false
10,522
r
list.of.packages <- c("DT","tidyverse","pavian","plotly","dplyr","plyr","reshape2","randomcoloR") lapply(list.of.packages,library,character.only = TRUE) # Read in clomp_viz files and do some cleaning setwd("/Users/uwvirongs/Documents/Michelle/bk/bk_clomp/clompviz_no_bad_klebsiella") path<-getwd() files<-list.files(pat...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spec_lev.R \name{spec_lev} \alias{spec_lev} \title{Compute the spectrum level of a signal x.} \usage{ spec_lev(x, nfft, sampling_rate, w, nov) } \arguments{ \item{x}{A vector containing the signal to be processed. For signals with multiple ch...
/R/tagtools/man/spec_lev.Rd
no_license
FlukeAndFeather/TagTools
R
false
true
1,956
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/spec_lev.R \name{spec_lev} \alias{spec_lev} \title{Compute the spectrum level of a signal x.} \usage{ spec_lev(x, nfft, sampling_rate, w, nov) } \arguments{ \item{x}{A vector containing the signal to be processed. For signals with multiple ch...
## One country img <- grid::rasterGrob("www/worldbank_logo.png", interpolate = TRUE) line_function <- function(goal, topic, indicatorname,countryname,sdg_col, title ){ my_df <- merged_df %>% mutate(across(everything(), ~trimws(.))) %>% mutate(value = as.numeric(value)) %>% filter(...
/www/line_graphs.R
no_license
Shelmith-Kariuki/WB_SDGs
R
false
false
5,248
r
## One country img <- grid::rasterGrob("www/worldbank_logo.png", interpolate = TRUE) line_function <- function(goal, topic, indicatorname,countryname,sdg_col, title ){ my_df <- merged_df %>% mutate(across(everything(), ~trimws(.))) %>% mutate(value = as.numeric(value)) %>% filter(...
#!/usr/bin/env Rscript source("/home/apa/apa_tools.R") ca <- commandArgs(trailing=TRUE) outfile <- ca[1] maxgap <- as.numeric(ca[2]) if (is.na(maxgap)) maxgap <- Inf bams <- ca[3:length(ca)] perbam <- refnames <- new.list(bams) tmp <- tempfile() for (i in 1:length(bams)) { message(paste("Scanning",bams[i])) s...
/bamStartGapDistrib
no_license
zm-git-dev/apa_bin
R
false
false
1,200
#!/usr/bin/env Rscript source("/home/apa/apa_tools.R") ca <- commandArgs(trailing=TRUE) outfile <- ca[1] maxgap <- as.numeric(ca[2]) if (is.na(maxgap)) maxgap <- Inf bams <- ca[3:length(ca)] perbam <- refnames <- new.list(bams) tmp <- tempfile() for (i in 1:length(bams)) { message(paste("Scanning",bams[i])) s...
DEPRECATED #seq_points <- round(seq(1,nrow(com.data),length.out=4)) plot_date <- format(com.data[,"date_time"], "%a %b %d %H:%M", tz=Sys.timezone()) plot_date <- plot_date[seq_points] png(file="realtime.png",width=1600,height=960) par(mfrow = c(2, 4), cex=1.3) #1 plot(com.data[,"SA"] ~ com.data[,"date"],col=topo.col...
/realtime-plot.r
no_license
rec3141/underway
R
false
false
2,567
r
DEPRECATED #seq_points <- round(seq(1,nrow(com.data),length.out=4)) plot_date <- format(com.data[,"date_time"], "%a %b %d %H:%M", tz=Sys.timezone()) plot_date <- plot_date[seq_points] png(file="realtime.png",width=1600,height=960) par(mfrow = c(2, 4), cex=1.3) #1 plot(com.data[,"SA"] ~ com.data[,"date"],col=topo.col...
tv_images <- function(api_key, id, language=NA, include_image_language=NA){ if(!is.na(language) && !is.character(language)){ stop("language must be a ISO639-1 code") } if((!is.na(include_image_language) && !is.character(include_image_language)) || (length(include_image_languag...
/R/tv_images.R
no_license
cran/TMDb
R
false
false
1,049
r
tv_images <- function(api_key, id, language=NA, include_image_language=NA){ if(!is.na(language) && !is.character(language)){ stop("language must be a ISO639-1 code") } if((!is.na(include_image_language) && !is.character(include_image_language)) || (length(include_image_languag...
# dnorm, pnorm and qnorm # Source: http://seankross.com/notes/dpqr/ z_scores <- seq(-3,3,by = 0.1) dvalues <- dnorm(z_scores) # dnorm gives you the probability of a single Z score occurring dvalues plot(dvalues, # Plot where y = values and x = index of the value in the vector xaxt = "n", # Don't la...
/DnormPnormQnorm.R
no_license
BvanMeijeren/Data-science-projects
R
false
false
749
r
# dnorm, pnorm and qnorm # Source: http://seankross.com/notes/dpqr/ z_scores <- seq(-3,3,by = 0.1) dvalues <- dnorm(z_scores) # dnorm gives you the probability of a single Z score occurring dvalues plot(dvalues, # Plot where y = values and x = index of the value in the vector xaxt = "n", # Don't la...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/load-sea-bulk.R \name{load_sea_bulk} \alias{load_sea_bulk} \title{Read & Load all SEA csv files in a directory} \usage{ load_sea_bulk(path = ".", verbose = TRUE, recursive = TRUE, exclude = c(), pattern = "", which_modules = "") } \argument...
/man/load_sea_bulk.Rd
permissive
e-leib/aceR
R
false
true
1,180
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/load-sea-bulk.R \name{load_sea_bulk} \alias{load_sea_bulk} \title{Read & Load all SEA csv files in a directory} \usage{ load_sea_bulk(path = ".", verbose = TRUE, recursive = TRUE, exclude = c(), pattern = "", which_modules = "") } \argument...
rm(list = ls()) source_list = list( 'dhyperb.r', 'hyperb.r', 'rsleasqr.r' ) for (src in source_list) { source(file.path(getwd(), src)) } # set up some dummy values vmax <- 1; km <- 1; p <- t(c(vmax, km)) x <- seq(0, 2, by=0.1) y <- matrix(0, 21, 1) # generate some fake data ...
/master_session.r
no_license
GodloveD/MATLAB2R
R
false
false
824
r
rm(list = ls()) source_list = list( 'dhyperb.r', 'hyperb.r', 'rsleasqr.r' ) for (src in source_list) { source(file.path(getwd(), src)) } # set up some dummy values vmax <- 1; km <- 1; p <- t(c(vmax, km)) x <- seq(0, 2, by=0.1) y <- matrix(0, 21, 1) # generate some fake data ...
# Code to create a capture history (i.e., detection history) from camera trap # images stored on eMammal servers. # Data input is from user defined selections on eMammal's user interface ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### #### PREAMBLE #### # Read in eMammal Inputs fr...
/resources/rscripts/Occupancy.R
no_license
Smithsonian/sianctapi
R
false
false
13,388
r
# Code to create a capture history (i.e., detection history) from camera trap # images stored on eMammal servers. # Data input is from user defined selections on eMammal's user interface ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### #### PREAMBLE #### # Read in eMammal Inputs fr...
## Efficiently calculate and cache inverse of a matrix. ## Construct matrix object which can cache its inverse. makeCacheMatrix <- function(m = matrix()) { i <- NULL set <- function(n) { m <<- n i <<- NULL } get <- function() m setInverse <- function(inverse) i <<- inverse get...
/cachematrix.R
no_license
kl22/ProgrammingAssignment2
R
false
false
938
r
## Efficiently calculate and cache inverse of a matrix. ## Construct matrix object which can cache its inverse. makeCacheMatrix <- function(m = matrix()) { i <- NULL set <- function(n) { m <<- n i <<- NULL } get <- function() m setInverse <- function(inverse) i <<- inverse get...
#' Check if a species is native somewhere #' #' @export #' #' @param sp character; a vector of length one with a single scientific species #' names in the form of \code{c("Genus species")}. #' @param region character; a vector of length one with a single region. Only "europe" #' and "america" implemented "europe" check...
/originr/R/is_native.R
no_license
ingted/R-Examples
R
false
false
4,650
r
#' Check if a species is native somewhere #' #' @export #' #' @param sp character; a vector of length one with a single scientific species #' names in the form of \code{c("Genus species")}. #' @param region character; a vector of length one with a single region. Only "europe" #' and "america" implemented "europe" check...
# devtools::install_github('yufree/MAIT') # install.packages("WGCNA",repos="http://cran.r-project.org",dependencies=TRUE) # install.packages("snow",repos="http://cran.r-project.org") # install.packages("doSNOW",repos="http://cran.r-project.org") # install.packages("parallel",repos="http://cran.r-project.org") # install...
/meta/anno.R
permissive
yufree/democode
R
false
false
6,533
r
# devtools::install_github('yufree/MAIT') # install.packages("WGCNA",repos="http://cran.r-project.org",dependencies=TRUE) # install.packages("snow",repos="http://cran.r-project.org") # install.packages("doSNOW",repos="http://cran.r-project.org") # install.packages("parallel",repos="http://cran.r-project.org") # install...
#' Get number of mentions #' #' Counts number of mentions in highlighted text. #' #' @inheritParams e_highlights #' #' @examples #' \dontrun{ #' library(webhose) #' token <- wh_token("xXX-x0X0xX0X-00X") #' #' token %>% #' wh_news(q = '"R AND Python"') %>% # use highlight! #' wh_collect() -> rstats # collect result...
/R/mentions.R
permissive
news-r/webhoserx
R
false
false
1,200
r
#' Get number of mentions #' #' Counts number of mentions in highlighted text. #' #' @inheritParams e_highlights #' #' @examples #' \dontrun{ #' library(webhose) #' token <- wh_token("xXX-x0X0xX0X-00X") #' #' token %>% #' wh_news(q = '"R AND Python"') %>% # use highlight! #' wh_collect() -> rstats # collect result...
fnAllTkrsAllPeriods <- function(x, type) { namesy <- c() y <- mapply(function (z) { namex <- switch( z, "^GSPC" = "S&P500", "^IXIC" = "NASDAQ", "^DJI" = "DJI", "SPY" = "SPY", z ) namesy <<- c(namesy, namex) d.close <- x[[z]][[type]]$Close...
/Global/fnFunctions/fnAllTkrsAllPeriodsDump.R
no_license
selgamal/ShinyTestApp
R
false
false
2,537
r
fnAllTkrsAllPeriods <- function(x, type) { namesy <- c() y <- mapply(function (z) { namex <- switch( z, "^GSPC" = "S&P500", "^IXIC" = "NASDAQ", "^DJI" = "DJI", "SPY" = "SPY", z ) namesy <<- c(namesy, namex) d.close <- x[[z]][[type]]$Close...
library(ggplot2) library(plyr) library(grid) nostaleData <- read.table("desktopchat-throughput/nostale-results.txt", header = TRUE) nostaleAbortRates <- read.table("desktopchat-throughput/nostale-abortrate.txt", header = TRUE) staleData <- read.table("desktopchat-throughput/stale-results.txt", header = TRUE) staleAbor...
/scripts/experiments-eurosys-15/plot-desktopchat-throughput.R
permissive
UWSysLab/diamond
R
false
false
1,707
r
library(ggplot2) library(plyr) library(grid) nostaleData <- read.table("desktopchat-throughput/nostale-results.txt", header = TRUE) nostaleAbortRates <- read.table("desktopchat-throughput/nostale-abortrate.txt", header = TRUE) staleData <- read.table("desktopchat-throughput/stale-results.txt", header = TRUE) staleAbor...
context("Checking as_count") test_that("as_count ...",{ })
/tests/testthat/test-as_count.R
no_license
trinker/termco
R
false
false
63
r
context("Checking as_count") test_that("as_count ...",{ })
.First.lib <- function(lib, pkg) library.dynam("runStat", pkg, lib)
/R/zzz.R
no_license
cran/runStat
R
false
false
68
r
.First.lib <- function(lib, pkg) library.dynam("runStat", pkg, lib)
#!/usr/bin/env Rscript suppressPackageStartupMessages(library(dplyr)) suppressPackageStartupMessages(library(readr)) suppressPackageStartupMessages(library(RMySQL)) suppressPackageStartupMessages(library(yaml)) suppressPackageStartupMessages(library(testthat)) suppressPackageStartupMessages(library(optparse)) suppress...
/inst/scripts/report_data_query.R
no_license
Sage-Bionetworks/synapseusagereports
R
false
false
2,479
r
#!/usr/bin/env Rscript suppressPackageStartupMessages(library(dplyr)) suppressPackageStartupMessages(library(readr)) suppressPackageStartupMessages(library(RMySQL)) suppressPackageStartupMessages(library(yaml)) suppressPackageStartupMessages(library(testthat)) suppressPackageStartupMessages(library(optparse)) suppress...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/games.women.2017.R \name{games.women.2017} \alias{games.women.2017} \title{2017 NCAA Women's Basketball Game-by-Game Results} \format{ data frame with 5575 rows and 7 variables } \source{ ESPN } \description{ This dataset contains the game re...
/man/games.women.2017.Rd
no_license
jpbranson/mRchmadness
R
false
true
672
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/games.women.2017.R \name{games.women.2017} \alias{games.women.2017} \title{2017 NCAA Women's Basketball Game-by-Game Results} \format{ data frame with 5575 rows and 7 variables } \source{ ESPN } \description{ This dataset contains the game re...
# Weather Data Processing library(dplyr) library(lubridate) # loading files humidity <- read.csv("humidity.csv") pressure <- read.csv("pressure.csv") temperature <- read.csv("temperature.csv") weatherDescription <- read.csv("weather_description.csv") windSpeed <- read.csv("wind_speed.csv") # humidity data for NYC hum...
/weather.R
no_license
devinsimmons/HONR238V_project
R
false
false
2,289
r
# Weather Data Processing library(dplyr) library(lubridate) # loading files humidity <- read.csv("humidity.csv") pressure <- read.csv("pressure.csv") temperature <- read.csv("temperature.csv") weatherDescription <- read.csv("weather_description.csv") windSpeed <- read.csv("wind_speed.csv") # humidity data for NYC hum...
library(tidyverse) library(igraph) # Read in File movies = read.csv("C:/Users/Andy Dotter/Documents/05_Spring_2019/Spring_2/Social Network Analytics/movie_metadata.csv") # Get columnames colnames(movies) # Isolate for important columns only movies_short <- movies %>% select(c('movie_title', 'actor_1_name', 'actor_2...
/AD_Final_Project_Stuff/Actor_IMDB_and_Revenue_Network_Graphs.R
no_license
nobbyhawk/imdb_network
R
false
false
2,922
r
library(tidyverse) library(igraph) # Read in File movies = read.csv("C:/Users/Andy Dotter/Documents/05_Spring_2019/Spring_2/Social Network Analytics/movie_metadata.csv") # Get columnames colnames(movies) # Isolate for important columns only movies_short <- movies %>% select(c('movie_title', 'actor_1_name', 'actor_2...
## Set working directory ## ───────────────────────── ## It is often helpful to start your R session by setting your working ## directory so you don't have to type the full path names to your data ## and other files getwd() # where am I? list.files("dataSets") # files in the dataSets folder ## Load the states ...
/ML Assignment.R
no_license
pfchangs/mlassignment
R
false
false
7,988
r
## Set working directory ## ───────────────────────── ## It is often helpful to start your R session by setting your working ## directory so you don't have to type the full path names to your data ## and other files getwd() # where am I? list.files("dataSets") # files in the dataSets folder ## Load the states ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cube.R \name{gcbs_size} \alias{gcbs_size} \title{Query data cube properties} \usage{ gcbs_size(obj) } \arguments{ \item{obj}{a data cube proxy object (class gcbs_cube)} } \value{ Size of a data cube (number of cells) as integer vector in the ...
/man/gcbs_size.Rd
permissive
edzer/gdalcubes_R
R
false
true
405
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cube.R \name{gcbs_size} \alias{gcbs_size} \title{Query data cube properties} \usage{ gcbs_size(obj) } \arguments{ \item{obj}{a data cube proxy object (class gcbs_cube)} } \value{ Size of a data cube (number of cells) as integer vector in the ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/docdata.R \docType{data} \name{segments.list} \alias{segments.list} \alias{genesegments} \title{Segment data.} \format{ \code{genesegments} is a list with data frames. } \description{ \code{segments} is a list with 5 data frames with data of ...
/fuzzedpackages/tcR/man/segments.list.Rd
no_license
akhikolla/testpackages
R
false
true
979
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/docdata.R \docType{data} \name{segments.list} \alias{segments.list} \alias{genesegments} \title{Segment data.} \format{ \code{genesegments} is a list with data frames. } \description{ \code{segments} is a list with 5 data frames with data of ...
data=read.csv("C:/Users/imsau/Desktop/6th Sem/ML/ML_lab/Lab3(6-Feb)/drug2.csv") View(data) summary(data) str(data) boxplot(data$dose) boxplot(data$response) head(data) scatter.smooth(x=data$dose, y=data$response, main="dose ~ response") cor(data$dose, data$response) cor(data$sex, data$response) model1...
/LinearRegression.R
no_license
imSrbh/Essentials-of-Machine-Learning-Algorithms-with-Python-and-R-Codes-
R
false
false
1,535
r
data=read.csv("C:/Users/imsau/Desktop/6th Sem/ML/ML_lab/Lab3(6-Feb)/drug2.csv") View(data) summary(data) str(data) boxplot(data$dose) boxplot(data$response) head(data) scatter.smooth(x=data$dose, y=data$response, main="dose ~ response") cor(data$dose, data$response) cor(data$sex, data$response) model1...
basicSysAbsRetHHV <- function(ticker, x, window, hold.period, absret.lag1, absret.lag2, verbose = TRUE) { # Basic trading system # Goes long when the closing price exceeds the highest high of # determined weeks. Includes lag variables for rolling absolute # return moving average. # # Hard coded 5 period m...
/old_files/Channels/basic_system_hhv_absret_nochart.R
no_license
choiway/vger
R
false
false
1,802
r
basicSysAbsRetHHV <- function(ticker, x, window, hold.period, absret.lag1, absret.lag2, verbose = TRUE) { # Basic trading system # Goes long when the closing price exceeds the highest high of # determined weeks. Includes lag variables for rolling absolute # return moving average. # # Hard coded 5 period m...
# Assignment 1 # Question 1 library(rmutil) # Required for int2() function pdf_fn <- function(x,y){ res = (exp(-x/y) * exp(-y))/y return(res) } # bivariate pdf of random variable x,y # (i) K = 1 /(int2(pdf_fn,c(0,0),c(Inf,Inf),eps=10^-8)) # (ii) marden_y <- function(x,y){ return(exp(-y))} # (iii) Pr = (...
/Assignment-1/Assignment_1.R
no_license
RAAKASH/CH5350
R
false
false
5,150
r
# Assignment 1 # Question 1 library(rmutil) # Required for int2() function pdf_fn <- function(x,y){ res = (exp(-x/y) * exp(-y))/y return(res) } # bivariate pdf of random variable x,y # (i) K = 1 /(int2(pdf_fn,c(0,0),c(Inf,Inf),eps=10^-8)) # (ii) marden_y <- function(x,y){ return(exp(-y))} # (iii) Pr = (...
# Устанавливаем рабочую директорию # Set the working directory setwd("~/your/working/directory/") # Загружаем библиотеку "plyr" # Load the "plyr" library library("plyr") ############################################ # 1 Выявляем пути A.bispodus, достоверно насыщенные активируемыми/репрессируемыми генами L. edodes # 1 ...
/deg_to_path.r
no_license
RimGubaev/deg_to_path
R
false
false
14,597
r
# Устанавливаем рабочую директорию # Set the working directory setwd("~/your/working/directory/") # Загружаем библиотеку "plyr" # Load the "plyr" library library("plyr") ############################################ # 1 Выявляем пути A.bispodus, достоверно насыщенные активируемыми/репрессируемыми генами L. edodes # 1 ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SimFunctions.R \name{SimFunctions} \alias{SimFunctions} \title{Skeleton functions for simulations} \usage{ SimFunctions(filename = NULL, comments = FALSE, singlefile = FALSE, summarise = TRUE) } \arguments{ \item{filename}{a character vecto...
/man/SimFunctions.Rd
no_license
SJRushford/SimDesign
R
false
true
1,638
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/SimFunctions.R \name{SimFunctions} \alias{SimFunctions} \title{Skeleton functions for simulations} \usage{ SimFunctions(filename = NULL, comments = FALSE, singlefile = FALSE, summarise = TRUE) } \arguments{ \item{filename}{a character vecto...
# Adding Crystal Viewer Edge list to the already created graph ## Very important to do - FIND WAY OF SCRIPTING FILE INPUT ( Only thing remaining if this works) ## Why vertices -- Using an adjacency matrix is going to become computationally comples, since the matris is sparse ( because the average degree is a small va...
/r_scripts/Edge_Attrib_Grav_Cent_CRYSTAL_trial.R
no_license
srikantrao/Pi
R
false
false
5,920
r
# Adding Crystal Viewer Edge list to the already created graph ## Very important to do - FIND WAY OF SCRIPTING FILE INPUT ( Only thing remaining if this works) ## Why vertices -- Using an adjacency matrix is going to become computationally comples, since the matris is sparse ( because the average degree is a small va...
##read data setwd("exdata_data_household_power_consumption") powerconsumption <- read.csv2("household_power_consumption.txt", sep = ";", stringsAsFactors = FALSE, header = TRUE) ##assign proper classes to dataset powerconsumption$Date <- as.Date(powerconsumption$Date, "%d/%m/%Y") powerconsumption <- subset(power...
/plot1.R
no_license
RobinGeurts3007/ExData_Plotting1
R
false
false
1,410
r
##read data setwd("exdata_data_household_power_consumption") powerconsumption <- read.csv2("household_power_consumption.txt", sep = ";", stringsAsFactors = FALSE, header = TRUE) ##assign proper classes to dataset powerconsumption$Date <- as.Date(powerconsumption$Date, "%d/%m/%Y") powerconsumption <- subset(power...