content
large_stringlengths
0
6.46M
path
large_stringlengths
3
331
license_type
large_stringclasses
2 values
repo_name
large_stringlengths
5
125
language
large_stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.46M
extension
large_stringclasses
75 values
text
stringlengths
0
6.46M
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/regression.R \name{regplot} \alias{regplot} \title{Plot function for a regression model} \usage{ regplot(model, x, y, margin = 0.1, ...) } \arguments{ \item{model}{The model to be plotted.} \item{x}{The predictor \code{vector}.} \item{y}{Th...
/man/regplot.Rd
no_license
cran/fdm2id
R
false
true
656
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/regression.R \name{regplot} \alias{regplot} \title{Plot function for a regression model} \usage{ regplot(model, x, y, margin = 0.1, ...) } \arguments{ \item{model}{The model to be plotted.} \item{x}{The predictor \code{vector}.} \item{y}{Th...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gen-namespace-docs.R, % R/gen-namespace-examples.R \name{torch_chunk} \alias{torch_chunk} \title{Chunk} \arguments{ \item{input}{(Tensor) the tensor to split} \item{chunks}{(int) number of chunks to return} \item{dim}{(int) dimension alon...
/man/torch_chunk.Rd
permissive
minghao2016/torch
R
false
true
648
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gen-namespace-docs.R, % R/gen-namespace-examples.R \name{torch_chunk} \alias{torch_chunk} \title{Chunk} \arguments{ \item{input}{(Tensor) the tensor to split} \item{chunks}{(int) number of chunks to return} \item{dim}{(int) dimension alon...
gsea <- function(rnk, gmt, gmt.path=NULL, nperm=1e3, output.dir=NULL, output.name=NULL){ gsea.jar = "~/Projects/GSEA/src/gsea/gsea2-2.0.13.jar" output.dir = if(is.null(output.dir)) tempdir() else output.dir gmt.file ...
/R/gsea.R
no_license
erickramer/GSEAR
R
false
false
1,988
r
gsea <- function(rnk, gmt, gmt.path=NULL, nperm=1e3, output.dir=NULL, output.name=NULL){ gsea.jar = "~/Projects/GSEA/src/gsea/gsea2-2.0.13.jar" output.dir = if(is.null(output.dir)) tempdir() else output.dir gmt.file ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/model_functions.R \name{predict6_8_unique} \alias{predict6_8_unique} \title{Produce model estimated (p=6, topology=8, unique portion) y-coordinates of the kmer spectra given the kmer size, repetitiveness, average polyploid kmer coverage, bias...
/man/predict6_8_unique.Rd
permissive
tbenavi1/genomescope2.0
R
false
true
1,402
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/model_functions.R \name{predict6_8_unique} \alias{predict6_8_unique} \title{Produce model estimated (p=6, topology=8, unique portion) y-coordinates of the kmer spectra given the kmer size, repetitiveness, average polyploid kmer coverage, bias...
context("surv.akritas") test_that("autotest", { learner <- LearnerSurvAkritas$new() expect_learner(learner) result <- run_autotest(learner, check_replicable = FALSE, exclude = "single") expect_true(result, info = result$error) }) test_that("akritas", { expect_error(akritas(Surv(time, status) ~ .)) expect_...
/tests/testthat/test_surv_akritas.R
no_license
mlr3learners/mlr3learners.proba
R
false
false
1,278
r
context("surv.akritas") test_that("autotest", { learner <- LearnerSurvAkritas$new() expect_learner(learner) result <- run_autotest(learner, check_replicable = FALSE, exclude = "single") expect_true(result, info = result$error) }) test_that("akritas", { expect_error(akritas(Surv(time, status) ~ .)) expect_...
#' Standard population data #' #' Functions \link{rii} and \link{st_rate} use standard population weights to calculate direct standardized #' rates for health outcomes. A number of more frequently used standard population weights come with the package. #' The below table describes these weights. #' #' \tabular{lr...
/R/st_pop.R
no_license
cran/SocEpi
R
false
false
2,980
r
#' Standard population data #' #' Functions \link{rii} and \link{st_rate} use standard population weights to calculate direct standardized #' rates for health outcomes. A number of more frequently used standard population weights come with the package. #' The below table describes these weights. #' #' \tabular{lr...
library(shiny) ui = fluidPage( titlePanel("Multiple Choice "), sidebarLayout( sidebarPanel( sliderInput("num", "Number", 1, 10, 1,step = 1)), radioButtons("choice", "Output Type:", c("Table" = "tabl", "Factorial" = "fact")) ), mainPanel( tableOutput("print") ) ...
/Basics/Developing Data Products/Shiny/IBM Shiny Class/CombinedTableFact/app.R
permissive
AnanduR32/Datascience
R
false
false
698
r
library(shiny) ui = fluidPage( titlePanel("Multiple Choice "), sidebarLayout( sidebarPanel( sliderInput("num", "Number", 1, 10, 1,step = 1)), radioButtons("choice", "Output Type:", c("Table" = "tabl", "Factorial" = "fact")) ), mainPanel( tableOutput("print") ) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Basic_CleanUp.R \name{EndoPaste} \alias{EndoPaste} \title{Paste endoscopy and histology results into one} \usage{ EndoPaste(x) } \arguments{ \item{x}{the dataframe} } \value{ This returns a list with a dataframe containing one column of the m...
/man/EndoPaste.Rd
permissive
ropensci/EndoMineR
R
false
true
1,315
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Basic_CleanUp.R \name{EndoPaste} \alias{EndoPaste} \title{Paste endoscopy and histology results into one} \usage{ EndoPaste(x) } \arguments{ \item{x}{the dataframe} } \value{ This returns a list with a dataframe containing one column of the m...
internal_generate_DESeq2_contrast_strings <- function(sampleSheet, grp = "grp", orderParams = "Time"){ # Generate all unique pairwise comparisons for contrasting DESeq2 results # sampleSheet = metafile # grp = column in sampleSheet by which to stratify contrasts # orderParams = columns in sampleSheet wh...
/Scripts/NystLib/R/DESeq2_utils.R
no_license
mckaylabunc/nystrom-niederhuber_development_2020
R
false
false
15,344
r
internal_generate_DESeq2_contrast_strings <- function(sampleSheet, grp = "grp", orderParams = "Time"){ # Generate all unique pairwise comparisons for contrasting DESeq2 results # sampleSheet = metafile # grp = column in sampleSheet by which to stratify contrasts # orderParams = columns in sampleSheet wh...
testlist <- list(bytes1 = integer(0), pmutation = 5.43222637678158e-312) result <- do.call(mcga:::ByteCodeMutation,testlist) str(result)
/mcga/inst/testfiles/ByteCodeMutation/libFuzzer_ByteCodeMutation/ByteCodeMutation_valgrind_files/1612886806-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
136
r
testlist <- list(bytes1 = integer(0), pmutation = 5.43222637678158e-312) result <- do.call(mcga:::ByteCodeMutation,testlist) str(result)
#' Searches variable string in the dictionary #' #' Searches variable string provided in the dictionary to map it in the vocabulary, in order to get #' all the necessary information for variable homogenization. It also includes a new column specifying the #' aggregation function to be applied (if any). #' #' @param d...
/R/dictionaryLookup.R
no_license
Predictia/downscaleR
R
false
false
3,057
r
#' Searches variable string in the dictionary #' #' Searches variable string provided in the dictionary to map it in the vocabulary, in order to get #' all the necessary information for variable homogenization. It also includes a new column specifying the #' aggregation function to be applied (if any). #' #' @param d...
# Example of stacked SDM on S. melinus # Jeffrey C. Oliver # jcoliver@email.arizona.edu # 2017-11-17 rm(list = ls()) ################################################################################ # install.packages("gtools", "SSDM") library("SSDM") library("dismo") #################################################...
/scripts/ensemble-sdm-iNat-xanthoides.R
permissive
jcoliver/ebutterfly-sdm
R
false
false
5,360
r
# Example of stacked SDM on S. melinus # Jeffrey C. Oliver # jcoliver@email.arizona.edu # 2017-11-17 rm(list = ls()) ################################################################################ # install.packages("gtools", "SSDM") library("SSDM") library("dismo") #################################################...
#' #' Proporção de óbitos por causas mal definidas - C.5 #' #' Follows the RIPSA 2012 card \url{http://fichas.ripsa.org.br/2012/c-5} #' #' @param conn Connection object created with \code{\link{pcdas_connect}}. #' @param ano numeric. Year. #' @param multi Indicator multiplier. Defaults to RIPSA recommendation. #' #' @r...
/R/indi_c.5.R
no_license
rfsaldanha/pcdasindi-1
R
false
false
856
r
#' #' Proporção de óbitos por causas mal definidas - C.5 #' #' Follows the RIPSA 2012 card \url{http://fichas.ripsa.org.br/2012/c-5} #' #' @param conn Connection object created with \code{\link{pcdas_connect}}. #' @param ano numeric. Year. #' @param multi Indicator multiplier. Defaults to RIPSA recommendation. #' #' @r...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hydro_analysis.R \name{wbt_average_upslope_flowpath_length} \alias{wbt_average_upslope_flowpath_length} \title{Average upslope flowpath length} \usage{ wbt_average_upslope_flowpath_length( dem, output, wd = NULL, verbose_mode = FALSE ...
/man/wbt_average_upslope_flowpath_length.Rd
permissive
gitWayneZhang/whiteboxR
R
false
true
692
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hydro_analysis.R \name{wbt_average_upslope_flowpath_length} \alias{wbt_average_upslope_flowpath_length} \title{Average upslope flowpath length} \usage{ wbt_average_upslope_flowpath_length( dem, output, wd = NULL, verbose_mode = FALSE ...
# Definiert den Punkt als globale Variable... # ..um Fehlermeldungen beim Package-Building zu umgehen. utils::globalVariables(".")
/R/global.R
permissive
dnlvgt/rktiq
R
false
false
132
r
# Definiert den Punkt als globale Variable... # ..um Fehlermeldungen beim Package-Building zu umgehen. utils::globalVariables(".")
#' Interactive interface to ggplot2 #' #' Provides a menu selection system (via \code{manipulate}) so that the variables #' for different aspects of a plot can be selected interactively. The \code{ggplot2} #' command for generating the plot currently being displayed is copied to the console, #' whence it can be copied...
/R/graphicsHelpers.R
no_license
DataComputing/DataComputing-2016
R
false
false
10,464
r
#' Interactive interface to ggplot2 #' #' Provides a menu selection system (via \code{manipulate}) so that the variables #' for different aspects of a plot can be selected interactively. The \code{ggplot2} #' command for generating the plot currently being displayed is copied to the console, #' whence it can be copied...
rm(list=ls()) ## capture all the output to a file. setwd("/work/project/LOGS") file.create("inventory.Rout", overwrite = TRUE) zz <- file("/work/project/LOGS/inventory.Rout", open = "wt") sink(zz) # =========================================================== # INVENTORY.R # ================================...
/rollcall.r
no_license
ekg555/dump
R
false
false
3,597
r
rm(list=ls()) ## capture all the output to a file. setwd("/work/project/LOGS") file.create("inventory.Rout", overwrite = TRUE) zz <- file("/work/project/LOGS/inventory.Rout", open = "wt") sink(zz) # =========================================================== # INVENTORY.R # ================================...
sym.sd <- function(sym.var,method=c('centers','interval','billard','histogram'),na.rm=FALSE, ...) { method<-match.arg(method) if(method=='centers') { if(sym.var$var.type=='$C') return(sd(sym.var$var.data.vector)) if(sym.var$var.type=='$I') return(sd(sym.var$var.data.vector[,1]+sym.var$var.dat...
/RSDA/R/sym.sd.R
no_license
ingted/R-Examples
R
false
false
1,479
r
sym.sd <- function(sym.var,method=c('centers','interval','billard','histogram'),na.rm=FALSE, ...) { method<-match.arg(method) if(method=='centers') { if(sym.var$var.type=='$C') return(sd(sym.var$var.data.vector)) if(sym.var$var.type=='$I') return(sd(sym.var$var.data.vector[,1]+sym.var$var.dat...
# The file "household_power_consumption.txt" is downloaded and working # directory set. (preassumption) library(data.table) data<-read.csv("household_power_consumption.txt", sep=";",header=TRUE, na="?") head(data,2) summary(data) dim(data) data1<-data head(data1,2) data1$DateNtime <- strptime(paste(data1$Date,da...
/LoadData.R
no_license
Phyllip/ExData_Plotting1
R
false
false
638
r
# The file "household_power_consumption.txt" is downloaded and working # directory set. (preassumption) library(data.table) data<-read.csv("household_power_consumption.txt", sep=";",header=TRUE, na="?") head(data,2) summary(data) dim(data) data1<-data head(data1,2) data1$DateNtime <- strptime(paste(data1$Date,da...
library(knitr) library(ggplot2) library(readr) library(gridExtra) library(tidyr) library(dplyr) vinos<-read_csv("wine_quality.csv") hist(vinos$quality, ylab="Frecuencia", xlab="Calidad del vino", main="Vino por calidad", col="blue") plot1<-ggplot(data=vinos,aes(x=wine,y=vinos$density))+geom_boxplot() plot2<-ggplot(dat...
/ciencia de datos1.R
no_license
JorgeRamos01/Ciencia-de-datos-1
R
false
false
5,846
r
library(knitr) library(ggplot2) library(readr) library(gridExtra) library(tidyr) library(dplyr) vinos<-read_csv("wine_quality.csv") hist(vinos$quality, ylab="Frecuencia", xlab="Calidad del vino", main="Vino por calidad", col="blue") plot1<-ggplot(data=vinos,aes(x=wine,y=vinos$density))+geom_boxplot() plot2<-ggplot(dat...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/directconnect_operations.R \name{directconnect_describe_virtual_gateways} \alias{directconnect_describe_virtual_gateways} \title{Lists the virtual private gateways owned by the AWS account} \usage{ directconnect_describe_virtual_gateways() } ...
/paws/man/directconnect_describe_virtual_gateways.Rd
permissive
sanchezvivi/paws
R
false
true
527
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/directconnect_operations.R \name{directconnect_describe_virtual_gateways} \alias{directconnect_describe_virtual_gateways} \title{Lists the virtual private gateways owned by the AWS account} \usage{ directconnect_describe_virtual_gateways() } ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plug-and-play.R \name{add_meas_SS_case} \alias{add_meas_SS_case} \title{add likelihood for a SS measurement slice among cases (conditional independence)} \usage{ add_meas_SS_case(nslice, Mobs, prior, cause_list) } \arguments{ \item{nslice}{th...
/man/add_meas_SS_case.Rd
permissive
wendylin23/baker
R
false
true
2,118
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/plug-and-play.R \name{add_meas_SS_case} \alias{add_meas_SS_case} \title{add likelihood for a SS measurement slice among cases (conditional independence)} \usage{ add_meas_SS_case(nslice, Mobs, prior, cause_list) } \arguments{ \item{nslice}{th...
modelInfo <- list(label = "Generalized Linear Model", library = NULL, loop = NULL, type = c("Regression", "Classification"), parameters = data.frame(parameter = "parameter", class = "character", ...
/models/files/glm.R
no_license
Ragyi/caret
R
false
false
4,326
r
modelInfo <- list(label = "Generalized Linear Model", library = NULL, loop = NULL, type = c("Regression", "Classification"), parameters = data.frame(parameter = "parameter", class = "character", ...
library(shiny) shinyServer(function(input, output) { output$distPlot <- renderPlot({ x <- faithful[, 2] bins <- seq(min(x), max(x), length.out = input$bins + 1) hist(x, breaks = bins, col = 'skyblue', border = 'white')#change col }) })
/HelloWorld/server.R
no_license
yichunsung/NTUTrainRL2
R
false
false
257
r
library(shiny) shinyServer(function(input, output) { output$distPlot <- renderPlot({ x <- faithful[, 2] bins <- seq(min(x), max(x), length.out = input$bins + 1) hist(x, breaks = bins, col = 'skyblue', border = 'white')#change col }) })
# # CompWorld85.R, 3 Jun 18 # Data from: # Hardware Roundup # Tom Henkel # ComputerWorld, 19 Aug 1985, pages 23--34 # # Example from: # Empirical Software Engineering using R # Derek M. Jones # # TAG hardware performance price 1985 source("ESEUR_config.r") library("plyr") plot_pts=function(df) { points(df$Memory...
/ecosystems/CompWorld85.R
no_license
alanponce/ESEUR-code-data
R
false
false
952
r
# # CompWorld85.R, 3 Jun 18 # Data from: # Hardware Roundup # Tom Henkel # ComputerWorld, 19 Aug 1985, pages 23--34 # # Example from: # Empirical Software Engineering using R # Derek M. Jones # # TAG hardware performance price 1985 source("ESEUR_config.r") library("plyr") plot_pts=function(df) { points(df$Memory...
############################## ##MODELING MOSQUITOES## ####################### # NOTES: # ALL NOTES GO IN THIS AREA # 1. do we want to use lagged weather variables because yesterday's weather affects today's hatch? # 2. need to merge with nearest spray or perhaps merge all sprays and then see the effect area of the sp...
/start.R
no_license
bltgent/Kaggle_west_nile
R
false
false
6,143
r
############################## ##MODELING MOSQUITOES## ####################### # NOTES: # ALL NOTES GO IN THIS AREA # 1. do we want to use lagged weather variables because yesterday's weather affects today's hatch? # 2. need to merge with nearest spray or perhaps merge all sprays and then see the effect area of the sp...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/log.euclidean.R \name{parallel.transport.spd_LogEuclidean} \alias{parallel.transport.spd_LogEuclidean} \title{Parallel transport of a tangent vector from one point to another along the geodesic between the two points} \usage{ \method{parallel...
/man/parallel.transport.spd_LogEuclidean.Rd
no_license
linulysses/matrix-manifold
R
false
true
808
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/log.euclidean.R \name{parallel.transport.spd_LogEuclidean} \alias{parallel.transport.spd_LogEuclidean} \title{Parallel transport of a tangent vector from one point to another along the geodesic between the two points} \usage{ \method{parallel...
##for English weekdays Sys.setlocale('LC_TIME','C') ##this time use data.table :) library(data.table) #object.size(double(length = 9* 2075259))#149418688 bytes,roughly 150MB ##only read the Date variable years<-data.frame(fread("household_power_consumption.txt", header = T, sep = ";",colClasses = c('Date', rep("NULL",...
/plot4.R
no_license
mwoldeit/ExData_Plotting1
R
false
false
1,641
r
##for English weekdays Sys.setlocale('LC_TIME','C') ##this time use data.table :) library(data.table) #object.size(double(length = 9* 2075259))#149418688 bytes,roughly 150MB ##only read the Date variable years<-data.frame(fread("household_power_consumption.txt", header = T, sep = ";",colClasses = c('Date', rep("NULL",...
\name{MultivarDistrList-class} \docType{class} \alias{MultivarDistrList-class} \alias{MVDistrList-class} \alias{coerce,MultivariateDistribution,MultivarDistrList-method} \alias{dim,MultivarDistrList-method} \alias{dimension,MultivarDistrList-method} \title{List of multivariate distributions} \description{Crea...
/man/MultivarDistrList-class.Rd
no_license
cran/distrEllipse
R
false
false
2,353
rd
\name{MultivarDistrList-class} \docType{class} \alias{MultivarDistrList-class} \alias{MVDistrList-class} \alias{coerce,MultivariateDistribution,MultivarDistrList-method} \alias{dim,MultivarDistrList-method} \alias{dimension,MultivarDistrList-method} \title{List of multivariate distributions} \description{Crea...
context("search") invisible(connect()) test_that("basic search works", { a <- Search(index="shakespeare") expect_equal(names(a), c('took','timed_out','_shards','hits')) expect_is(a, "list") expect_is(a$hits$hits, "list") expect_equal(names(a$hits$hits[[1]]), c('_index','_type','_id','_score','_source')) })...
/tests/testthat/test-search.r
permissive
NanaAkwasiAbayieBoateng/elastic
R
false
false
5,113
r
context("search") invisible(connect()) test_that("basic search works", { a <- Search(index="shakespeare") expect_equal(names(a), c('took','timed_out','_shards','hits')) expect_is(a, "list") expect_is(a$hits$hits, "list") expect_equal(names(a$hits$hits[[1]]), c('_index','_type','_id','_score','_source')) })...
dfA11 <- eventReactive(c(input$selectState_1), { project <- "https://data.world/nrb842/s18-edv-final-project" data.world::set_config(cfg_env("DW_API")) paramQuery <- data.world::qry_sql( " SELECT healthcare_clean.state, avg(healthcare_clean.average_medicare_payments/healthcare_clean.average_covered_...
/DataExpensiveBar.R
no_license
sandyying/R_Markdown_HealthcareDataVis
R
false
false
2,091
r
dfA11 <- eventReactive(c(input$selectState_1), { project <- "https://data.world/nrb842/s18-edv-final-project" data.world::set_config(cfg_env("DW_API")) paramQuery <- data.world::qry_sql( " SELECT healthcare_clean.state, avg(healthcare_clean.average_medicare_payments/healthcare_clean.average_covered_...
Collapse_subgraph <- function(vgraph, vnodes) { # Collapse a subgraph of a graph in a super node. The super node will be labeled by a # concatination of the labels of the nodes of the subgraph. It will preserve the in- and out- edges # of the collapsed subgraph. # Args: # vgraph: a graph object contain...
/R/Collapse_subgraph.R
no_license
cran/VertexSort
R
false
false
2,096
r
Collapse_subgraph <- function(vgraph, vnodes) { # Collapse a subgraph of a graph in a super node. The super node will be labeled by a # concatination of the labels of the nodes of the subgraph. It will preserve the in- and out- edges # of the collapsed subgraph. # Args: # vgraph: a graph object contain...
## This code is part of the ips package ## © C. Heibl 2014 (last update 2019-02-06) #' @title Trim Alignment Ends #' @description Trims both ends of a DNA sequence alignment to the first and #' last alignment positions that contain a minimum number of IUPAC base #' characters (\code{"a"}, \code{"c"}, \code{"g"}, \...
/R/trimEnds.R
no_license
brendanf/ips
R
false
false
3,925
r
## This code is part of the ips package ## © C. Heibl 2014 (last update 2019-02-06) #' @title Trim Alignment Ends #' @description Trims both ends of a DNA sequence alignment to the first and #' last alignment positions that contain a minimum number of IUPAC base #' characters (\code{"a"}, \code{"c"}, \code{"g"}, \...
library(KFAS) library(xts) library(ggplot2) library(ggfortify) library(gridExtra) file_data <- read.csv("book-tsa-ssm-foundation-master/book-data/5-11-sales_data.csv") sales <- as.xts(read.zoo(file_data)) head(file_data) head(sales) # 祝日判定 source("https://raw.githubusercontent.com/logics-of-blue/website/master/010_f...
/seminar/fall_ch11.R
no_license
hsgws/hsgws.github.io
R
false
false
2,374
r
library(KFAS) library(xts) library(ggplot2) library(ggfortify) library(gridExtra) file_data <- read.csv("book-tsa-ssm-foundation-master/book-data/5-11-sales_data.csv") sales <- as.xts(read.zoo(file_data)) head(file_data) head(sales) # 祝日判定 source("https://raw.githubusercontent.com/logics-of-blue/website/master/010_f...
"Turn a time series into a design matrix for regression." design.matrix.from.ts <- function(ts, order, right.older = TRUE) { n <- length(ts) x <- ts[(order + 1):n] for (lag in 1:order) { if (right.older) { x <- cbind(x, ts[(order + 1 - lag):(n - lag)]) } else { ...
/stat/R/regression.R
no_license
HussainAther/mathematics
R
false
false
577
r
"Turn a time series into a design matrix for regression." design.matrix.from.ts <- function(ts, order, right.older = TRUE) { n <- length(ts) x <- ts[(order + 1):n] for (lag in 1:order) { if (right.older) { x <- cbind(x, ts[(order + 1 - lag):(n - lag)]) } else { ...
adfiaodijlkjadkl adkfasjofiajsdfsadjsmmksaddial dksfidosfjmafihoammd adoihadfofmsdj akdlsaoiihfsdosdfjim # asodfihaodihlkadf # adoihfdahfdnsk
/Test_github.R
permissive
abolwerk/Orientation
R
false
false
142
r
adfiaodijlkjadkl adkfasjofiajsdfsadjsmmksaddial dksfidosfjmafihoammd adoihadfofmsdj akdlsaoiihfsdosdfjim # asodfihaodihlkadf # adoihfdahfdnsk
source("~/Dropbox/Chido/convBase.R") source("~/Dropbox/Chido/obtAtrGenIte.R") source("~/Dropbox/Chido/plotAtr.R") #Definiendo sistema nodos <-c("Temperatura", "Presion", "Precipitacion", "Herbivoros", "Depredadores", "MaizG", "FrijolEG", "CalabazaG", "Maiz", "FrijolE", "Calabaza", "MaizJ", "CalabazaJ", "Polinizadores"...
/precipitacion/cb_herb_precipitacion_110910.R
no_license
laparcela/modelo_red_booleana_milpa_rafa
R
false
false
1,242
r
source("~/Dropbox/Chido/convBase.R") source("~/Dropbox/Chido/obtAtrGenIte.R") source("~/Dropbox/Chido/plotAtr.R") #Definiendo sistema nodos <-c("Temperatura", "Presion", "Precipitacion", "Herbivoros", "Depredadores", "MaizG", "FrijolEG", "CalabazaG", "Maiz", "FrijolE", "Calabaza", "MaizJ", "CalabazaJ", "Polinizadores"...
library(faraway) ### Name: ozone ### Title: Ozone in LA in 1976 ### Aliases: ozone ### Keywords: datasets ### ** Examples data(ozone) ## maybe str(ozone) ; plot(ozone) ...
/data/genthat_extracted_code/faraway/examples/ozone.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
179
r
library(faraway) ### Name: ozone ### Title: Ozone in LA in 1976 ### Aliases: ozone ### Keywords: datasets ### ** Examples data(ozone) ## maybe str(ozone) ; plot(ozone) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/LoadData.R \name{readDILT1DSMBGData} \alias{readDILT1DSMBGData} \title{returns the Self Measured Blood Glucose (SMBG) measurements for subjects in the DILT1D trial} \usage{ readDILT1DSMBGData(smbgFile) } \arguments{ \item{smbgFile}{A characte...
/man/readDILT1DSMBGData.Rd
no_license
miepstei/MetabDILT1D
R
false
true
550
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/LoadData.R \name{readDILT1DSMBGData} \alias{readDILT1DSMBGData} \title{returns the Self Measured Blood Glucose (SMBG) measurements for subjects in the DILT1D trial} \usage{ readDILT1DSMBGData(smbgFile) } \arguments{ \item{smbgFile}{A characte...
# server file for shiny web page library(shiny) library(tidyverse) library(stats) # for pca library(plotly) library(RColorBrewer) library(MASS) # for isoMDS() - kruskal's nMDS library(caret) library(plotly) library(mclust) library(ecodist) all_ord_df <- read.csv("ordinal_df.csv") ratio_df <- read.csv("ratio_df.csv") sm...
/app_server.R
no_license
lindseygao/mv-data-analysis
R
false
false
13,437
r
# server file for shiny web page library(shiny) library(tidyverse) library(stats) # for pca library(plotly) library(RColorBrewer) library(MASS) # for isoMDS() - kruskal's nMDS library(caret) library(plotly) library(mclust) library(ecodist) all_ord_df <- read.csv("ordinal_df.csv") ratio_df <- read.csv("ratio_df.csv") sm...
specificity = function(true, pred){ # true: vector of true classes # pred: vector of predicted classes conf_mat = table(true, pred) spec = conf_mat[1,1]/sum(conf_mat[1,]) return(round(spec*100,2)) }
/code/functions/specificity.R
no_license
liherz/stroke_outcome_prediction_ML
R
false
false
214
r
specificity = function(true, pred){ # true: vector of true classes # pred: vector of predicted classes conf_mat = table(true, pred) spec = conf_mat[1,1]/sum(conf_mat[1,]) return(round(spec*100,2)) }
# Copyright 2017 MLiy Contributors # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writi...
/scripts/ec2/MLiy/install_core_packages.R
permissive
FINRAOS/MLiy
R
false
false
1,514
r
# Copyright 2017 MLiy Contributors # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agreed to in writi...
library(adegenet) ### Name: seploc ### Title: Separate data per locus ### Aliases: seploc seploc-methods seploc,ANY-method seploc,genind-method ### seploc,genpop-method seploc,genlight-method ### Keywords: manip ### ** Examples ## Not run: ##D ## example on genind objects ##D data(microbov) ##D ##D # separate a...
/data/genthat_extracted_code/adegenet/examples/seploc.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
996
r
library(adegenet) ### Name: seploc ### Title: Separate data per locus ### Aliases: seploc seploc-methods seploc,ANY-method seploc,genind-method ### seploc,genpop-method seploc,genlight-method ### Keywords: manip ### ** Examples ## Not run: ##D ## example on genind objects ##D data(microbov) ##D ##D # separate a...
#' @title BUSCAR_ARTIGOS_ACEITOS_PARA_PUBLICACAO #' #' #' #' @param doc a list of Lattes CV XML files #' #' #' #' #' #' @export BUSCAR_ARTIGOS_ACEITOS_PARA_PUBLICACAO BUSCAR_ARTIGOS_ACEITOS_PARA_PUBLICACAO<-function(doc){ #lista contendo os artigos publicados em periodicos ou revistas ARTIGOS_PUBLICADOS<-list() Ar...
/R/BUSCAR_ARTIGOS_ACEITOS_PARA_PUBLICACAO.R
no_license
rcbraga/elattes
R
false
false
2,483
r
#' @title BUSCAR_ARTIGOS_ACEITOS_PARA_PUBLICACAO #' #' #' #' @param doc a list of Lattes CV XML files #' #' #' #' #' #' @export BUSCAR_ARTIGOS_ACEITOS_PARA_PUBLICACAO BUSCAR_ARTIGOS_ACEITOS_PARA_PUBLICACAO<-function(doc){ #lista contendo os artigos publicados em periodicos ou revistas ARTIGOS_PUBLICADOS<-list() Ar...
cat /root/vivek/chip-seq/ROSE/NHM_40/NHM_H3K27ac_40_Gateway_SuperEnhancers.bed \ /root/vivek/chip-seq/ROSE/BRAF_40/BRAF_H3K27ac_40_Gateway_SuperEnhancers.bed \ /root/vivek/chip-seq/ROSE/CDKN2A_40/CDKN2A_H3K27ac_40_Gateway_SuperEnhancers.bed \ /root/vivek/chip-seq/ROSE/CDKN2A+BRAF_40/CDKN2A+BRAF_H3K27ac_40_Gateway_Super...
/chipseq/superEnhancer_redo.R
no_license
rtmag/vivek
R
false
false
2,556
r
cat /root/vivek/chip-seq/ROSE/NHM_40/NHM_H3K27ac_40_Gateway_SuperEnhancers.bed \ /root/vivek/chip-seq/ROSE/BRAF_40/BRAF_H3K27ac_40_Gateway_SuperEnhancers.bed \ /root/vivek/chip-seq/ROSE/CDKN2A_40/CDKN2A_H3K27ac_40_Gateway_SuperEnhancers.bed \ /root/vivek/chip-seq/ROSE/CDKN2A+BRAF_40/CDKN2A+BRAF_H3K27ac_40_Gateway_Super...
# http://archive.ics.uci.edu/ml/datasets/Human+Activity+Recognition+Using+Smartphones # https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip # 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 ...
/run_analysis.R
no_license
NaamaZR/datasciencecoursera
R
false
false
23,643
r
# http://archive.ics.uci.edu/ml/datasets/Human+Activity+Recognition+Using+Smartphones # https://d396qusza40orc.cloudfront.net/getdata%2Fprojectfiles%2FUCI%20HAR%20Dataset.zip # 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 ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ggMap.R \name{hach.poly} \alias{hach.poly} \title{Internal to deal hatching of NS zones} \usage{ hach.poly(poly, l = 200, shap = -pi/4) } \arguments{ \item{poly}{: polygon} \item{l}{: hatching lines spacement} \item{shap}{: hatching lines o...
/man/hach.poly.Rd
no_license
echatignoux/CalibInc
R
false
true
459
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ggMap.R \name{hach.poly} \alias{hach.poly} \title{Internal to deal hatching of NS zones} \usage{ hach.poly(poly, l = 200, shap = -pi/4) } \arguments{ \item{poly}{: polygon} \item{l}{: hatching lines spacement} \item{shap}{: hatching lines o...
% Generated by roxygen2 (4.0.0): do not edit by hand \name{geom_quantile} \alias{geom_quantile} \title{Add quantile lines from a quantile regression.} \usage{ geom_quantile(mapping = NULL, data = NULL, stat = "quantile", position = "identity", lineend = "butt", linejoin = "round", linemitre = 1, na.rm = FALSE, ...)...
/man/geom_quantile.Rd
no_license
nietzsche1993/ggplot2
R
false
false
1,595
rd
% Generated by roxygen2 (4.0.0): do not edit by hand \name{geom_quantile} \alias{geom_quantile} \title{Add quantile lines from a quantile regression.} \usage{ geom_quantile(mapping = NULL, data = NULL, stat = "quantile", position = "identity", lineend = "butt", linejoin = "round", linemitre = 1, na.rm = FALSE, ...)...
# Loading libraries ------------------------------------------------------- if (!require(XLConnect)) { install.packages("XLConnect") library(XLConnect) } if (!require(ggrepel)){ install.packages("ggrepel") library(ggrepel) } if (!require(gridExtra)){ install.packages("gridExtra") library(gridExtra) } if ...
/functions.R
no_license
CBSB/H3ABioNet-webinar-series-paper
R
false
false
8,743
r
# Loading libraries ------------------------------------------------------- if (!require(XLConnect)) { install.packages("XLConnect") library(XLConnect) } if (!require(ggrepel)){ install.packages("ggrepel") library(ggrepel) } if (!require(gridExtra)){ install.packages("gridExtra") library(gridExtra) } if ...
\name{NEWS} \title{News for Package 'log4r'} \encoding{UTF-8} \section{Changes in log4r version 0.3.0 (2019-06-20)}{ \itemize{ \item A new system for configuring logging, via "Appenders" and "Layouts". See \code{?logger}, \code{?appenders}, and \code{?layouts} for details. \item Various fixes and perfor...
/inst/NEWS.Rd
no_license
ebailey78/log4r
R
false
false
791
rd
\name{NEWS} \title{News for Package 'log4r'} \encoding{UTF-8} \section{Changes in log4r version 0.3.0 (2019-06-20)}{ \itemize{ \item A new system for configuring logging, via "Appenders" and "Layouts". See \code{?logger}, \code{?appenders}, and \code{?layouts} for details. \item Various fixes and perfor...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/diagnose_fit.R \name{plot_subgroup_ates} \alias{plot_subgroup_ates} \title{Plot ATE differences by one or more subgroups} \usage{ plot_subgroup_ates(fit, subgroups, level = 0.9) } \arguments{ \item{fit}{A trained causal forest object from \co...
/man/plot_subgroup_ates.Rd
no_license
ensley-nexant/cfeval
R
false
true
1,331
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/diagnose_fit.R \name{plot_subgroup_ates} \alias{plot_subgroup_ates} \title{Plot ATE differences by one or more subgroups} \usage{ plot_subgroup_ates(fit, subgroups, level = 0.9) } \arguments{ \item{fit}{A trained causal forest object from \co...
library(shinydashboard) library(lubridate) library(dplyr) library(tidyverse) library(maps) library(geosphere) library(DT) library(plotly) airline <- read.csv(url("https://github.com/aoliu95/airport_shiny/raw/master/airport_loc.csv"))%>%select(locationID,Longitude,Latitude) rownames(airline) <- airline$locationID mysam...
/app.R
permissive
austinliuu/airport_shiny
R
false
false
8,169
r
library(shinydashboard) library(lubridate) library(dplyr) library(tidyverse) library(maps) library(geosphere) library(DT) library(plotly) airline <- read.csv(url("https://github.com/aoliu95/airport_shiny/raw/master/airport_loc.csv"))%>%select(locationID,Longitude,Latitude) rownames(airline) <- airline$locationID mysam...
############################################################################################################################################################# ## Answers ################################################################################################################################################# ####...
/cachematrix.R
no_license
jebright45/ProgrammingAssignment2
R
false
false
6,388
r
############################################################################################################################################################# ## Answers ################################################################################################################################################# ####...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ec2_operations.R \name{ec2_reset_image_attribute} \alias{ec2_reset_image_attribute} \title{Resets an attribute of an AMI to its default value} \usage{ ec2_reset_image_attribute(Attribute, ImageId, DryRun) } \arguments{ \item{Attribute}{[requi...
/cran/paws.compute/man/ec2_reset_image_attribute.Rd
permissive
TWarczak/paws
R
false
true
1,275
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ec2_operations.R \name{ec2_reset_image_attribute} \alias{ec2_reset_image_attribute} \title{Resets an attribute of an AMI to its default value} \usage{ ec2_reset_image_attribute(Attribute, ImageId, DryRun) } \arguments{ \item{Attribute}{[requi...
setwd("~/R/scrape_geo") source("functions_scrape_geo.R") library(data.table) DUMP_SCRIPT = "scripts/fastq_dump_wrapper.sh" DUMP_SCRIPT = normalizePath(DUMP_SCRIPT) stopifnot(file.exists(DUMP_SCRIPT)) SPLIT_SCRIPT = "scripts/split_PE_fastq.sh" SPLIT_SCRIPT = normalizePath(SPLIT_SCRIPT) stopifnot(file.exists(SPLIT_SCRI...
/fetch_GSE58825_IKZF1_in_LAX2_and_ICN1.R
no_license
jrboyd/scrape_geo
R
false
false
2,679
r
setwd("~/R/scrape_geo") source("functions_scrape_geo.R") library(data.table) DUMP_SCRIPT = "scripts/fastq_dump_wrapper.sh" DUMP_SCRIPT = normalizePath(DUMP_SCRIPT) stopifnot(file.exists(DUMP_SCRIPT)) SPLIT_SCRIPT = "scripts/split_PE_fastq.sh" SPLIT_SCRIPT = normalizePath(SPLIT_SCRIPT) stopifnot(file.exists(SPLIT_SCRI...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utilities-time.R \name{toISO} \alias{toISO} \title{Convert an object to its ISO 8601 string representation} \usage{ toISO(x) } \arguments{ \item{x}{object to be converted} } \description{ Convert an object to its ISO 8601 string representatio...
/man/toISO.Rd
permissive
JesseKolb/RDruid
R
false
true
325
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utilities-time.R \name{toISO} \alias{toISO} \title{Convert an object to its ISO 8601 string representation} \usage{ toISO(x) } \arguments{ \item{x}{object to be converted} } \description{ Convert an object to its ISO 8601 string representatio...
##' @export batch_preparation_events_all_borrower <- function(pre_qrt = 12, post_qrt = 8){ country_classification() -> ref.ctry imfutils::imfRefCtry() %>>% select(iso3,name) %>>% setkey(iso3) -> ref.iso3 batch_preparation_events_old_borrower() -> l.ev...
/batch_preparation_events_all_borrower.R
no_license
NNander/CizelHouben
R
false
false
536
r
##' @export batch_preparation_events_all_borrower <- function(pre_qrt = 12, post_qrt = 8){ country_classification() -> ref.ctry imfutils::imfRefCtry() %>>% select(iso3,name) %>>% setkey(iso3) -> ref.iso3 batch_preparation_events_old_borrower() -> l.ev...
`c.a2.h` <- function (c) ifelse(!(le(0,c) && le(c,1)), NA, c)
/R/c.a2.h.R
no_license
cran/adaptTest
R
false
false
112
r
`c.a2.h` <- function (c) ifelse(!(le(0,c) && le(c,1)), NA, c)
library("ape") tree = read.tree(file="3K_coreSNP-v2.1.binary.tab.landrace.nj.tree") x = read.table(file="rice_line_ALL_3000.anno.list", sep='\t', header=1) y = setNames(x[,7], x[,1]) y = y[match(gsub("'", '', tree$tip.label), names(y))] sample_colors = setNames(x[,2], x[,1]) sample_colors = sample_colors[match(gsub("...
/Tree/3K_coreSNP-v2.1.binary.tab.landrace.nj.tree.R
no_license
JinfengChen/Rice_pop
R
false
false
1,842
r
library("ape") tree = read.tree(file="3K_coreSNP-v2.1.binary.tab.landrace.nj.tree") x = read.table(file="rice_line_ALL_3000.anno.list", sep='\t', header=1) y = setNames(x[,7], x[,1]) y = y[match(gsub("'", '', tree$tip.label), names(y))] sample_colors = setNames(x[,2], x[,1]) sample_colors = sample_colors[match(gsub("...
#' Correlogram Plot of Num. Var. Function #' #' This function allows you to obtain the correlogram plot of the numeric variables in an NBA Season Stats Dataset, given a selected year #' #' @keywords Correlogram #' #' @param x The year you select in the dataset #' #' @return The output from \code{\link{corrplot}...
/R/Correlogram_Plot_of_Num_Var_Function.R
no_license
Charles-Nk/qmssnba1
R
false
false
900
r
#' Correlogram Plot of Num. Var. Function #' #' This function allows you to obtain the correlogram plot of the numeric variables in an NBA Season Stats Dataset, given a selected year #' #' @keywords Correlogram #' #' @param x The year you select in the dataset #' #' @return The output from \code{\link{corrplot}...
#' Database Long 2 Wide #' #' @param wok2dbl #' @param out #' @param field #' @param variations #' @param recode #' #' @return #' @export #' @import data.table #' #' @examples dbl2w.f<-function( wok2dbl ,out=stop("Specify output directory") ,field=stop("field=c(\"field1\",\"field2\",...)") ,variations=NULL ,recode...
/plagiat/R/dbl2w.f.R
no_license
brooksambrose/pack-dev
R
false
false
4,127
r
#' Database Long 2 Wide #' #' @param wok2dbl #' @param out #' @param field #' @param variations #' @param recode #' #' @return #' @export #' @import data.table #' #' @examples dbl2w.f<-function( wok2dbl ,out=stop("Specify output directory") ,field=stop("field=c(\"field1\",\"field2\",...)") ,variations=NULL ,recode...
library("fpc") # Compute DBSCAN using fpc package # set.seed(123) meterdata <- trained_data_set(train_data_set_filename) timeseriesData <- preprocess(meterdata) timeseriesData[is.na(timeseriesData)] <- 0.00001 str(timeseriesData) # dst <- dist(t(timeseriesData),method = "euclidean") # install.packages("cluster") # li...
/ddfcst/dbscan.R
no_license
jayesh291/jpfcst
R
false
false
1,134
r
library("fpc") # Compute DBSCAN using fpc package # set.seed(123) meterdata <- trained_data_set(train_data_set_filename) timeseriesData <- preprocess(meterdata) timeseriesData[is.na(timeseriesData)] <- 0.00001 str(timeseriesData) # dst <- dist(t(timeseriesData),method = "euclidean") # install.packages("cluster") # li...
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 #' Run a single replicate individual-based simulation #' of a hawk-dove #' game in a finite-sized population. #' @param N Population size (integer). #' @param v Value of winning a fight (floati...
/R/RcppExports.R
permissive
bramkuijper/driftSim
R
false
false
3,169
r
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 #' Run a single replicate individual-based simulation #' of a hawk-dove #' game in a finite-sized population. #' @param N Population size (integer). #' @param v Value of winning a fight (floati...
testlist <- list(x1 = c(5.95750278702475e+228, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), x2 = numeric(0), y1 = numeric(0), y2 = numeric(0)) result <- do.call(palm:::euc_distances,testlist) str(result)
/palm/inst/testfiles/euc_distances/libFuzzer_euc_distances/euc_distances_valgrind_files/1612968204-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
190
r
testlist <- list(x1 = c(5.95750278702475e+228, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), x2 = numeric(0), y1 = numeric(0), y2 = numeric(0)) result <- do.call(palm:::euc_distances,testlist) str(result)
\name{xmlNamespaceDefinitions} \alias{xmlNamespaceDefinitions} \alias{getDefaultNamespace} \title{Get definitions of any namespaces defined in this XML node} \description{ If the given node has any namespace definitions declared within it, i.e. of the form \code{xmlns:myNamespace="http://www.myNS.org"}, \code{xml...
/Stat133 (Data Viz)/Proj 2/XML/man/xmlNamespaceDefinitions.Rd
no_license
seljabali/school_code
R
false
false
3,404
rd
\name{xmlNamespaceDefinitions} \alias{xmlNamespaceDefinitions} \alias{getDefaultNamespace} \title{Get definitions of any namespaces defined in this XML node} \description{ If the given node has any namespace definitions declared within it, i.e. of the form \code{xmlns:myNamespace="http://www.myNS.org"}, \code{xml...
# Your Name: # Names of members of your group: # Date: # Run the below only if the library is not already installed. library(dplyr) library(tidyverse) library(psych) # Begin by loading your csv file from the supplimental/ directory. psyData <- read.table(file.choose(), header = TRUE, sep = ",") ##################...
/src/analysis.r
no_license
Allegheny-Computer-Science-301-F2018/cs301f2018-lab06-starter
R
false
false
1,159
r
# Your Name: # Names of members of your group: # Date: # Run the below only if the library is not already installed. library(dplyr) library(tidyverse) library(psych) # Begin by loading your csv file from the supplimental/ directory. psyData <- read.table(file.choose(), header = TRUE, sep = ",") ##################...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/isLocalIdentifier.R \name{isLocalIdentifier} \alias{isLocalIdentifier} \title{Check if an Identifier was Locally Created} \usage{ isLocalIdentifier(identifier) } \description{ Returns TRUE if the identifier parses to a Datetime, FALSE if is N...
/man/isLocalIdentifier.Rd
no_license
meerapatelmd/HemOncExt
R
false
true
380
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/isLocalIdentifier.R \name{isLocalIdentifier} \alias{isLocalIdentifier} \title{Check if an Identifier was Locally Created} \usage{ isLocalIdentifier(identifier) } \description{ Returns TRUE if the identifier parses to a Datetime, FALSE if is N...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mdp_utils.R \name{PlotPhylogeneticTree} \alias{PlotPhylogeneticTree} \title{Function to prepare data for phylogenetic tree.} \usage{ PlotPhylogeneticTree( mbSetObj, color, shape, taxa, treeshape, imgName, format = "png", dpi =...
/man/PlotPhylogeneticTree.Rd
no_license
xia-lab/MicrobiomeAnalystR
R
false
true
741
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/mdp_utils.R \name{PlotPhylogeneticTree} \alias{PlotPhylogeneticTree} \title{Function to prepare data for phylogenetic tree.} \usage{ PlotPhylogeneticTree( mbSetObj, color, shape, taxa, treeshape, imgName, format = "png", dpi =...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{sampleYlatentProbit} \alias{sampleYlatentProbit} \title{Sample the model response matrix} \usage{ sampleYlatentProbit(Y0Loc, Y1Loc, YNALoc, Ylatent, EstModel, residVar, nsp, nsite) } \arguments{ \item{Y0Loc}{A vector def...
/man/sampleYlatentProbit.Rd
no_license
guiblanchet/HMSC
R
false
true
1,328
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R \name{sampleYlatentProbit} \alias{sampleYlatentProbit} \title{Sample the model response matrix} \usage{ sampleYlatentProbit(Y0Loc, Y1Loc, YNALoc, Ylatent, EstModel, residVar, nsp, nsite) } \arguments{ \item{Y0Loc}{A vector def...
#01/04/2020 intro to ggplot library(tidyverse) gapminder <- read_csv("data/gapminder_data.csv") gapminder_1977 <- filter(gapminder, year == 1977) gapminder_1977 #ggplot (<DATA>, <AETHETIC MAPPINGS>) + <GEOMETRY LAYER> + <GEOMETRY LAYER2> ggplot( data = gapminder_1977, mapping = aes(x = gdpPercap, y = l...
/ggplot.r
no_license
felicitymcennulty/ggplot
R
false
false
8,600
r
#01/04/2020 intro to ggplot library(tidyverse) gapminder <- read_csv("data/gapminder_data.csv") gapminder_1977 <- filter(gapminder, year == 1977) gapminder_1977 #ggplot (<DATA>, <AETHETIC MAPPINGS>) + <GEOMETRY LAYER> + <GEOMETRY LAYER2> ggplot( data = gapminder_1977, mapping = aes(x = gdpPercap, y = l...
berlin_lastz <- read.table("/Users/kraigrs/Wittkopp/Graze/berlin_lastz.txt",sep="\t"); berlin_fsa <- read.table("/Users/kraigrs/Wittkopp/Graze/berlin_fsa.txt",sep="\t"); c1674_lastz <- read.table("/Users/kraigrs/Wittkopp/Graze/c1674_lastz.txt",sep="\t"); c1674_fsa <- read.table("/Users/kraigrs/Wittkopp/Graze/c1674_fsa....
/simulations/R/comp_lastz_fsa.R
no_license
kraigrs/thesis_work
R
false
false
500
r
berlin_lastz <- read.table("/Users/kraigrs/Wittkopp/Graze/berlin_lastz.txt",sep="\t"); berlin_fsa <- read.table("/Users/kraigrs/Wittkopp/Graze/berlin_fsa.txt",sep="\t"); c1674_lastz <- read.table("/Users/kraigrs/Wittkopp/Graze/c1674_lastz.txt",sep="\t"); c1674_fsa <- read.table("/Users/kraigrs/Wittkopp/Graze/c1674_fsa....
\name{NEWS} \title{NEWS for GWASTools} \section{Changes in version 1.1.1}{ \itemize{ \item Added functions plinkWrite and plinkCheck for writing and checking PLINK ped and map files. \item Added pcaSnpFilters data set for identifying regions with high PC-SNP correlation. } } \section{Changes in vers...
/inst/NEWS.Rd
no_license
amstilp/GWASTools
R
false
false
21,670
rd
\name{NEWS} \title{NEWS for GWASTools} \section{Changes in version 1.1.1}{ \itemize{ \item Added functions plinkWrite and plinkCheck for writing and checking PLINK ped and map files. \item Added pcaSnpFilters data set for identifying regions with high PC-SNP correlation. } } \section{Changes in vers...
# ALADYM Age length based dynamic model - version 12.3 # Authors: G. Lembo, I. Bitetto, M.T. Facchini, M.T. Spedicato 2018 # COISPA Tecnologia & Ricerca, Via dei Trulli 18/20 - (Bari), Italy # In case of use of the model, the Authors should be cited. # If you have any comments or suggestions please contact the follow...
/BEMTOOL-ver2.5-2018_0901/src/biol/bmtALADYM/ALADYM-ver12.3-2017_0501/gui/guicontrols/fisheryControls/lockFisheryValues.r
no_license
gresci/BEMTOOL2.5
R
false
false
2,052
r
# ALADYM Age length based dynamic model - version 12.3 # Authors: G. Lembo, I. Bitetto, M.T. Facchini, M.T. Spedicato 2018 # COISPA Tecnologia & Ricerca, Via dei Trulli 18/20 - (Bari), Italy # In case of use of the model, the Authors should be cited. # If you have any comments or suggestions please contact the follow...
# RNG --------------------------------------------------------------------- seed_synth <- 135249315 set.seed(seed_synth) # Install packages -------------------------------------------------------- # install.packages("here") # install.packages("tidyverse") # install.packages("ggrepel") # install.packages("patchwork"...
/code/01_figure_1.R
permissive
eur-nl/2021_ERIM_OS_Survey
R
false
false
3,011
r
# RNG --------------------------------------------------------------------- seed_synth <- 135249315 set.seed(seed_synth) # Install packages -------------------------------------------------------- # install.packages("here") # install.packages("tidyverse") # install.packages("ggrepel") # install.packages("patchwork"...
# # This is the server logic of a Shiny web application. You can run the # application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) shinyServer(function(input, output) { output$text1 <- renderText({ U <- input$...
/server.R
no_license
Andriy2828/kont
R
false
false
1,391
r
# # This is the server logic of a Shiny web application. You can run the # application by clicking 'Run App' above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) shinyServer(function(input, output) { output$text1 <- renderText({ U <- input$...
# 7-2. 모집단이 세개 이상 # 그림 7-6 set.seed(2) grp1 <- rnorm(20, mean=-1) grp2 <- rnorm(20, mean=0.5) grp3 <- rnorm(20, mean=1) d <- data.frame(grp=rep(1:3, each=20), val=c(grp1, grp2, grp3)) par(mar=c(1, 1, 1, 1)) plot(val~grp, data=d, pch=20, col="red", xlim=c(1, 3.5), ylim=c(-4.2, 4), axes=F, xlab="", ylab="") text...
/ch07/ch07_2 anova.R
no_license
rkdwko/R-Statistics
R
false
false
2,886
r
# 7-2. 모집단이 세개 이상 # 그림 7-6 set.seed(2) grp1 <- rnorm(20, mean=-1) grp2 <- rnorm(20, mean=0.5) grp3 <- rnorm(20, mean=1) d <- data.frame(grp=rep(1:3, each=20), val=c(grp1, grp2, grp3)) par(mar=c(1, 1, 1, 1)) plot(val~grp, data=d, pch=20, col="red", xlim=c(1, 3.5), ylim=c(-4.2, 4), axes=F, xlab="", ylab="") text...
plot.cums <- function (x , pointwise.ci=1, hw.ci=0, sim.ci=0, robust.ci=0, col=NULL, specific.comps=FALSE,level=0.05, start.time = 0, stop.time = 0, add.to.plot=FALSE,main=NULL,mains=TRUE, xlab="Time", ylab ="Cumulative coefficients",ylim=NULL,...) { ## {{{ object<-x; rm(x); B<-object$cum; V<-object$var.cum; ...
/R/plots.r
no_license
scheike/timereg
R
false
false
3,716
r
plot.cums <- function (x , pointwise.ci=1, hw.ci=0, sim.ci=0, robust.ci=0, col=NULL, specific.comps=FALSE,level=0.05, start.time = 0, stop.time = 0, add.to.plot=FALSE,main=NULL,mains=TRUE, xlab="Time", ylab ="Cumulative coefficients",ylim=NULL,...) { ## {{{ object<-x; rm(x); B<-object$cum; V<-object$var.cum; ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dataexchange_operations.R \name{dataexchange_list_tags_for_resource} \alias{dataexchange_list_tags_for_resource} \title{This operation lists the tags on the resource} \usage{ dataexchange_list_tags_for_resource(ResourceArn) } \arguments{ \ite...
/paws/man/dataexchange_list_tags_for_resource.Rd
permissive
johnnytommy/paws
R
false
true
603
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/dataexchange_operations.R \name{dataexchange_list_tags_for_resource} \alias{dataexchange_list_tags_for_resource} \title{This operation lists the tags on the resource} \usage{ dataexchange_list_tags_for_resource(ResourceArn) } \arguments{ \ite...
\name{atm.predict} \alias{atm.predict} \docType{package} \title{ Predict the minimum setting for ATM } \description{ \code{atm.init} predicts the minimum setting for an ATM object. } \usage{ atm.predict(atm.obj,alphas=NULL,ntimes=1,nsub=100,prob.am=0.5,prob.pw=1.0,reps=NULL) } \arguments{ \item{atm...
/man/atm.predict.Rd
no_license
cran/atmopt
R
false
false
4,532
rd
\name{atm.predict} \alias{atm.predict} \docType{package} \title{ Predict the minimum setting for ATM } \description{ \code{atm.init} predicts the minimum setting for an ATM object. } \usage{ atm.predict(atm.obj,alphas=NULL,ntimes=1,nsub=100,prob.am=0.5,prob.pw=1.0,reps=NULL) } \arguments{ \item{atm...
\name{Lxt} \alias{Lxt} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Number of person - years lived. } \description{ This function calculates the Lxt demographic function. } \usage{ Lxt(object, x, t = 1, fxt = 0.5) } \arguments{ \item{object}{ A lifetable object. } \item{x}{ Age. } \it...
/man/Lxt.Rd
no_license
biblioactuary/lifecontingencies
R
false
false
1,298
rd
\name{Lxt} \alias{Lxt} %- Also NEED an '\alias' for EACH other topic documented here. \title{ Number of person - years lived. } \description{ This function calculates the Lxt demographic function. } \usage{ Lxt(object, x, t = 1, fxt = 0.5) } \arguments{ \item{object}{ A lifetable object. } \item{x}{ Age. } \it...
#' Convert a list to a wide tibble. #' #' \code{promote_elements} converts multi-value elements of a list into uniquely #' named elements of the [primary] list. [What's a better way to say this?] #' #' @param x A list. #' #' @return If any of the elements of the list had multiple value, these #' values will now be in...
/R/promote_elements.R
permissive
barefootbiology/heyexr
R
false
false
1,936
r
#' Convert a list to a wide tibble. #' #' \code{promote_elements} converts multi-value elements of a list into uniquely #' named elements of the [primary] list. [What's a better way to say this?] #' #' @param x A list. #' #' @return If any of the elements of the list had multiple value, these #' values will now be in...
##Reset environment and Set working directory rm(list = ls(all = TRUE)) setwd("C:/Users/Susan/Documents/R") ##Retrieve file and read into R temp <- tempfile() fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(fileURL, temp) myData <- read.table(unz(temp,...
/Plot1.R
no_license
DataSusan2014/ExData_Plotting1
R
false
false
874
r
##Reset environment and Set working directory rm(list = ls(all = TRUE)) setwd("C:/Users/Susan/Documents/R") ##Retrieve file and read into R temp <- tempfile() fileURL <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip" download.file(fileURL, temp) myData <- read.table(unz(temp,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{X} \alias{X} \alias{X} \alias{X} \alias{X} \title{data.rda} \format{An object of class \code{matrix} with 3 rows and 800 columns.} \usage{ X X X X } \description{ data.rda num 6x5 3x2000 3x800 } \keyword{data...
/man/X.Rd
no_license
AlfonsoRReyes/martinezEDA
R
false
true
326
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/data.R \docType{data} \name{X} \alias{X} \alias{X} \alias{X} \alias{X} \title{data.rda} \format{An object of class \code{matrix} with 3 rows and 800 columns.} \usage{ X X X X } \description{ data.rda num 6x5 3x2000 3x800 } \keyword{data...
# Udacity Project 2 - Bikeshare ## Load lubridate package install.packages("lubridate") # Load essential libraries require(ggplot2) require(lubridate) require(RColorBrewer) ## Load the data of our 3 files for each city into workspace wash <- read.csv("C:/Users/freecomp/Desktop/R/washington.csv", header = TRUE) ny <-...
/Udacity.R
no_license
fathi2731991/pdsnd_github
R
false
false
4,509
r
# Udacity Project 2 - Bikeshare ## Load lubridate package install.packages("lubridate") # Load essential libraries require(ggplot2) require(lubridate) require(RColorBrewer) ## Load the data of our 3 files for each city into workspace wash <- read.csv("C:/Users/freecomp/Desktop/R/washington.csv", header = TRUE) ny <-...
#' @title createLRVof2dArray #' #' @name createLRVof2dArray #' #' @aliases createLRVof2dArray #' #' @description Computing a long-run variance of a two-dimensional array (column-wise). #' #' @param array2d A \code{productCol} two-dimensional array. #' #' @return A scalar value of the long-run variance of a tw...
/product2/R/createLRVof2dArray.R
no_license
Gograman/product2
R
false
false
1,185
r
#' @title createLRVof2dArray #' #' @name createLRVof2dArray #' #' @aliases createLRVof2dArray #' #' @description Computing a long-run variance of a two-dimensional array (column-wise). #' #' @param array2d A \code{productCol} two-dimensional array. #' #' @return A scalar value of the long-run variance of a tw...
"panelplot" <- function (data, panel = points, totrows = 3, totcols = 2, oma = rep(2.5, 4), par.strip.text = NULL) { opar <- par(mfrow = c(totrows, totcols), mar = rep(0, 4), oma = oma) on.exit(par(opar)) if (!is.null(par.strip.te...
/DAAG/R/panelplot.R
no_license
VladSerhiienko/MachineLearningLabworks
R
false
false
1,402
r
"panelplot" <- function (data, panel = points, totrows = 3, totcols = 2, oma = rep(2.5, 4), par.strip.text = NULL) { opar <- par(mfrow = c(totrows, totcols), mar = rep(0, 4), oma = oma) on.exit(par(opar)) if (!is.null(par.strip.te...
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 120440 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 120439 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 120439 c c Input Parameter (command lin...
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1/Experiments/Sauer-Reimer/ITC99/b18_PR_8_10/b18_PR_8_10.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
726
r
c DCNF-Autarky [version 0.0.1]. c Copyright (c) 2018-2019 Swansea University. c c Input Clause Count: 120440 c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 120439 c c Performing E1-Autarky iteration. c Remaining clauses count after E-Reduction: 120439 c c Input Parameter (command lin...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RELEVANTVN_REF.R \docType{data} \name{RELEVANTVN_REFext} \alias{RELEVANTVN_REFext} \title{Resulting list after function genDateTime has been executed on the reference dataset.} \format{An object of class \code{list} of length 9.} \usage{ RELE...
/man/RELEVANTVN_REFext.Rd
no_license
mmiche/esmprep
R
false
true
698
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RELEVANTVN_REF.R \docType{data} \name{RELEVANTVN_REFext} \alias{RELEVANTVN_REFext} \title{Resulting list after function genDateTime has been executed on the reference dataset.} \format{An object of class \code{list} of length 9.} \usage{ RELE...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/shadow-stamp.R \name{shadow_mark} \alias{shadow_mark} \title{Show original data as background marks} \usage{ shadow_mark(past = TRUE, future = FALSE, ..., exclude_layer = NULL) } \arguments{ \item{past}{Should raw data from earlier in the ani...
/man/shadow_mark.Rd
no_license
chasemc/gganimate
R
false
true
820
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/shadow-stamp.R \name{shadow_mark} \alias{shadow_mark} \title{Show original data as background marks} \usage{ shadow_mark(past = TRUE, future = FALSE, ..., exclude_layer = NULL) } \arguments{ \item{past}{Should raw data from earlier in the ani...
pollutantmean<-function(directory,pollutant,id=1:332){ sumvalue<-0 rowvalue<-0 for (f in dir(directory)[id]) { air<-read.csv(paste(directory,f,sep='/')) if(pollutant=='sulfate'){ sumv<-sum(air$sulfate[!is.na(air$sulfate)]) rowv<-length(air$sulfate[!is.na(air$sulfate)]) }else if(pollutant==...
/Course_2/pollutantmean.R
no_license
AmamiRena/DataScienceR
R
false
false
656
r
pollutantmean<-function(directory,pollutant,id=1:332){ sumvalue<-0 rowvalue<-0 for (f in dir(directory)[id]) { air<-read.csv(paste(directory,f,sep='/')) if(pollutant=='sulfate'){ sumv<-sum(air$sulfate[!is.na(air$sulfate)]) rowv<-length(air$sulfate[!is.na(air$sulfate)]) }else if(pollutant==...
############################PLOT MAPS################################## # # #This script helps plots different mosaics in one layout #Any questions or improvements can be emailed to Ximena Tagle: xtagle@iiap.gob.pe # # ###SET WDIR setwd("G:/My Drive/Monan/RPAs/Misiones/Results/") #Windows Xime PC #setwd("~/U...
/0.4.Plot_mosaics.R
no_license
xime377/UAV-classification
R
false
false
3,080
r
############################PLOT MAPS################################## # # #This script helps plots different mosaics in one layout #Any questions or improvements can be emailed to Ximena Tagle: xtagle@iiap.gob.pe # # ###SET WDIR setwd("G:/My Drive/Monan/RPAs/Misiones/Results/") #Windows Xime PC #setwd("~/U...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/images.R \name{defaultPngDevice} \alias{defaultPngDevice} \title{Determine the best PNG device for your system} \usage{ defaultPngDevice() } \value{ A graphics device function. } \description{ Returns the best PNG-based graphics device for yo...
/man/defaultPngDevice.Rd
no_license
rstudio/htmltools
R
false
true
679
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/images.R \name{defaultPngDevice} \alias{defaultPngDevice} \title{Determine the best PNG device for your system} \usage{ defaultPngDevice() } \value{ A graphics device function. } \description{ Returns the best PNG-based graphics device for yo...
library(tidyverse) library(here) library(cowplot) library(factoextra) blastout <- read_tsv(here('Fig3', 'data', 'all_vs_all.tsv'), col_names = c('qseqid', 'sseqid', 'pident', 'length', 'mismatch', 'gapopen', 'qstart', 'qend', 'sstart', 'send', 'evalue', 'bitscore'), col_types...
/Fig3/code/target_clustering.R
permissive
zamanianlab/MultivariateScreening-ms
R
false
false
1,223
r
library(tidyverse) library(here) library(cowplot) library(factoextra) blastout <- read_tsv(here('Fig3', 'data', 'all_vs_all.tsv'), col_names = c('qseqid', 'sseqid', 'pident', 'length', 'mismatch', 'gapopen', 'qstart', 'qend', 'sstart', 'send', 'evalue', 'bitscore'), col_types...
context("ex2") load("./data/testdata.rda") ex2 <- estimateSnSp(dat = data2, Sn.ref = c(ref_result=0.90), Sp.ref = c(ref_result=0.94), prev.pop = c(A = 0.92, B = 0.20, C = 0.50), control = estimateSnSpControl(seed=4902342, rep.iter = FALSE)...
/tests/testthat/test-ex2.r
no_license
ABS-dev/DiagTestKit
R
false
false
1,419
r
context("ex2") load("./data/testdata.rda") ex2 <- estimateSnSp(dat = data2, Sn.ref = c(ref_result=0.90), Sp.ref = c(ref_result=0.94), prev.pop = c(A = 0.92, B = 0.20, C = 0.50), control = estimateSnSpControl(seed=4902342, rep.iter = FALSE)...
library(reader) ### Name: force.vec ### Title: returns a vector if 'unknown.data' can in anyway relate to such: ### Aliases: force.vec ### ** Examples # create a matrix, binary file, and simple vector my.ids <- paste("ID",1:4,sep="") my.dat <- sample(2,4,replace=TRUE) test.files <- c("temp.rda") mymat <- cbind(my.i...
/data/genthat_extracted_code/reader/examples/force.vec.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
807
r
library(reader) ### Name: force.vec ### Title: returns a vector if 'unknown.data' can in anyway relate to such: ### Aliases: force.vec ### ** Examples # create a matrix, binary file, and simple vector my.ids <- paste("ID",1:4,sep="") my.dat <- sample(2,4,replace=TRUE) test.files <- c("temp.rda") mymat <- cbind(my.i...
library(tidyverse) library(xgboost) library(magrittr) library(futile.logger) library(caret) set.seed(0) #--------------------------- futile.logger::flog.info("Loading data...") # SaveRDS(tr_te, "tr_te.RDS") tr <- read_csv("input/application_train.csv.zip") tri <- 1:nrow(tr) y <- tr$TARGET tr_te <- readRDS("tr_te.RDS"...
/xgb_v3_paramtuning.R
no_license
wwwjk366/kaggle_homecredit
R
false
false
1,816
r
library(tidyverse) library(xgboost) library(magrittr) library(futile.logger) library(caret) set.seed(0) #--------------------------- futile.logger::flog.info("Loading data...") # SaveRDS(tr_te, "tr_te.RDS") tr <- read_csv("input/application_train.csv.zip") tri <- 1:nrow(tr) y <- tr$TARGET tr_te <- readRDS("tr_te.RDS"...
library(ape) testtree <- read.tree("8445_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="8445_0_unrooted.txt")
/codeml_files/newick_trees_processed/8445_0/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("8445_0.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="8445_0_unrooted.txt")
#page no : 69 library(base) dtabl=c(18,21,22,25,26,27,29,30,31,33,36,37,41,42,47,52,55,57,58,62,64,67,69, 71,72,73,74,76,77) dtabl_len=length(dtabl) find_range<-function(val) { count=0 for(i in 1:dtabl_len) { if(dtabl[i]<val) { count=count+1 } else { break } } return(count) } find_percentile...
/Introductory_Business_Statistics_by_Alexander_Holmes_Barbara_Illowsky__Susan_Dean/CH2/EX2.19/Ex2_19.R
permissive
FOSSEE/R_TBC_Uploads
R
false
false
561
r
#page no : 69 library(base) dtabl=c(18,21,22,25,26,27,29,30,31,33,36,37,41,42,47,52,55,57,58,62,64,67,69, 71,72,73,74,76,77) dtabl_len=length(dtabl) find_range<-function(val) { count=0 for(i in 1:dtabl_len) { if(dtabl[i]<val) { count=count+1 } else { break } } return(count) } find_percentile...
# tweetsWordcloud workbook. # starting with a data frame tweets_df = parseTweets(tweets), where # tweets is the output of filterStream from streamR. require(streamR) require(wordcloud) # loads RColorBrewer require(tm) # for wordcloud require(NLP) # for wordcloud require(memoise) # do i need this? # for R Shiny, to m...
/tweetWordcloudNotebook.R
permissive
brianmunson/MapperTwitter
R
false
false
814
r
# tweetsWordcloud workbook. # starting with a data frame tweets_df = parseTweets(tweets), where # tweets is the output of filterStream from streamR. require(streamR) require(wordcloud) # loads RColorBrewer require(tm) # for wordcloud require(NLP) # for wordcloud require(memoise) # do i need this? # for R Shiny, to m...
setwd("~/Documents/GitHub/small-things/urgent_care_project") rm(list=ls()) library(tidycensus) library(tidyverse) library(stringr) options(tigris_use_cache = TRUE) dist <- read.csv('closed_er_next_closest_full.csv') hosp_coords <- transmute(dist, STATEFP = STATEFP, ...
/urgent_care_project/hospital_access_more_charts.R
no_license
marialma/small-things
R
false
false
7,768
r
setwd("~/Documents/GitHub/small-things/urgent_care_project") rm(list=ls()) library(tidycensus) library(tidyverse) library(stringr) options(tigris_use_cache = TRUE) dist <- read.csv('closed_er_next_closest_full.csv') hosp_coords <- transmute(dist, STATEFP = STATEFP, ...