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
# Main script for assigning a protein with NAPS. # This should usually be called from NAPS_single.R or NAPS_batch.R, which will contain the definitions of protein-specific parameters #### Load packages and set other options #### # Install any missing libraries libs.req = c("tidyr","dplyr","ggplot2","corrplot","seqinr...
/R/NAPS_main.R
no_license
ddburns/NAPS
R
false
false
7,164
r
# Main script for assigning a protein with NAPS. # This should usually be called from NAPS_single.R or NAPS_batch.R, which will contain the definitions of protein-specific parameters #### Load packages and set other options #### # Install any missing libraries libs.req = c("tidyr","dplyr","ggplot2","corrplot","seqinr...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ttest_extractor.R \name{extractTTests} \alias{extractTTests} \title{Extract t tests from text} \usage{ extractTTests(input) } \arguments{ \item{inputText}{input text} } \value{ A tibble containing all extracted values, with columns identifyin...
/man/extractTTests.Rd
permissive
fsingletonthorn/EffectSizeScraping
R
false
true
558
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ttest_extractor.R \name{extractTTests} \alias{extractTTests} \title{Extract t tests from text} \usage{ extractTTests(input) } \arguments{ \item{inputText}{input text} } \value{ A tibble containing all extracted values, with columns identifyin...
library(sf) library(censusapi) library(dplyr) library(DT) library(readr) library(tigris) library(leaflet) library(htmltools) #Data Source: geodata.md.gov #This project is the final assignment for the course "Introduction to R for Journalists" taught by [Andrew Ba Tran](https://github.com/andrewbtran). broadband <- r...
/broadbandspeed.R
no_license
mk11s/md_broadbandspeed
R
false
false
2,315
r
library(sf) library(censusapi) library(dplyr) library(DT) library(readr) library(tigris) library(leaflet) library(htmltools) #Data Source: geodata.md.gov #This project is the final assignment for the course "Introduction to R for Journalists" taught by [Andrew Ba Tran](https://github.com/andrewbtran). broadband <- r...
#Page Number: 104, 107(contd.). sprob <- 0.80 size <- 5 X_0 <- dbinom(0,size, sprob) res <- 1 - X_0 print(round(res,1))
/Statistics_-_Concepts_And_Applications_by_Nabendu_Pal_And_Sahadeb_Sarkar/CH8/EX8.3/Ex8_3.R
permissive
FOSSEE/R_TBC_Uploads
R
false
false
126
r
#Page Number: 104, 107(contd.). sprob <- 0.80 size <- 5 X_0 <- dbinom(0,size, sprob) res <- 1 - X_0 print(round(res,1))
# Install ggplot and ggmap (this is only required once) install.packages('ggplot2', dependencies = TRUE) install.packages('ggmap', dependencies = TRUE) # load packages library(ggplot2) library(ggmap) #read in MBTA performance csv file rawdata <- read.csv(file="./TDashboardData_reliability_20160301-20160331.csv", head...
/03-reliability.R
permissive
thecristen/transitdatatoolkit
R
false
false
2,474
r
# Install ggplot and ggmap (this is only required once) install.packages('ggplot2', dependencies = TRUE) install.packages('ggmap', dependencies = TRUE) # load packages library(ggplot2) library(ggmap) #read in MBTA performance csv file rawdata <- read.csv(file="./TDashboardData_reliability_20160301-20160331.csv", head...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/PrometheeS4.R \docType{methods} \name{plot,RPrometheeI-method} \alias{plot,RPrometheeI-method} \alias{NetworkPlot,RPrometheeI-method} \title{NetworkPlot} \usage{ \S4method{plot}{RPrometheeI}(x, y, ...) } \arguments{ \item{x}{the RPromethee ob...
/man/plot-RPrometheeI-method.Rd
no_license
lamfo-unb/RMCriteria
R
false
true
2,153
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/PrometheeS4.R \docType{methods} \name{plot,RPrometheeI-method} \alias{plot,RPrometheeI-method} \alias{NetworkPlot,RPrometheeI-method} \title{NetworkPlot} \usage{ \S4method{plot}{RPrometheeI}(x, y, ...) } \arguments{ \item{x}{the RPromethee ob...
library(tidyverse) library(janitor) #importing the raw decathlon data. decathlon_raw <- read_rds(here::here("raw_data/decathlon.rds")) # I don't want to lose the names data, so I'm adding it as a column. names <- rownames(decathlon_raw) rownames(decathlon_raw) <- NULL decathlon_names <- cbind(names, decathlon_raw) #...
/week_04/1_dirty_data_project/task_1/data_cleaning_scripts/decathlon_cleaning_script.R
no_license
DhileasHeywood/codeclan_homework_dhileasheywood
R
false
false
808
r
library(tidyverse) library(janitor) #importing the raw decathlon data. decathlon_raw <- read_rds(here::here("raw_data/decathlon.rds")) # I don't want to lose the names data, so I'm adding it as a column. names <- rownames(decathlon_raw) rownames(decathlon_raw) <- NULL decathlon_names <- cbind(names, decathlon_raw) #...
library(tidyverse) library(leaflet) library(magrittr) library(stringr) # download.file("https://opendata.socrata.com/api/views/ddym-zvjk/rows.csv?accessType=DOWNLOAD",destfile="data.csv",method="libcurl") # Base R # starbucks1 <- read.csv("data.csv") # readr starbucks <- read_csv("starbucks.csv") # is this needed?...
/htmlwidgets/1_htmlwidgets_Leaflet_Starbucks/Leaflet_FL.R
no_license
philbowsher/ACOP-2019-R-for-Drug-Development-Workshop
R
false
false
1,172
r
library(tidyverse) library(leaflet) library(magrittr) library(stringr) # download.file("https://opendata.socrata.com/api/views/ddym-zvjk/rows.csv?accessType=DOWNLOAD",destfile="data.csv",method="libcurl") # Base R # starbucks1 <- read.csv("data.csv") # readr starbucks <- read_csv("starbucks.csv") # is this needed?...
\name{fars_map_state} \alias{fars_map_state...} \title{fars_map_state} \description{ create a map of fars events from a specific state. } \author{ \packageAuthor{farsfunction} Maintainer: \packageMaintainer{farsfunction} } \keyword{ fars } \examples{ \dontrun{fars_map_state(20,2013)} }
/man/fars_map_state.Rd
no_license
Yovanovid/farsfunction
R
false
false
288
rd
\name{fars_map_state} \alias{fars_map_state...} \title{fars_map_state} \description{ create a map of fars events from a specific state. } \author{ \packageAuthor{farsfunction} Maintainer: \packageMaintainer{farsfunction} } \keyword{ fars } \examples{ \dontrun{fars_map_state(20,2013)} }
testlist <- list(x = c(-10497L, -11796148L, 1283457024L, 2752041L, -173L, 788529152L, 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, 0L, 0L...
/diffrprojects/inst/testfiles/dist_mat_absolute/libFuzzer_dist_mat_absolute/dist_mat_absolute_valgrind_files/1609960406-test.R
no_license
akhikolla/updated-only-Issues
R
false
false
469
r
testlist <- list(x = c(-10497L, -11796148L, 1283457024L, 2752041L, -173L, 788529152L, 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, 0L, 0L...
#' This function does not aim to replace the more thorough function from the Quanteda package. Instead it simply returns a tibble of KWICs arranged by row. #' Internal formula for processing multigrams #' #' @param document A character vector or list of character vectors #' @param pattern A character vector contai...
/R/simple_kwic.R
no_license
strategist922/collocateR
R
false
false
2,805
r
#' This function does not aim to replace the more thorough function from the Quanteda package. Instead it simply returns a tibble of KWICs arranged by row. #' Internal formula for processing multigrams #' #' @param document A character vector or list of character vectors #' @param pattern A character vector contai...
/R/MP_1_Observation.R
no_license
ElsevierSoftwareX/SOFTX-D-15-00067
R
false
false
2,388
r
# download and unzip files for workshop # See html document for explanantion library(R.utils) parent <- dirname(getwd()) # EIA residential energy consumption survey (RECS) 27 MB csv file download.file(url = "http://www.eia.gov/consumption/residential/data/2009/csv/recs2009_public.csv", mode = "wb", des...
/data/download_files.R
no_license
bdsegal/BSA-computing-workshop
R
false
false
999
r
# download and unzip files for workshop # See html document for explanantion library(R.utils) parent <- dirname(getwd()) # EIA residential energy consumption survey (RECS) 27 MB csv file download.file(url = "http://www.eia.gov/consumption/residential/data/2009/csv/recs2009_public.csv", mode = "wb", des...
# TODO: # objects don't need to pass around lists with time (x), only the function values (y); in fact, can get rid of most of time references # don't order all the time! sort f1, f2 once at the outset # integrate with fdasrvf functions # spacing & formatting #########################################################...
/R/pair_align_functions_expomap.R
no_license
larslau/fdasrvf_R
R
false
false
25,809
r
# TODO: # objects don't need to pass around lists with time (x), only the function values (y); in fact, can get rid of most of time references # don't order all the time! sort f1, f2 once at the outset # integrate with fdasrvf functions # spacing & formatting #########################################################...
\name{setCor} \alias{setCor} \alias{setCor.diagram} \alias{set.cor} \alias{mat.regress} \alias{matReg} \title{Multiple Regression and Set Correlation from matrix or raw input} \description{Given a correlation matrix or a matrix or dataframe of raw data, find the multiple regressions and draw a path diagram relating a...
/man/set.cor.Rd
no_license
mainwaringb/psych
R
false
false
16,285
rd
\name{setCor} \alias{setCor} \alias{setCor.diagram} \alias{set.cor} \alias{mat.regress} \alias{matReg} \title{Multiple Regression and Set Correlation from matrix or raw input} \description{Given a correlation matrix or a matrix or dataframe of raw data, find the multiple regressions and draw a path diagram relating a...
### Based on version 1. ####################################### # IMPORTANT: impute zeros for missing ages, causes, states, years # otherwise BP is too high... rm(list=ls(all=TRUE)) if (system("hostname",intern=TRUE) == "ADM-108625") { setwd("C:/Users/jmaburto/Documents/GitHub/DecompMex/DecompMex") } else { if (sy...
/DecompMex/R/0_1_Mxs_CIs_1D.R
no_license
timriffe/DecompMex
R
false
false
3,138
r
### Based on version 1. ####################################### # IMPORTANT: impute zeros for missing ages, causes, states, years # otherwise BP is too high... rm(list=ls(all=TRUE)) if (system("hostname",intern=TRUE) == "ADM-108625") { setwd("C:/Users/jmaburto/Documents/GitHub/DecompMex/DecompMex") } else { if (sy...
library(raster) library(tidyverse) library(gghighlight) library(matlib) theme_set(theme_bw()) # Read in and reshape into long satellites = read_table("solutions/day10/10-input", col_names = "sat") %>% mutate(y0 = row_number()) %>% mutate(sat = str_replace_all(sat, c("\\." = "0", "#" = "1")) %>% strsp...
/solutions/day10/10.R
no_license
riinuots/advent2019
R
false
false
3,856
r
library(raster) library(tidyverse) library(gghighlight) library(matlib) theme_set(theme_bw()) # Read in and reshape into long satellites = read_table("solutions/day10/10-input", col_names = "sat") %>% mutate(y0 = row_number()) %>% mutate(sat = str_replace_all(sat, c("\\." = "0", "#" = "1")) %>% strsp...
#This is an RShiny Skeleton ############################## Enviornment ############################## library(shiny) library(shinythemes) library(tidyverse) #Important for command line use in Makefile args <- commandArgs(trailingOnly = T) port <- as.numeric(args[[1]]) #Load in data Data1 <- read.csv("source_data/Data...
/RShiny_Tool.R
no_license
mattymo18/Skeleton
R
false
false
1,268
r
#This is an RShiny Skeleton ############################## Enviornment ############################## library(shiny) library(shinythemes) library(tidyverse) #Important for command line use in Makefile args <- commandArgs(trailingOnly = T) port <- as.numeric(args[[1]]) #Load in data Data1 <- read.csv("source_data/Data...
source("Read_data.R") library('dplyr') png(filename = "plot2.png", width = 640, height = 480, units = "px", pointsize = 12, bg = "white") data$N<-1:nrow(data) plot(data$N, data$Global_active_power, type="l") title("Global Active Power") dev.off()
/Plot2.R
no_license
NabilBesbes/ExData_Plotting1
R
false
false
256
r
source("Read_data.R") library('dplyr') png(filename = "plot2.png", width = 640, height = 480, units = "px", pointsize = 12, bg = "white") data$N<-1:nrow(data) plot(data$N, data$Global_active_power, type="l") title("Global Active Power") dev.off()
library(tidyr) # http://stackoverflow.com/questions/24929954/is-it-possible-to-use-spread-on-multiple-columns-in-tidyr-similar-to-dcast # http://stackoverflow.com/questions/29775461/tidyr-repeated-measures-multiple-variables-wide-format # http://stackoverflow.com/questions/30592094/r-spreading-multiple-columns-with-ti...
/Daksh/medak/dataPrep/medak/14 Advocates-NetworkAnalysis.R
no_license
jaykumar0/DataKind
R
false
false
5,517
r
library(tidyr) # http://stackoverflow.com/questions/24929954/is-it-possible-to-use-spread-on-multiple-columns-in-tidyr-similar-to-dcast # http://stackoverflow.com/questions/29775461/tidyr-repeated-measures-multiple-variables-wide-format # http://stackoverflow.com/questions/30592094/r-spreading-multiple-columns-with-ti...
library(shiny) ui <- fluidPage( # Application title titlePanel("TEST - PCA on proteomic data"), # show a button to download the data sidebarLayout( sidebarPanel( downloaderButton("downloader1", "Downloader #1") ), mainPanel( ) ) ) serve...
/app.R
no_license
othomantegazza/genapptest2
R
false
false
449
r
library(shiny) ui <- fluidPage( # Application title titlePanel("TEST - PCA on proteomic data"), # show a button to download the data sidebarLayout( sidebarPanel( downloaderButton("downloader1", "Downloader #1") ), mainPanel( ) ) ) serve...
library(tidyr) ### # Total Cases - number and Percentage ### p1 <- as.data.frame(table(d$NewStatus)) p1 tot <- sum(p1$Freq) tot p1$Percentage <- round(p1$Freq/tot,4) * 100 p1 names(p1) <- c("Status","NumCases","Percentage") p1 write.csv(p1,"../dataForD3/MedakStatusWiseTotAndPercent.csv",row.names=FALSE) ### # Total C...
/Daksh/medak/dataPrep/medak/02 totCases.R
no_license
jaykumar0/DataKind
R
false
false
2,180
r
library(tidyr) ### # Total Cases - number and Percentage ### p1 <- as.data.frame(table(d$NewStatus)) p1 tot <- sum(p1$Freq) tot p1$Percentage <- round(p1$Freq/tot,4) * 100 p1 names(p1) <- c("Status","NumCases","Percentage") p1 write.csv(p1,"../dataForD3/MedakStatusWiseTotAndPercent.csv",row.names=FALSE) ### # Total C...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/noaastnr.R \name{get_weather_data} \alias{get_weather_data} \title{Get weather data} \usage{ get_weather_data(station_number, year) } \arguments{ \item{station_number}{character} \item{year}{integer} } \value{ data.frame } \description{ Load...
/man/get_weather_data.Rd
permissive
dbandrews/noaastnr
R
false
true
1,118
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/noaastnr.R \name{get_weather_data} \alias{get_weather_data} \title{Get weather data} \usage{ get_weather_data(station_number, year) } \arguments{ \item{station_number}{character} \item{year}{integer} } \value{ data.frame } \description{ Load...
\name{extractor.toy} \alias{extractor.toy} \title{Extracts lat/long matrix and theta matrix from D2. } \description{ Extracts \code{x.star.toy} and \code{t.vec.toy} from \code{D2}; toy example needed because the extraction differs from case to case. } \usage{ extractor.toy(D1) } \arguments{ \item{D1}{Matrix of co...
/man/extractor.toy.Rd
no_license
RobinHankin/calibrator
R
false
false
1,772
rd
\name{extractor.toy} \alias{extractor.toy} \title{Extracts lat/long matrix and theta matrix from D2. } \description{ Extracts \code{x.star.toy} and \code{t.vec.toy} from \code{D2}; toy example needed because the extraction differs from case to case. } \usage{ extractor.toy(D1) } \arguments{ \item{D1}{Matrix of co...
#' Axing a mda. #' #' mda and fda objects are created from the \pkg{mda} package, leveraged to #' carry out mixture discriminant analysis and flexible discriminat analysis, #' respectively. #' #' @inheritParams butcher #' #' @return Axed mda object. #' #' @examplesIf rlang::is_installed("mda") #' library(mda) #' #' mtc...
/R/mda.R
permissive
tidymodels/butcher
R
false
false
1,853
r
#' Axing a mda. #' #' mda and fda objects are created from the \pkg{mda} package, leveraged to #' carry out mixture discriminant analysis and flexible discriminat analysis, #' respectively. #' #' @inheritParams butcher #' #' @return Axed mda object. #' #' @examplesIf rlang::is_installed("mda") #' library(mda) #' #' mtc...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/taxonomy--docs.R \name{get_data} \alias{get_data} \title{Get data in a taxmap object by name} \arguments{ \item{obj}{A \code{\link[=taxonomy]{taxonomy()}} or \code{\link[=taxmap]{taxmap()}} object} \item{name}{(\code{character}) Names of da...
/man/get_data.Rd
permissive
lionel-/taxa
R
false
true
1,322
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/taxonomy--docs.R \name{get_data} \alias{get_data} \title{Get data in a taxmap object by name} \arguments{ \item{obj}{A \code{\link[=taxonomy]{taxonomy()}} or \code{\link[=taxmap]{taxmap()}} object} \item{name}{(\code{character}) Names of da...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Game_printfuns.R \name{sign_formatter2} \alias{sign_formatter2} \alias{sign_formatter} \title{HTML formatting finance style} \usage{ sign_formatter2(x, data = NULL) sign_formatter(x, data = NULL) } \description{ HTML formatting finance style...
/SetupGameR/man/sign_formatter2.Rd
no_license
Jadamso/SetupGameR
R
false
true
367
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Game_printfuns.R \name{sign_formatter2} \alias{sign_formatter2} \alias{sign_formatter} \title{HTML formatting finance style} \usage{ sign_formatter2(x, data = NULL) sign_formatter(x, data = NULL) } \description{ HTML formatting finance style...
data<-read.csv(file.choose()) head(data,3) class(data) str(data) attach(data) plot(log_PIB_USA,log_PIB_Col) D<-year>=1991 data$D<-as.numeric(D) head(data,3) tail(data) data[29:36,] reg1<-lm(log_PIB_Col~D+log_PIB_USA+D*log_PIB_USA,data = data) summary(reg1) reg2<-lm(log_PIB_Col~log_PIB_USA,data=data) anova(reg2,reg1) D2...
/Análisis Cuantitativo/Clase 4/Capítulo 5.R
no_license
primo1594/Maestr-a-en-Ciencia-de-Datos
R
false
false
725
r
data<-read.csv(file.choose()) head(data,3) class(data) str(data) attach(data) plot(log_PIB_USA,log_PIB_Col) D<-year>=1991 data$D<-as.numeric(D) head(data,3) tail(data) data[29:36,] reg1<-lm(log_PIB_Col~D+log_PIB_USA+D*log_PIB_USA,data = data) summary(reg1) reg2<-lm(log_PIB_Col~log_PIB_USA,data=data) anova(reg2,reg1) D2...
# This is the server logic for a Shiny web application. # Author: Enrique Reveron # Date: 2016-04-17 # Content: This Shiny Apps make Geographical Maps using GoogleVis # library and ITU-T Data. # library(shiny) library(googleVis) require(googleVis) require(shiny) dt_colnames <- c("country","2000","2001","200...
/server.R
no_license
EReveron/ITUT_Explore-App
R
false
false
3,619
r
# This is the server logic for a Shiny web application. # Author: Enrique Reveron # Date: 2016-04-17 # Content: This Shiny Apps make Geographical Maps using GoogleVis # library and ITU-T Data. # library(shiny) library(googleVis) require(googleVis) require(shiny) dt_colnames <- c("country","2000","2001","200...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/atnomw_1hd.R \name{atnomw_1hd} \alias{atnomw_1hd} \title{Function for calculating the Average non-marketable tuber weight-Second harvest date (ATNoMW_1HD)} \usage{ atnomw_1hd(nomtwp_1hd, nnomtp_1hd) } \arguments{ \item{nomtwp_1hd}{Non-marketa...
/man/atnomw_1hd.Rd
permissive
c5sire/sbformula
R
false
true
1,362
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/atnomw_1hd.R \name{atnomw_1hd} \alias{atnomw_1hd} \title{Function for calculating the Average non-marketable tuber weight-Second harvest date (ATNoMW_1HD)} \usage{ atnomw_1hd(nomtwp_1hd, nnomtp_1hd) } \arguments{ \item{nomtwp_1hd}{Non-marketa...
# ============================================================================= # Program Author: Jaeok Kim # Start Date: Dec 10, 2020 # Update Date: Feb 17, 2021 # Content: Policy Modeling # Notes: Prison Modeling # ============================================================================= * START ORG/ESS/LaTeX SE...
/code/modeling.R
no_license
vera-institute/nys-policy-modeling
R
false
false
18,727
r
# ============================================================================= # Program Author: Jaeok Kim # Start Date: Dec 10, 2020 # Update Date: Feb 17, 2021 # Content: Policy Modeling # Notes: Prison Modeling # ============================================================================= * START ORG/ESS/LaTeX SE...
##### Import Packages #### library(rvest) library(tidyverse) library(chron) source("write_to_database.R") ### Possible Improvements ### # 1. none # responsible: Wei ### Pfarrkirche Unsere Liebe Frau #### # crawl data url <- "http://kirche-frauenland.de/index.html" url %>% read_html() -> raw_read raw_read %>% h...
/new_crawlers/Pfarrkirche_Unsere_Liebe_Frau.R
no_license
Adrian398/crawler
R
false
false
2,602
r
##### Import Packages #### library(rvest) library(tidyverse) library(chron) source("write_to_database.R") ### Possible Improvements ### # 1. none # responsible: Wei ### Pfarrkirche Unsere Liebe Frau #### # crawl data url <- "http://kirche-frauenland.de/index.html" url %>% read_html() -> raw_read raw_read %>% h...
library(shiny) library(ShinyDash) library(RMySQL) library(shinyExt) shinyUI(bootstrapPage( h1("Estación lisimétrica EEA Mendoza INTA"), gridster(tile.width = 250, tile.height = 250, ### Control menu #### gridsterItem(col = 1, row = 1, size.x = 1, size.y = 2, ...
/shiny/ui.R
no_license
midraed/Lisimetro-INTA-Mendoza
R
false
false
4,860
r
library(shiny) library(ShinyDash) library(RMySQL) library(shinyExt) shinyUI(bootstrapPage( h1("Estación lisimétrica EEA Mendoza INTA"), gridster(tile.width = 250, tile.height = 250, ### Control menu #### gridsterItem(col = 1, row = 1, size.x = 1, size.y = 2, ...
# Note: # 1. This script was written in Rstudio (Version 1.4.1717), # but was recommended to be ran in the original R for saving memory space. # # 2. We use foldable code sections in Rstudio # to break the large source file into a set of discrete regions # for easy navigation between them. # Each secti...
/figure_generating/figure_04.R
no_license
Sugirlstar/CDHEs-in-China
R
false
false
4,778
r
# Note: # 1. This script was written in Rstudio (Version 1.4.1717), # but was recommended to be ran in the original R for saving memory space. # # 2. We use foldable code sections in Rstudio # to break the large source file into a set of discrete regions # for easy navigation between them. # Each secti...
install.packages("plyr") library(plyr) x <- runif(50) # generating 50 random numbers x y <- runif(100) # generating 50 random numbers y data <- cbind(x,y) data plot(data) plot(data, type="n") text(data, rownames(data)) k <- kselection(data, parallel = TRUE, k_threshold = 0.9,max_centers=12 ) ...
/Kmeans_clustering _ finding k.R
no_license
venumadhavgandhi/Datascience-concepts
R
false
false
2,079
r
install.packages("plyr") library(plyr) x <- runif(50) # generating 50 random numbers x y <- runif(100) # generating 50 random numbers y data <- cbind(x,y) data plot(data) plot(data, type="n") text(data, rownames(data)) k <- kselection(data, parallel = TRUE, k_threshold = 0.9,max_centers=12 ) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/flamingoDB.R \name{getProcessData} \alias{getProcessData} \title{Get Process Data} \usage{ getProcessData(dbSettings, pruser, prmodel, prprogramme, prworkflow) } \arguments{ \item{dbSettings}{setting object as returned by e.g. \link{flamingoD...
/BFE_RShiny/flamingo/man/getProcessData.Rd
permissive
miraisolutions/OasisUI
R
false
true
641
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/flamingoDB.R \name{getProcessData} \alias{getProcessData} \title{Get Process Data} \usage{ getProcessData(dbSettings, pruser, prmodel, prprogramme, prworkflow) } \arguments{ \item{dbSettings}{setting object as returned by e.g. \link{flamingoD...
library(shiny) require(gridExtra) source("./R/functions/clustering/clusteringFunctions.R") # How to add a module # Copy copy+pase one that exits and then # - adjust ui and server name # - add generate_plot function # - update input and output names # - update plot generating call in the export plot function # - update...
/iGOEGGO_r_shiny/R/modules/clustering/clusteringModules.R
permissive
iGOEGGO/igoeggo
R
false
false
6,307
r
library(shiny) require(gridExtra) source("./R/functions/clustering/clusteringFunctions.R") # How to add a module # Copy copy+pase one that exits and then # - adjust ui and server name # - add generate_plot function # - update input and output names # - update plot generating call in the export plot function # - update...
library(dplyr) library(plyr) library(zoo) library(forecast) library(lubridate) library(data.table) setwd("C:/btc/Orderbook/Bitfinex/BTCUSD") BTCUSD <- read.csv("BITF_BTCUSD_ob_20170810_20180211.csv", header = TRUE) setwd("C:/btc/Orderbook/Bitfinex/NEOBTC") NEOBTC <- read.csv("BITF_NEOBTC_ob_20171025_201802...
/Arbitration/Bitfinex_NEO_BTC_USD/20180319_StrTest_Arbitration_NEO_BTC_USD_NewConditions.R
no_license
Adeg1987/R_Strategy_Arb
R
false
false
41,422
r
library(dplyr) library(plyr) library(zoo) library(forecast) library(lubridate) library(data.table) setwd("C:/btc/Orderbook/Bitfinex/BTCUSD") BTCUSD <- read.csv("BITF_BTCUSD_ob_20170810_20180211.csv", header = TRUE) setwd("C:/btc/Orderbook/Bitfinex/NEOBTC") NEOBTC <- read.csv("BITF_NEOBTC_ob_20171025_201802...
#Plot RPKM and ratio of DM436/DM435 Chromosome 2R over 10,000 bps region: par(mfrow = c(3, 1), mar = c(2, 4, 3, 2)) #read table for DM436_2L_10000 data, 10000 means the window-width ratiotable36 = read.table("D:/2014FallRotation/data/yulong/1010/Bin2RPKM/DM436_Bin2RPKM_2L_10000R.txt", sep="\t", col.names=c("chr_id",...
/20141020 DM435 DM436 RPKM and Ratio 2R.R
no_license
breezedu/2014fallrotation
R
false
false
2,262
r
#Plot RPKM and ratio of DM436/DM435 Chromosome 2R over 10,000 bps region: par(mfrow = c(3, 1), mar = c(2, 4, 3, 2)) #read table for DM436_2L_10000 data, 10000 means the window-width ratiotable36 = read.table("D:/2014FallRotation/data/yulong/1010/Bin2RPKM/DM436_Bin2RPKM_2L_10000R.txt", sep="\t", col.names=c("chr_id",...
corr <- function(directory, threshold = 0) { fileList <- list.files(path = directory, pattern = ".csv", full.names = TRUE) df <- complete(directory) ids <- df[df["nobs"] > threshold, ]$id corrr <- numeric() for(i in ids) { data <- read.csv(fileList[i]) dff <- data[complete.cases(data), ] corrr ...
/corr.R
no_license
JCecire20/datasciencecoursera
R
false
false
384
r
corr <- function(directory, threshold = 0) { fileList <- list.files(path = directory, pattern = ".csv", full.names = TRUE) df <- complete(directory) ids <- df[df["nobs"] > threshold, ]$id corrr <- numeric() for(i in ids) { data <- read.csv(fileList[i]) dff <- data[complete.cases(data), ] corrr ...
context("test-to_ASICS") test_that("to_ASICS", { skip_if_not_installed("ASICS") dataset <- new_nmr_dataset_1D(ppm_axis = c(0:10), data_1r = matrix(sample(0:43,replace = FALSE), nrow = 4), metadata = list(external = data.frame(NMRExperiment = c("10", "...
/tests/testthat/test-to_ASICS.R
permissive
tikunov/AlpsNMR
R
false
false
417
r
context("test-to_ASICS") test_that("to_ASICS", { skip_if_not_installed("ASICS") dataset <- new_nmr_dataset_1D(ppm_axis = c(0:10), data_1r = matrix(sample(0:43,replace = FALSE), nrow = 4), metadata = list(external = data.frame(NMRExperiment = c("10", "...
######################################### ### Real data analysis ### Berkely growth data ######################################### setwd("C:\\Users\\user\\Desktop\\KHS\\FDA-Lab\\Sparse FPCA\\Application\\bootstrap_aggregating") library(tidyverse) library(doParallel) # parallel computing library(fdapace) l...
/Sparse FPCA/Application/bootstrap_aggregating/real_data_2.R
permissive
statKim/FDA-Lab
R
false
false
3,375
r
######################################### ### Real data analysis ### Berkely growth data ######################################### setwd("C:\\Users\\user\\Desktop\\KHS\\FDA-Lab\\Sparse FPCA\\Application\\bootstrap_aggregating") library(tidyverse) library(doParallel) # parallel computing library(fdapace) l...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/predict.bgvar.R \name{predict.bgvar} \alias{predict.bgvar} \title{Compute predictions} \usage{ \method{predict}{bgvar}(object, ..., fhorz = 8, save.store = FALSE, verbose = TRUE) } \arguments{ \item{object}{an object of class \code{bgvar}.} ...
/man/predict.bgvar.Rd
no_license
fagan2888/BGVAR
R
false
true
2,020
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/predict.bgvar.R \name{predict.bgvar} \alias{predict.bgvar} \title{Compute predictions} \usage{ \method{predict}{bgvar}(object, ..., fhorz = 8, save.store = FALSE, verbose = TRUE) } \arguments{ \item{object}{an object of class \code{bgvar}.} ...
#read in the full dataset setwd("/Users/levibrackman/Google Drive/R") data <- read.csv("Purpose_Surveys 9.csv") #Drop the first 26 cases and the initial text case data<- as.data.frame(data[-c(1:25),]) #This next bit is complicated as it is a mixture of R and a language called regular expressions so ignore BUT #what I a...
/CPS and ASDQII.R
no_license
yissylevi/work
R
false
false
1,865
r
#read in the full dataset setwd("/Users/levibrackman/Google Drive/R") data <- read.csv("Purpose_Surveys 9.csv") #Drop the first 26 cases and the initial text case data<- as.data.frame(data[-c(1:25),]) #This next bit is complicated as it is a mixture of R and a language called regular expressions so ignore BUT #what I a...
x<-2 y<-3 z<-x+y
/test01.R
no_license
ruby8945/Financial_Date_101
R
false
false
22
r
x<-2 y<-3 z<-x+y
#R Libraries library(RODBC) library(RJSONIO) library(gdata) #ODBC Connection odbcChannel <- odbcConnect("ChicagoCrimeDB") #GeoLocation <- sqlFetch(odbcChannel,"GeoLocationDim")#,rownames = 'GeoLocationDimKey') GeoLocation <- sqlQuery(odbcChannel, paste("SELECT * FROM GeoLocationDim","WHERE ADDRESS IS NULL")) #Ge...
/Pentaho Environment/Scripts/GetLocationDetails.R
no_license
PriyankDsilva/ChicagoCrimeAnalysis
R
false
false
2,459
r
#R Libraries library(RODBC) library(RJSONIO) library(gdata) #ODBC Connection odbcChannel <- odbcConnect("ChicagoCrimeDB") #GeoLocation <- sqlFetch(odbcChannel,"GeoLocationDim")#,rownames = 'GeoLocationDimKey') GeoLocation <- sqlQuery(odbcChannel, paste("SELECT * FROM GeoLocationDim","WHERE ADDRESS IS NULL")) #Ge...
library(shiny) library(rCharts) shinyUI(navbarPage( "Population and Economic Impact of Natural Disasters in USA", tabPanel( "Plot", sidebarPanel( sliderInput( "range", "Year Range:", min = 2000, max = 2010, value = c(2000, 2010), sep = "," ), ...
/ui.R
no_license
Karagul/Natural-Disaster-Impact-with-R-and-Shiny
R
false
false
1,568
r
library(shiny) library(rCharts) shinyUI(navbarPage( "Population and Economic Impact of Natural Disasters in USA", tabPanel( "Plot", sidebarPanel( sliderInput( "range", "Year Range:", min = 2000, max = 2010, value = c(2000, 2010), sep = "," ), ...
svc <- paws::locationservice() test_that("list_geofence_collections", { expect_error(svc$list_geofence_collections(), NA) }) test_that("list_geofence_collections", { expect_error(svc$list_geofence_collections(MaxResults = 20), NA) }) test_that("list_keys", { expect_error(svc$list_keys(), NA) }) test_that("lis...
/cran/paws.application.integration/tests/testthat/test_locationservice.R
permissive
paws-r/paws
R
false
false
1,069
r
svc <- paws::locationservice() test_that("list_geofence_collections", { expect_error(svc$list_geofence_collections(), NA) }) test_that("list_geofence_collections", { expect_error(svc$list_geofence_collections(MaxResults = 20), NA) }) test_that("list_keys", { expect_error(svc$list_keys(), NA) }) test_that("lis...
Sys.setenv(TZ="America/Los_Angeles") source("R/config.R") library(tidyverse) library(stringr) list_of_files <- list.files(path = file.path(dir_out, "period_files"), pattern = ".csv", full.names = TRUE) # CTURB column type causes error here, so skipped - not ide...
/caspar_local/input/working_versions/for AB_4.19.20/4_tb_wide_long_drop.id.vars.R
no_license
seanna-boop/caspar
R
false
false
4,134
r
Sys.setenv(TZ="America/Los_Angeles") source("R/config.R") library(tidyverse) library(stringr) list_of_files <- list.files(path = file.path(dir_out, "period_files"), pattern = ".csv", full.names = TRUE) # CTURB column type causes error here, so skipped - not ide...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cognitoidentityprovider_operations.R \name{cognitoidentityprovider_delete_user_attributes} \alias{cognitoidentityprovider_delete_user_attributes} \title{Deletes the attributes for a user} \usage{ cognitoidentityprovider_delete_user_attributes...
/cran/paws.security.identity/man/cognitoidentityprovider_delete_user_attributes.Rd
permissive
paws-r/paws
R
false
true
909
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cognitoidentityprovider_operations.R \name{cognitoidentityprovider_delete_user_attributes} \alias{cognitoidentityprovider_delete_user_attributes} \title{Deletes the attributes for a user} \usage{ cognitoidentityprovider_delete_user_attributes...
# Source functions for synthpop library to create synthetic data # for the SYLLS project. # Structure and some functions based on code from MICE package # by S. van Buuren and K. Groothuis-Oudshoorn syn <- function(data, method = vector("character",length=ncol(data)), visit.seq...
/synthpop/R/syn.r
no_license
ingted/R-Examples
R
false
false
41,451
r
# Source functions for synthpop library to create synthetic data # for the SYLLS project. # Structure and some functions based on code from MICE package # by S. van Buuren and K. Groothuis-Oudshoorn syn <- function(data, method = vector("character",length=ncol(data)), visit.seq...
library(gh) library(stringr) source(here::here("R/github-lookup-functions.R")) # check for github PAT and error if it is not set ---- # this prevents rate-limiting from otherwise halting execution if (gh_token() == "") { stop("No GitHub PAT detected; please set one before running this script; see https://usethis...
/R/lookup_github_license.R
permissive
dartar/habeas-corpus
R
false
false
975
r
library(gh) library(stringr) source(here::here("R/github-lookup-functions.R")) # check for github PAT and error if it is not set ---- # this prevents rate-limiting from otherwise halting execution if (gh_token() == "") { stop("No GitHub PAT detected; please set one before running this script; see https://usethis...
############################################################################# # test-style_default.R # # Testing default style functions ############################################################################# # style.default.character #############################################################################...
/pubprint/tests/testthat/test-style_default.R
no_license
ingted/R-Examples
R
false
false
1,189
r
############################################################################# # test-style_default.R # # Testing default style functions ############################################################################# # style.default.character #############################################################################...
context("Linear Mixed Models -- Verification project") ## Testing standard LMM --- options <- jaspTools::analysisOptions("MixedModelsLMM") options$Contrasts <- list(list(isContrast=TRUE, levels=list(), name="Contrast 1", values=list())) options$bootstrap_samples <- 500 options$dependentVariable <- "rt" options$fitSt...
/tests/testthat/test-verified-mixedmodelslmm.R
no_license
Owain-S/jaspMixedModels
R
false
false
4,122
r
context("Linear Mixed Models -- Verification project") ## Testing standard LMM --- options <- jaspTools::analysisOptions("MixedModelsLMM") options$Contrasts <- list(list(isContrast=TRUE, levels=list(), name="Contrast 1", values=list())) options$bootstrap_samples <- 500 options$dependentVariable <- "rt" options$fitSt...
#Performs an enrichment analysis between plant compartments per each plants species #Please indicate below the Domain you want to analyze and the taxa rank #Please set endo for endopsheri compartents or epis for epispheric compartments #Directories setwd("C:/Users/victorfn/Google Drive/taxa_enrichment_2020/") ...
/kruskal_species.R
no_license
vicflonun/Agavinetworks
R
false
false
5,350
r
#Performs an enrichment analysis between plant compartments per each plants species #Please indicate below the Domain you want to analyze and the taxa rank #Please set endo for endopsheri compartents or epis for epispheric compartments #Directories setwd("C:/Users/victorfn/Google Drive/taxa_enrichment_2020/") ...
# netExample.RData contains a network generated from the linear preferential attachment data with parameter values # alpha=.2, beta=.5, gamma=.3, xi=rho=0, din=1, dout=2, n=50000 # starting with a self-loop 0->0 # columns: # - from: the node the edge pointed from # - to: the node the edge pointed to # - time: the...
/netExample.R
no_license
phylllis/netEst
R
false
false
1,079
r
# netExample.RData contains a network generated from the linear preferential attachment data with parameter values # alpha=.2, beta=.5, gamma=.3, xi=rho=0, din=1, dout=2, n=50000 # starting with a self-loop 0->0 # columns: # - from: the node the edge pointed from # - to: the node the edge pointed to # - time: the...
#' Single case data frame #' #' `scdf()` is the constructor for the `scdf` class. It stores single-case study #' data with one or more single-cases. #' #' @aliases scdf scdf-class as.scdf #' @param values A vector containing measurement values of the dependent #' variable. #' @param B_start The first measurement of p...
/R/scdf.R
no_license
cran/scan
R
false
false
6,911
r
#' Single case data frame #' #' `scdf()` is the constructor for the `scdf` class. It stores single-case study #' data with one or more single-cases. #' #' @aliases scdf scdf-class as.scdf #' @param values A vector containing measurement values of the dependent #' variable. #' @param B_start The first measurement of p...
dataFile <- "./data/household_power_consumption.txt" ##read datafile into a table data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") #data$Date <- as.Date(data$Date, format="%d/%m/%Y") ## we only need two days of data for plotting subSetData <- data[data$Date %in% c("1/2/2007","2/2/20...
/plot2.R
no_license
naumanC/ExData_Plotting1
R
false
false
629
r
dataFile <- "./data/household_power_consumption.txt" ##read datafile into a table data <- read.table(dataFile, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") #data$Date <- as.Date(data$Date, format="%d/%m/%Y") ## we only need two days of data for plotting subSetData <- data[data$Date %in% c("1/2/2007","2/2/20...
library(shiny) library(shinydashboard) library(plotly) library(shinyjs) library(shinyBS) library(ECharts2Shiny) library(DT) #Inflation rate inflationRate <- fluidRow( column(width = 7, h5("Inflation Rate (%):") ), column(width = 2, numericInput("inflationR", la...
/UI_Result.R
no_license
junyitt/FinanceApp
R
false
false
788
r
library(shiny) library(shinydashboard) library(plotly) library(shinyjs) library(shinyBS) library(ECharts2Shiny) library(DT) #Inflation rate inflationRate <- fluidRow( column(width = 7, h5("Inflation Rate (%):") ), column(width = 2, numericInput("inflationR", la...
#' @title Conditional quantile function of the Gumbel copula #' #' @author Thomas Blanchet, Juliette Fournier, Thomas Piketty #' #' @description Assume (U, V) follows a Gumbel copula. This function gives #' the quantile function of V given U = u. It is used to simulate the Gumbel #' copula. #' #' @param p A number in [...
/R/add-up.R
permissive
thomasblanchet/gpinter
R
false
false
2,999
r
#' @title Conditional quantile function of the Gumbel copula #' #' @author Thomas Blanchet, Juliette Fournier, Thomas Piketty #' #' @description Assume (U, V) follows a Gumbel copula. This function gives #' the quantile function of V given U = u. It is used to simulate the Gumbel #' copula. #' #' @param p A number in [...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/matchRandomPeak.R \name{matchRandomPeak} \alias{matchRandomPeak} \title{matchRandomPeak} \usage{ matchRandomPeak(peak.gr, randomPeaks, txdb, nPeaks = 1e+10) } \arguments{ \item{peak.gr}{The GRange object of peak} \item{randomPeaks}{The GRang...
/man/matchRandomPeak.Rd
no_license
scottzijiezhang/MyTools
R
false
true
397
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/matchRandomPeak.R \name{matchRandomPeak} \alias{matchRandomPeak} \title{matchRandomPeak} \usage{ matchRandomPeak(peak.gr, randomPeaks, txdb, nPeaks = 1e+10) } \arguments{ \item{peak.gr}{The GRange object of peak} \item{randomPeaks}{The GRang...
library(rvest) url<- "https://media.daum.net/ranking/popular/" text <- read_html(url) text node1 <- html_nodes(text, "#mArticle > div.rank_news > ul.list_news2 div.cont_thumb > strong > a") newstitle <- html_text(node1) nodes <- html_nodes(text, "#mArticle > div.rank_news > ul.list_news2 div.cont_thumb > strong > span...
/R 실습/.Rproj.user/D8F31F7/sources/s-67972405/B8BDB2C6-contents
no_license
heejung-choi/R
R
false
false
442
library(rvest) url<- "https://media.daum.net/ranking/popular/" text <- read_html(url) text node1 <- html_nodes(text, "#mArticle > div.rank_news > ul.list_news2 div.cont_thumb > strong > a") newstitle <- html_text(node1) nodes <- html_nodes(text, "#mArticle > div.rank_news > ul.list_news2 div.cont_thumb > strong > span...
readFilesAndFormat=function(compDeseq2File) { if (grepl(".csv$",basename(compDeseq2File))) { #csv file readFun<-function(...) read.csv(...) } else { readFun<-function(...) read.table(...,sep="\t") } deseq2<-try(readFun(compDeseq2File, header=T, row.names=1, stringsAsFactors = F),silent=TRUE) if (clas...
/lib/Annotation/WebGestaltR.r
permissive
shengqh/ngsperl
R
false
false
4,955
r
readFilesAndFormat=function(compDeseq2File) { if (grepl(".csv$",basename(compDeseq2File))) { #csv file readFun<-function(...) read.csv(...) } else { readFun<-function(...) read.table(...,sep="\t") } deseq2<-try(readFun(compDeseq2File, header=T, row.names=1, stringsAsFactors = F),silent=TRUE) if (clas...
testlist <- list(score = NULL, id = NULL, item_score = integer(0), person_id = c(-1296911683L, 312259250L, -1296911872L, 280146610L, -1296911728L, -1296911694L, -1296911694L, -72174926L, -1294942798L, -1296911694L, -1122853710L, -1296911694L, 1094322L, -1296911694L, -1296911694L, -1296911694L, -1296924750L, -129691...
/dexterMST/inst/testfiles/im_booklet_score/AFL_im_booklet_score/im_booklet_score_valgrind_files/1615945000-test.R
no_license
akhikolla/updatedatatype-list1
R
false
false
709
r
testlist <- list(score = NULL, id = NULL, item_score = integer(0), person_id = c(-1296911683L, 312259250L, -1296911872L, 280146610L, -1296911728L, -1296911694L, -1296911694L, -72174926L, -1294942798L, -1296911694L, -1122853710L, -1296911694L, 1094322L, -1296911694L, -1296911694L, -1296911694L, -1296924750L, -129691...
##This script makes the second plot as requested in the Assignment 1 library("data.table") #Download & unzip text file with the dataset setwd("D:/Coursera/Data Science/Exploratory Data Analysis/ExData_Plotting1") url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" file <- "ho...
/plot2.R
no_license
aalferov/ExData_Plotting1
R
false
false
947
r
##This script makes the second plot as requested in the Assignment 1 library("data.table") #Download & unzip text file with the dataset setwd("D:/Coursera/Data Science/Exploratory Data Analysis/ExData_Plotting1") url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" file <- "ho...
lena <- function() { dump("lena", "c:\\MixedModels\\Chapter12\\lena.r") d <- scan("c:\\kluwer\\image\\lena.pgm",what="") N <- 256 d=dr <- matrix(as.numeric(d[12:length(d)]), ncol = N, nrow = N) for(i in 1:N) d[,i]=dr[,N-i+1] dv <- as.vector(d) ix <- 1:N par(mfrow = c(2, 2), mar = c(1, 1, 2, 1)) image(ix, ix,...
/Data/MixedModels/Chapter12/lena.r
no_license
anhnguyendepocen/mixedmodels
R
false
false
1,249
r
lena <- function() { dump("lena", "c:\\MixedModels\\Chapter12\\lena.r") d <- scan("c:\\kluwer\\image\\lena.pgm",what="") N <- 256 d=dr <- matrix(as.numeric(d[12:length(d)]), ncol = N, nrow = N) for(i in 1:N) d[,i]=dr[,N-i+1] dv <- as.vector(d) ix <- 1:N par(mfrow = c(2, 2), mar = c(1, 1, 2, 1)) image(ix, ix,...
\name{TOHM-package} \alias{TOHM-package} \alias{TOHM} \docType{package} \title{\packageTitle{TOHM}} \description{\packageDescription{TOHM}} \details{ The functions collected in \code{TOHM} mainly focus on the implementation of the Likelihood Ratio Tests (see \code{\link{TOHM_LRT}}). However, several functions (e...
/man/TOHM-package.Rd
no_license
cran/TOHM
R
false
false
2,193
rd
\name{TOHM-package} \alias{TOHM-package} \alias{TOHM} \docType{package} \title{\packageTitle{TOHM}} \description{\packageDescription{TOHM}} \details{ The functions collected in \code{TOHM} mainly focus on the implementation of the Likelihood Ratio Tests (see \code{\link{TOHM_LRT}}). However, several functions (e...
## ---- include = FALSE--------------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) library(qacEDA) library(knitr) ## ----message=FALSE, warning=FALSE--------------------------------------------- data(cars74) ## ----message=FALSE, warning=FALSE----------------...
/vignettes/contents.R
permissive
Rkabacoff/qacEDA
R
false
false
690
r
## ---- include = FALSE--------------------------------------------------------- knitr::opts_chunk$set( collapse = TRUE, comment = "#>" ) library(qacEDA) library(knitr) ## ----message=FALSE, warning=FALSE--------------------------------------------- data(cars74) ## ----message=FALSE, warning=FALSE----------------...
library(weights) ### Name: stdz ### Title: Standardizes any numerical vector, with weights. ### Aliases: stdz ### Keywords: ~standardize ~standardization ~weights ### ** Examples test <- c(1,1,1,1,1,1,2,2,2,3,3,3,4,4) weight <- c(.5,.5,.5,.5,.5,1,1,1,1,2,2,2,2,2) summary(stdz(test)) summary(stdz(test, weight)) wtd...
/data/genthat_extracted_code/weights/examples/stdz.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
393
r
library(weights) ### Name: stdz ### Title: Standardizes any numerical vector, with weights. ### Aliases: stdz ### Keywords: ~standardize ~standardization ~weights ### ** Examples test <- c(1,1,1,1,1,1,2,2,2,3,3,3,4,4) weight <- c(.5,.5,.5,.5,.5,1,1,1,1,2,2,2,2,2) summary(stdz(test)) summary(stdz(test, weight)) wtd...
# Longline Survey cpue # Author: Jane Sullivan # Contact: jane.sullivan@noaa.gov # Last edited: Feb 2021 # The most version of this "V2" calculates survey cpue at the set level and may # standardized by soak time, depth, lat/lon, tide, and catch of other species. # v2 also includes a more rigorous review of invalid sk...
/2022/r/llsurvey_cpue.R
no_license
commfish/seak_sablefish
R
false
false
27,058
r
# Longline Survey cpue # Author: Jane Sullivan # Contact: jane.sullivan@noaa.gov # Last edited: Feb 2021 # The most version of this "V2" calculates survey cpue at the set level and may # standardized by soak time, depth, lat/lon, tide, and catch of other species. # v2 also includes a more rigorous review of invalid sk...
context("Testing ability to create CQL strings") suppressPackageStartupMessages(library(sf, quietly = TRUE)) the_geom <- st_sf(st_sfc(st_point(c(1,1)))) test_that("bcdc_cql_string fails when an invalid arguments are given",{ expect_error(bcdc_cql_string(the_geom, "FOO")) expect_error(bcdc_cql_string(quakes, "DWIT...
/tests/testthat/test-cql-string.R
permissive
steffilazerte/bcdata
R
false
false
1,944
r
context("Testing ability to create CQL strings") suppressPackageStartupMessages(library(sf, quietly = TRUE)) the_geom <- st_sf(st_sfc(st_point(c(1,1)))) test_that("bcdc_cql_string fails when an invalid arguments are given",{ expect_error(bcdc_cql_string(the_geom, "FOO")) expect_error(bcdc_cql_string(quakes, "DWIT...
#' scale_x_yearmonth #' #' Makes y-axis have year as a bottom facet, with abbreviated months as minor axis-labels. #' #' Code inspired by \href{http://www.jasonfabris.com/blog/dteformat/}{This post by Jason Fabris} #' #' @param abbrev How long to make months? Default=1 means just first letter of month; NA is full month...
/R/scale_x_yearmonth.R
permissive
galacticpolymath/galacticEdTools
R
false
false
2,627
r
#' scale_x_yearmonth #' #' Makes y-axis have year as a bottom facet, with abbreviated months as minor axis-labels. #' #' Code inspired by \href{http://www.jasonfabris.com/blog/dteformat/}{This post by Jason Fabris} #' #' @param abbrev How long to make months? Default=1 means just first letter of month; NA is full month...
#require(corrplot) #require(fields) data_pts<-read.table("d:/myrworks/dim512.txt",header=FALSE) data_pts<-data.matrix(data_pts) colnames(data_pts)<-NULL data_pts<-t(data_pts) num_pts<-1024 indexes<-sample.int(num_pts,num_pts) data_pts<-data_pts[,indexes] true_centers<-read.table("d:/myrworks/dim512_ans...
/Big Data Analytics (R)/FinalProject_Hdim.R
no_license
WillCheung2016/mycodes
R
false
false
8,753
r
#require(corrplot) #require(fields) data_pts<-read.table("d:/myrworks/dim512.txt",header=FALSE) data_pts<-data.matrix(data_pts) colnames(data_pts)<-NULL data_pts<-t(data_pts) num_pts<-1024 indexes<-sample.int(num_pts,num_pts) data_pts<-data_pts[,indexes] true_centers<-read.table("d:/myrworks/dim512_ans...
# using Rscript # if doesn't work, add Rscript to PATH args <- commandArgs(trailingOnly = TRUE); source('setup.R'); source('loadAll.R'); print(args); errFile <- args[1]; fnFile <- args[2]; trFile <- args[3]; # error plot first... png(filename="../regression_err.png"); err <- readcsv(errFile); error_plot(err$it, er...
/Rplots/regression_script.R
permissive
sealionkat/sn-mlp
R
false
false
513
r
# using Rscript # if doesn't work, add Rscript to PATH args <- commandArgs(trailingOnly = TRUE); source('setup.R'); source('loadAll.R'); print(args); errFile <- args[1]; fnFile <- args[2]; trFile <- args[3]; # error plot first... png(filename="../regression_err.png"); err <- readcsv(errFile); error_plot(err$it, er...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/modeltime-accuracy.R \name{summarize_accuracy_metrics} \alias{summarize_accuracy_metrics} \title{Summarize Accuracy Metrics} \usage{ summarize_accuracy_metrics(data, truth, estimate, metric_set) } \arguments{ \item{data}{A \code{data.frame} c...
/man/summarize_accuracy_metrics.Rd
permissive
TrendingTechnology/modeltime
R
false
true
745
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/modeltime-accuracy.R \name{summarize_accuracy_metrics} \alias{summarize_accuracy_metrics} \title{Summarize Accuracy Metrics} \usage{ summarize_accuracy_metrics(data, truth, estimate, metric_set) } \arguments{ \item{data}{A \code{data.frame} c...
library(shiny) shinyUI(fluidPage(pageWithSidebar( headerPanel("FinanceScraper.io"), mainPanel( #textOutput("Scraper"), dataTableOutput("Table") ), sidebarPanel( mainPanel("We aggregate Financial News from the world's most influential websites in the indust...
/ui.R
no_license
kgm01/FinanceWebscraper
R
false
false
580
r
library(shiny) shinyUI(fluidPage(pageWithSidebar( headerPanel("FinanceScraper.io"), mainPanel( #textOutput("Scraper"), dataTableOutput("Table") ), sidebarPanel( mainPanel("We aggregate Financial News from the world's most influential websites in the indust...
# # sast_2017.R, 29 Mar 19 # Data from: # On the costs of applying logic-based criteria to mobile applications: An empirical analysis of predicates in real-world Objective-C and Swift applications # Juliana Botelho and Vinicius H. S. Durelli and Simone S. Borges and Andre T. Endo and Marcelo M. Eler and Marcio E. Delam...
/sourcecode/sast_2017.R
no_license
Derek-Jones/ESEUR-code-data
R
false
false
1,981
r
# # sast_2017.R, 29 Mar 19 # Data from: # On the costs of applying logic-based criteria to mobile applications: An empirical analysis of predicates in real-world Objective-C and Swift applications # Juliana Botelho and Vinicius H. S. Durelli and Simone S. Borges and Andre T. Endo and Marcelo M. Eler and Marcio E. Delam...
#' Create Goal Tracker InfoBoxT Values #' #' This function Creates Goal Tracker InfoBoxT Values. #' #' Requires: #' #' @param t_actual Actual values. #' @param t_goal User Goal values. #' @return Formatted array of values for InfoBoxT #' @export #' @examples #' GT_InfoBoxT_Vals <- function(t_actual, t_goal, t_type) { ...
/rsell/R/GT_InfoBoxT_Vals.R
no_license
t2tech-corp/Rsell-Packages
R
false
false
944
r
#' Create Goal Tracker InfoBoxT Values #' #' This function Creates Goal Tracker InfoBoxT Values. #' #' Requires: #' #' @param t_actual Actual values. #' @param t_goal User Goal values. #' @return Formatted array of values for InfoBoxT #' @export #' @examples #' GT_InfoBoxT_Vals <- function(t_actual, t_goal, t_type) { ...
setwd("D:/HDF/hdfco") library(gdalUtils) library(rgdal) library("rhdf5") library(raster) library(sp) library(raster) library(sf) ##for reading shp file library(raster) ##creating rasters library(rasterVis) ## To visiualize the rasters library(sommer) ## for theme shp_path <- "D:/HDF/shp" shp_name <- "Worl...
/code/co/aprband2020.R
no_license
samyam200200/AQI-Indian-Subcontinent
R
false
false
1,659
r
setwd("D:/HDF/hdfco") library(gdalUtils) library(rgdal) library("rhdf5") library(raster) library(sp) library(raster) library(sf) ##for reading shp file library(raster) ##creating rasters library(rasterVis) ## To visiualize the rasters library(sommer) ## for theme shp_path <- "D:/HDF/shp" shp_name <- "Worl...
/An_Introduction_to_R_Software_for_Statistical_Modelling_Computing/Rscripts/01 Whirlwind Tour of R.R
no_license
burakbayramli/books
R
false
false
5,775
r
rm(list = ls()) source("0_functions.R") library("haven") library("tidyverse") library("countrycode") library("WDI") library("mice") # ---- Load Japan data ---- d_raw <- readRDS("../data_clean/JapanFDI_long.RData") d_raw_labels <- readRDS("../data_clean/JapanFDI_labels.RData") glimpse(d_raw) # Remove all countries w...
/code/22_prepare_japan_analysis.R
no_license
anhqle/two_sided_matching_empirical
R
false
false
2,228
r
rm(list = ls()) source("0_functions.R") library("haven") library("tidyverse") library("countrycode") library("WDI") library("mice") # ---- Load Japan data ---- d_raw <- readRDS("../data_clean/JapanFDI_long.RData") d_raw_labels <- readRDS("../data_clean/JapanFDI_labels.RData") glimpse(d_raw) # Remove all countries w...
bookdown_file = function(...) { system.file(..., package = 'bookdown') } # find the y[j] closest to x[i] with y[j] > x[i] next_nearest = function(x, y) { n = length(x); m = length(y); z = integer(n) for (i in seq_len(n)) { for (j in seq_len(m)) { if (y[j] > x[i]) { z[i] = y[j] break ...
/R/utils.R
no_license
jjallaire/bookdown
R
false
false
8,033
r
bookdown_file = function(...) { system.file(..., package = 'bookdown') } # find the y[j] closest to x[i] with y[j] > x[i] next_nearest = function(x, y) { n = length(x); m = length(y); z = integer(n) for (i in seq_len(n)) { for (j in seq_len(m)) { if (y[j] > x[i]) { z[i] = y[j] break ...
## R script to create 'plot1.png' ## Download the zip file for 'Individual household electric power consumption Data Set' made available ## on the course website and extract it into the working directory ## 'na.strings' argument in the read.csv replaces any '?' values with NA hpc <- read.csv(file = 'household_power...
/plot1.R
no_license
vu3jej/ExData_Plotting1
R
false
false
778
r
## R script to create 'plot1.png' ## Download the zip file for 'Individual household electric power consumption Data Set' made available ## on the course website and extract it into the working directory ## 'na.strings' argument in the read.csv replaces any '?' values with NA hpc <- read.csv(file = 'household_power...
## R Programming Assignment 2 Week 3: Caching the Inverse of a Matrix. ## Assignment consists in creating 2 functions that will benefit the costly computation of the inverse ## of a matrix by (1) creating a "special" matrix to cache the inverse of a matrix (instead of computing ## it repeatedly) an...
/cachematrix.R
no_license
nicolasbp87/ProgrammingAssignment2
R
false
false
2,022
r
## R Programming Assignment 2 Week 3: Caching the Inverse of a Matrix. ## Assignment consists in creating 2 functions that will benefit the costly computation of the inverse ## of a matrix by (1) creating a "special" matrix to cache the inverse of a matrix (instead of computing ## it repeatedly) an...
############################################################################################ # SPERA - Sponge reef ROV tracking # Cruise Pac2013-070 - December 2013 # Cruise Pac2012-068 - September 2012 # # Objective: Estimate the position and depth for each timestamp # # Summary: Read in nav data cs...
/SPERA_ROV_missing_timestamps.R
no_license
sare-ah/SPERA_SoG_spngreefs
R
false
false
5,832
r
############################################################################################ # SPERA - Sponge reef ROV tracking # Cruise Pac2013-070 - December 2013 # Cruise Pac2012-068 - September 2012 # # Objective: Estimate the position and depth for each timestamp # # Summary: Read in nav data cs...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_RVP.R \name{plot_lollipop} \alias{plot_lollipop} \title{Returns a ggplot2 object.} \usage{ plot_lollipop(dat) } \arguments{ \item{dat}{A list including a dataframe, data, and labels, labs. data has columns: percentage, SuppliesSplit, mea...
/man/plot_lollipop.Rd
no_license
FabienNicol/suppliesdash
R
false
true
465
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plot_RVP.R \name{plot_lollipop} \alias{plot_lollipop} \title{Returns a ggplot2 object.} \usage{ plot_lollipop(dat) } \arguments{ \item{dat}{A list including a dataframe, data, and labels, labs. data has columns: percentage, SuppliesSplit, mea...
#! /usr/bin/env Rscript #SBATCH -n 1 # (Max) number of tasks per job, for R usually 1 #SBATCH -t 60 #SBATCH -o dump/%A_%a.out # File for the standard output #SBATCH -e dump/%A_%a.err # File for the standard error #SBATCH --open-mode=append ...
/pset2_posted/pset2/keskici_wxiao_ps2_task4.slurm
no_license
willyxiao/stat221
R
false
false
847
slurm
#! /usr/bin/env Rscript #SBATCH -n 1 # (Max) number of tasks per job, for R usually 1 #SBATCH -t 60 #SBATCH -o dump/%A_%a.out # File for the standard output #SBATCH -e dump/%A_%a.err # File for the standard error #SBATCH --open-mode=append ...
## Downloads file if it does not already exist in directory if(!file.exists("exdata_data_household_power_consumption.zip")) { temp <- tempfile() download.file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",temp) file <- unzip(temp) unlink(temp) } ## Define data set to be...
/plot4.R
no_license
kabanaty/ExData_Plotting1
R
false
false
2,317
r
## Downloads file if it does not already exist in directory if(!file.exists("exdata_data_household_power_consumption.zip")) { temp <- tempfile() download.file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",temp) file <- unzip(temp) unlink(temp) } ## Define data set to be...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/day03.R \name{day03} \alias{day03} \alias{count_overlapping_fabric_claims} \alias{find_unique_fabric_claim} \title{Day 03: No Matter How You Slice It} \usage{ count_overlapping_fabric_claims(x) find_unique_fabric_claim(x) } \arguments{ \item...
/man/day03.Rd
no_license
tjmahr/adventofcode18
R
false
true
3,436
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/day03.R \name{day03} \alias{day03} \alias{count_overlapping_fabric_claims} \alias{find_unique_fabric_claim} \title{Day 03: No Matter How You Slice It} \usage{ count_overlapping_fabric_claims(x) find_unique_fabric_claim(x) } \arguments{ \item...
######################################################### ## Bayesian Statistics: introduction ## Instructor: Jason Guo ## Quant III Lab 10 ######################################################### ################################ # Simulate beta distribution ### ################################ library(foreign) libra...
/w10/week10_introduction.R
no_license
jasonqiangguo/Quant3_Lab
R
false
false
3,531
r
######################################################### ## Bayesian Statistics: introduction ## Instructor: Jason Guo ## Quant III Lab 10 ######################################################### ################################ # Simulate beta distribution ### ################################ library(foreign) libra...
# hw11 lapply(c("tidyverse","ISLR"),library, character.only=TRUE) # 1. curve(1+3*x, -5, 5) # 2. ## (a) circleFun <- function(center = c(-1,2),diameter = 4, npoints = 100){ r = diameter / 2 tt <- seq(0,2*pi,length.out = npoints) xx <- center[1] + r * cos(tt) yy <- center[2] + r * sin(tt) return(data.frame(...
/Mine/mine/hw11/hw11.R
no_license
subaiwen/ML
R
false
false
2,752
r
# hw11 lapply(c("tidyverse","ISLR"),library, character.only=TRUE) # 1. curve(1+3*x, -5, 5) # 2. ## (a) circleFun <- function(center = c(-1,2),diameter = 4, npoints = 100){ r = diameter / 2 tt <- seq(0,2*pi,length.out = npoints) xx <- center[1] + r * cos(tt) yy <- center[2] + r * sin(tt) return(data.frame(...
# Equipo 1 # Sustitución hacia atrás back_sust<-function(A,b){ n<-ncol(A) x<-rep(NA,n) x[n]<-b[n]/A[n,n] for(i in rev(1:(n-1))){ x[i]<-(b[i]-A[i,(i+1):n]%*%x[(i+1):n])/A[i,i] } return(x) } # Evaluamos con el ejercicio 1 A<-matrix(c(4,-1,2,3,0,-2,7,-4,0,0,6,5,0,0,0,3),nrow=4,byrow=T) b<-c(20,-7,4,6) ...
/analisisnum-jorgealtamirano/participaciones-adicionales-2019/3-ejercicios/sust_hacia_delante_hacia_atras/equipo1_sust_delante_atras.R
permissive
philwebsurfer/analisis-numerico-computo-cientifico
R
false
false
661
r
# Equipo 1 # Sustitución hacia atrás back_sust<-function(A,b){ n<-ncol(A) x<-rep(NA,n) x[n]<-b[n]/A[n,n] for(i in rev(1:(n-1))){ x[i]<-(b[i]-A[i,(i+1):n]%*%x[(i+1):n])/A[i,i] } return(x) } # Evaluamos con el ejercicio 1 A<-matrix(c(4,-1,2,3,0,-2,7,-4,0,0,6,5,0,0,0,3),nrow=4,byrow=T) b<-c(20,-7,4,6) ...
# Author: Robert J. Hijmans # Date : July 2010 # Version 1.0 # Licence GPL v3 # Based on functions in R package 'RgoogleMaps' # by Markus Loecher, Sense Networks <markus at sensenetworks.com> # October 2012 # Updated with contributions by Sebastien Rochette gmap <- function(x, exp=1, type='terrain', filename='', s...
/R/gmap.R
no_license
RTbecard/dismo
R
false
false
6,243
r
# Author: Robert J. Hijmans # Date : July 2010 # Version 1.0 # Licence GPL v3 # Based on functions in R package 'RgoogleMaps' # by Markus Loecher, Sense Networks <markus at sensenetworks.com> # October 2012 # Updated with contributions by Sebastien Rochette gmap <- function(x, exp=1, type='terrain', filename='', s...
library(shiny) library(ggplot2) library(stringr) library(plotly) beerData <- read.csv("beerData.csv") aggData <- read.csv("aggBeerData.csv", encoding = "UTF-8") shinyUI(fluidPage( theme = "w3.css", titlePanel(""), navbarPage("", tabPanel("Trends", ...
/ui.R
no_license
tobrom/b-analysis
R
false
false
5,234
r
library(shiny) library(ggplot2) library(stringr) library(plotly) beerData <- read.csv("beerData.csv") aggData <- read.csv("aggBeerData.csv", encoding = "UTF-8") shinyUI(fluidPage( theme = "w3.css", titlePanel(""), navbarPage("", tabPanel("Trends", ...
# Functions for parsing and pre-processing PhyloProfile input #' Get list of pre-installed NCBI taxon names #' @description Get all NCBI taxon names from "data/taxonNamesReduced.txt" #' @export #' @return List of taxon IDs, their full names, taxonomy ranks and parent IDs #' @importFrom utils download.file #' @author V...
/R/parsePhyloProfile.R
permissive
ermali7/PhyloProfile
R
false
false
32,236
r
# Functions for parsing and pre-processing PhyloProfile input #' Get list of pre-installed NCBI taxon names #' @description Get all NCBI taxon names from "data/taxonNamesReduced.txt" #' @export #' @return List of taxon IDs, their full names, taxonomy ranks and parent IDs #' @importFrom utils download.file #' @author V...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/endpoints-bulk.R \name{make_bulk_batch_details_url} \alias{make_bulk_batch_details_url} \title{Bulk Batch Details URL Generator} \usage{ make_bulk_batch_details_url(job_id, batch_id, api_type = c("Bulk 1.0")) } \arguments{ \item{job_id}{\code...
/man/make_bulk_batch_details_url.Rd
permissive
StevenMMortimer/salesforcer
R
false
true
1,051
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/endpoints-bulk.R \name{make_bulk_batch_details_url} \alias{make_bulk_batch_details_url} \title{Bulk Batch Details URL Generator} \usage{ make_bulk_batch_details_url(job_id, batch_id, api_type = c("Bulk 1.0")) } \arguments{ \item{job_id}{\code...
body <- mainPanel( tags$head(tags$style(HTML('.skin-blue .main-header .navbar .sidebar-toggle:hover{ background-color: black; }'))), fluidRow( box( title = "new customer", width = 6, solidHeader = TRUE,background = "black", plotOutput('new_c...
/ui.R
no_license
cocolin041/target_setup
R
false
false
2,008
r
body <- mainPanel( tags$head(tags$style(HTML('.skin-blue .main-header .navbar .sidebar-toggle:hover{ background-color: black; }'))), fluidRow( box( title = "new customer", width = 6, solidHeader = TRUE,background = "black", plotOutput('new_c...
shinyUI(bootstrapPage( tagList( tags$head( tags$link(rel="stylesheet", type="text/css",href="style.css"), tags$script(type="text/javascript", src = "md5.js"), tags$script(type="text/javascript", src = "passwdInputBinding.js") ) ), ## Login module; div(class = "login", uiOutput...
/shiny_application/ui.R
no_license
bigfacebig/singlecellcd8ibd
R
false
false
460
r
shinyUI(bootstrapPage( tagList( tags$head( tags$link(rel="stylesheet", type="text/css",href="style.css"), tags$script(type="text/javascript", src = "md5.js"), tags$script(type="text/javascript", src = "passwdInputBinding.js") ) ), ## Login module; div(class = "login", uiOutput...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/report_space.R \name{report_space} \alias{report_space} \title{Report the memory usage of a data frame} \usage{ report_space(df1, df2 = NULL, top = NULL, show_plot = FALSE) } \arguments{ \item{df1}{A data frame} \item{df2}{An optional second...
/man/report_space.Rd
no_license
j450h1/reporter
R
false
true
941
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/report_space.R \name{report_space} \alias{report_space} \title{Report the memory usage of a data frame} \usage{ report_space(df1, df2 = NULL, top = NULL, show_plot = FALSE) } \arguments{ \item{df1}{A data frame} \item{df2}{An optional second...
class_degree_dist <- function(file, mode_select="total", weighted=FALSE, weight_vals=NULL, title_select="Degree Distribution by Neuron Class", output="graph", bwidth=5, xtick=10, ytick=5, pos="dodge", ymax=25){ if(weighted == FALSE)...
/code/class_degree_dist.R
no_license
c-schumacher/Connectome-Modeling
R
false
false
1,529
r
class_degree_dist <- function(file, mode_select="total", weighted=FALSE, weight_vals=NULL, title_select="Degree Distribution by Neuron Class", output="graph", bwidth=5, xtick=10, ytick=5, pos="dodge", ymax=25){ if(weighted == FALSE)...