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
library(readr) library(tidyverse) library(readxl) library(knitr) library(equatiomatic)
/code/packages.R
no_license
malfaro2/humedales
R
false
false
86
r
library(readr) library(tidyverse) library(readxl) library(knitr) library(equatiomatic)
# tocID <- "BIN-Data_integration.R" # # Purpose: A Bioinformatics Course: # R code accompanying the BIN-Data_integration unit. # # Version: 2.0 # # Date: 2018 - 10 - 2022 - 11 # Author: Boris Steipe (boris.steipe@utoronto.ca) # # Versions: # 2.0 2022 Complete rewrite since UniProt Re...
/BIN-Data_integration.R
no_license
hyginn/ABC-units
R
false
false
11,998
r
# tocID <- "BIN-Data_integration.R" # # Purpose: A Bioinformatics Course: # R code accompanying the BIN-Data_integration unit. # # Version: 2.0 # # Date: 2018 - 10 - 2022 - 11 # Author: Boris Steipe (boris.steipe@utoronto.ca) # # Versions: # 2.0 2022 Complete rewrite since UniProt Re...
output$occupation_barchart_hc <- renderHighchart({ categories_column <- input$global_trends_group_by if (categories_column == "region") { subcategories_column <- "occupation" } if (categories_column == "occupation") { subcategories_column <- "region" } if (categories_column == "country") { ...
/worker_dashboard/tab_occupation-x-worker-country.R
permissive
okassi/onlinelabourindex
R
false
false
1,093
r
output$occupation_barchart_hc <- renderHighchart({ categories_column <- input$global_trends_group_by if (categories_column == "region") { subcategories_column <- "occupation" } if (categories_column == "occupation") { subcategories_column <- "region" } if (categories_column == "country") { ...
#!/usr/bin/env Rscript options(warn=-1) # Installation script for packages optparse and Rcpp. If not available then will install source("install.r") # Import required packages library("optparse") # Get command line arguments. Exit if not provided. option_list = list( make_option(c("-r", "--training_dataset"), ty...
/analyzeincome.R
no_license
krprithvi/knn-classifier-categorical
R
false
false
15,871
r
#!/usr/bin/env Rscript options(warn=-1) # Installation script for packages optparse and Rcpp. If not available then will install source("install.r") # Import required packages library("optparse") # Get command line arguments. Exit if not provided. option_list = list( make_option(c("-r", "--training_dataset"), ty...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.lexmodelbuildingservice_operations.R \name{start_import} \alias{start_import} \title{Starts a job to import a resource to Amazon Lex} \usage{ start_import(payload, resourceType, mergeStrategy) } \arguments{ \item{payload}{[required] A zi...
/service/paws.lexmodelbuildingservice/man/start_import.Rd
permissive
CR-Mercado/paws
R
false
true
1,651
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/paws.lexmodelbuildingservice_operations.R \name{start_import} \alias{start_import} \title{Starts a job to import a resource to Amazon Lex} \usage{ start_import(payload, resourceType, mergeStrategy) } \arguments{ \item{payload}{[required] A zi...
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/ReliefF/pancreas.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0,family="gaussian",standardize=TRUE) sink('./pancreas_001.txt',append=TRUE) pr...
/Model/EN/ReliefF/pancreas/pancreas_001.R
no_license
esbgkannan/QSMART
R
false
false
347
r
library(glmnet) mydata = read.table("../../../../TrainingSet/FullSet/ReliefF/pancreas.csv",head=T,sep=",") x = as.matrix(mydata[,4:ncol(mydata)]) y = as.matrix(mydata[,1]) set.seed(123) glm = cv.glmnet(x,y,nfolds=10,type.measure="mse",alpha=0,family="gaussian",standardize=TRUE) sink('./pancreas_001.txt',append=TRUE) pr...
\name{orditkplot} \alias{orditkplot} \alias{plot.orditkplot} \alias{scores.orditkplot} \alias{points.orditkplot} \alias{text.orditkplot} \title{ Ordination Plot with Movable Labels } \description{ Function \code{orditkplot} produces an editable ordination plot with points and labels. The labels can be moved with m...
/man/orditkplot.Rd
no_license
gepellet/vegan
R
false
false
8,217
rd
\name{orditkplot} \alias{orditkplot} \alias{plot.orditkplot} \alias{scores.orditkplot} \alias{points.orditkplot} \alias{text.orditkplot} \title{ Ordination Plot with Movable Labels } \description{ Function \code{orditkplot} produces an editable ordination plot with points and labels. The labels can be moved with m...
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common new_operation new_request send_request #' @include s3control_service.R NULL #' Creates an Amazon S3 batch operations job #' #' Creates an Amazon S3 batch operations job. #' #' @usage #' s3control_create_job(AccountId, Confirmati...
/cran/paws.storage/R/s3control_operations.R
permissive
peoplecure/paws
R
false
false
15,829
r
# This file is generated by make.paws. Please do not edit here. #' @importFrom paws.common new_operation new_request send_request #' @include s3control_service.R NULL #' Creates an Amazon S3 batch operations job #' #' Creates an Amazon S3 batch operations job. #' #' @usage #' s3control_create_job(AccountId, Confirmati...
#' Install and Load R Packages #' @param ... list of packages desired to be installed and loded #' @param silent to tell lubripack whether report successful loading of requested packages or not.Read more in details. #' @description This function receives a list of packages to locally install and load them into memory. ...
/R/lubripack.R
no_license
Espanta/lubripack
R
false
false
2,310
r
#' Install and Load R Packages #' @param ... list of packages desired to be installed and loded #' @param silent to tell lubripack whether report successful loading of requested packages or not.Read more in details. #' @description This function receives a list of packages to locally install and load them into memory. ...
#' Populate Date Columns #' #' Creates various date columns for WRTDS study. #' #' @param rawData vector with dateTime #' @return DateFrame dataframe #' @export #' @rdname dateFuncs #' @examples #' dateTime <- c('1984-02-28 13:56', '1984-03-01 00:00', '1986-03-01 00:00',"1986-10-15 00:00") #' expandedDateDF <- populate...
/R/populateDateColumns.r
permissive
megamanrogue/EGRET
R
false
false
2,071
r
#' Populate Date Columns #' #' Creates various date columns for WRTDS study. #' #' @param rawData vector with dateTime #' @return DateFrame dataframe #' @export #' @rdname dateFuncs #' @examples #' dateTime <- c('1984-02-28 13:56', '1984-03-01 00:00', '1986-03-01 00:00',"1986-10-15 00:00") #' expandedDateDF <- populate...
#Ploting Household Usage Energy - Plot1 #By Ahlulwulus dataPowerUsage <- "household_power_consumption.txt" data <- read.table(dataPowerUsage, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") subsetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,] #subsetData globalactivePower <- as.numeric(subsetData$Glob...
/Module 4 - Project 1/plot1.R
no_license
ahlulwulus/datasciencecoursera
R
false
false
489
r
#Ploting Household Usage Energy - Plot1 #By Ahlulwulus dataPowerUsage <- "household_power_consumption.txt" data <- read.table(dataPowerUsage, header=TRUE, sep=";", stringsAsFactors=FALSE, dec=".") subsetData <- data[data$Date %in% c("1/2/2007","2/2/2007") ,] #subsetData globalactivePower <- as.numeric(subsetData$Glob...
# Naive Bayes #https://www.r-bloggers.com/understanding-naive-bayes-classifier-using-r/ #Getting started with Naive Bayes #Install the package #install.packages(“e1071”) #Loading the library library(e1071) ?naiveBayes #The documentation also contains an example implementation of Titanic dataset #Next load the Titani...
/57-naive/naivbayes2.R
no_license
DUanalytics/rAnalytics
R
false
false
1,874
r
# Naive Bayes #https://www.r-bloggers.com/understanding-naive-bayes-classifier-using-r/ #Getting started with Naive Bayes #Install the package #install.packages(“e1071”) #Loading the library library(e1071) ?naiveBayes #The documentation also contains an example implementation of Titanic dataset #Next load the Titani...
data <- read.table("cpu-620-clients-st-false.txt") response <- read.table("delay-620-clients-st-false.txt") data$V1 <- ( data$V1 - data$V1[1]) / 1000 data$V2 <- data$V2 * 100 response$V2 <- ( response$V2 - response$V2[1]) / 1000 response$V3 <- response$V3 / 1000 out2 <- response$V2[ seq_along(response$V2) %% 100 =...
/scripts/genLinePlot-CPU-response.r
no_license
kjetilr/Gameserver
R
false
false
721
r
data <- read.table("cpu-620-clients-st-false.txt") response <- read.table("delay-620-clients-st-false.txt") data$V1 <- ( data$V1 - data$V1[1]) / 1000 data$V2 <- data$V2 * 100 response$V2 <- ( response$V2 - response$V2[1]) / 1000 response$V3 <- response$V3 / 1000 out2 <- response$V2[ seq_along(response$V2) %% 100 =...
context("metab_mle") test_that("metab_mle models can be created", { mm <- metab_mle(data=data_metab('1', res='30')) # check basic structure expect_is(mm, "metab_mle") expect_is(slot(mm, "fit"), "data.frame") expect_is(slot(mm, "specs"), "list") expect_is(slot(mm, "data"), "data.frame") expect_is(sl...
/tests/testthat/test-metab_mle.R
permissive
lsdeel/streamMetabolizer
R
false
false
4,961
r
context("metab_mle") test_that("metab_mle models can be created", { mm <- metab_mle(data=data_metab('1', res='30')) # check basic structure expect_is(mm, "metab_mle") expect_is(slot(mm, "fit"), "data.frame") expect_is(slot(mm, "specs"), "list") expect_is(slot(mm, "data"), "data.frame") expect_is(sl...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/enrollment_survey.R \name{fetch_enroll_survey} \alias{fetch_enroll_survey} \title{Fetch enrollment survey responses} \usage{ fetch_enroll_survey(esurvey_id, user_ids, shape = "wide", ..., con = get_session_con()) } \arguments{ \item{esurvey...
/man/fetch_enroll_survey.Rd
no_license
TheFridayInstitute/fimoodler
R
false
true
1,443
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/enrollment_survey.R \name{fetch_enroll_survey} \alias{fetch_enroll_survey} \title{Fetch enrollment survey responses} \usage{ fetch_enroll_survey(esurvey_id, user_ids, shape = "wide", ..., con = get_session_con()) } \arguments{ \item{esurvey...
x = rexp(10000,4) # random exponential hist(x,freq=FALSE,breaks=50) m = mean(x) 1/m M = c() for (k in 1:50) { X=rexp(10000,4) M = c(M,1/mean(X)) } boxplot(M) Z = rexp(50,2) A = 3*Z + rnorm(50,0,1) plot(Z, A) L = lm(A~Z) abline(L)
/0_refreshers/probabilities/r/test.r
no_license
qlero/UCA_MSc-DS1
R
false
false
237
r
x = rexp(10000,4) # random exponential hist(x,freq=FALSE,breaks=50) m = mean(x) 1/m M = c() for (k in 1:50) { X=rexp(10000,4) M = c(M,1/mean(X)) } boxplot(M) Z = rexp(50,2) A = 3*Z + rnorm(50,0,1) plot(Z, A) L = lm(A~Z) abline(L)
require(ggplot2) source(paste0(snakemake@params$wfpath, "/scripts_r/vis.export.R")) # import original taxids taxids.org.file <- snakemake@input$org_taxids taxids.org <- as.numeric(readLines(taxids.org.file)) # import and normalize original counts counts.org.file <- snakemake@input$org_counts counts.org <- as.numeric...
/TaxIt/scripts_r/vis.stacked.R
permissive
jiahao95/project_lab-ss2020
R
false
false
5,065
r
require(ggplot2) source(paste0(snakemake@params$wfpath, "/scripts_r/vis.export.R")) # import original taxids taxids.org.file <- snakemake@input$org_taxids taxids.org <- as.numeric(readLines(taxids.org.file)) # import and normalize original counts counts.org.file <- snakemake@input$org_counts counts.org <- as.numeric...
library(ggmcmc) load('ch.4/output/result-model4-5.RData') p <- ggs_traceplot(ggs(fit, inc_warmup=TRUE, stan_include_auxiliar=TRUE)) p <- p + theme_bw(base_size=18) p <- p + scale_colour_manual(values=c('#dcdcdc','#a9a9a9','#696969','#000000')) p <- p + labs(color='Chain') ggsave(p, file='ch.4/output/fig4-4.png', dpi=...
/code/ch.4/fig4-4.R
permissive
rhyeu/study_rstan
R
false
false
336
r
library(ggmcmc) load('ch.4/output/result-model4-5.RData') p <- ggs_traceplot(ggs(fit, inc_warmup=TRUE, stan_include_auxiliar=TRUE)) p <- p + theme_bw(base_size=18) p <- p + scale_colour_manual(values=c('#dcdcdc','#a9a9a9','#696969','#000000')) p <- p + labs(color='Chain') ggsave(p, file='ch.4/output/fig4-4.png', dpi=...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nfl_optimize.R \name{nfl_optimize} \alias{nfl_optimize} \title{nfl_optimize} \usage{ nfl_optimize(df, platform) } \arguments{ \item{df}{dataframe containing player projections, salaries, positions} \item{platform}{'dk' or 'fd' depending on p...
/man/nfl_optimize.Rd
no_license
kimjam/dfstoolkit
R
false
true
432
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/nfl_optimize.R \name{nfl_optimize} \alias{nfl_optimize} \title{nfl_optimize} \usage{ nfl_optimize(df, platform) } \arguments{ \item{df}{dataframe containing player projections, salaries, positions} \item{platform}{'dk' or 'fd' depending on p...
# mCOPA generic and method #' Outlier profile Analysis #' #' Returns a matrix with 0, -1 and 1 entries that describe outlier profiles #' in samples. The rows reperesent genes and the columns represent samples. -1 implies #' that the gene is a down-regulated outlier, 1 indicates an up-regulate outlier and 0 #' means...
/R/opa-generic-methods.R
no_license
DavisLaboratory/oppar
R
false
false
6,756
r
# mCOPA generic and method #' Outlier profile Analysis #' #' Returns a matrix with 0, -1 and 1 entries that describe outlier profiles #' in samples. The rows reperesent genes and the columns represent samples. -1 implies #' that the gene is a down-regulated outlier, 1 indicates an up-regulate outlier and 0 #' means...
start_app() on.exit(stop_app(), add = TRUE) # We can't easily use snapshot tests here, because they don't capture \r test_that("create and clear", { f <- function() { cli_status("* This is the current status") cli_status_clear() } out <- ansi_strip(capt0(f())) expect_match(out, "* This is the current...
/tests/testthat/test-status-bar.R
permissive
queilawithaQ/cli-1
R
false
false
7,968
r
start_app() on.exit(stop_app(), add = TRUE) # We can't easily use snapshot tests here, because they don't capture \r test_that("create and clear", { f <- function() { cli_status("* This is the current status") cli_status_clear() } out <- ansi_strip(capt0(f())) expect_match(out, "* This is the current...
# ## markdown lecture # # a text to html conversion tool for web writers (john gruber) # *itlaics* # ** bold** # # main heading # ## secondary heading # ### tertiary heading # - list one # - list two # # ordered list (numbers don't matter, markdown will fix numbers) # 1. first # 2. ...
/test.R
no_license
leemendoza/homecode
R
false
false
4,558
r
# ## markdown lecture # # a text to html conversion tool for web writers (john gruber) # *itlaics* # ** bold** # # main heading # ## secondary heading # ### tertiary heading # - list one # - list two # # ordered list (numbers don't matter, markdown will fix numbers) # 1. first # 2. ...
library("rvest") library("tidyverse") # scraping real clear politics for historic polling data # the data will still have to be cleaned after this, but at least it's on my machine # NOTE # sometimes the polling data for the GE goes for longer than a year # no year is given, when the year 'rolls over' only the D...
/get_election_data/presidential polling/IA.R
no_license
daniel-mikel/R_Projects
R
false
false
7,994
r
library("rvest") library("tidyverse") # scraping real clear politics for historic polling data # the data will still have to be cleaned after this, but at least it's on my machine # NOTE # sometimes the polling data for the GE goes for longer than a year # no year is given, when the year 'rolls over' only the D...
# Base code by Middy Casillas # defigured by Alex Cristia library(tidyverse) ##### BASE LEVEL input.per.unit <- 1 #this is a constant for all epochs # this is how much input a child gets per unit of time - it is constant, assuming parents do not increase their talking cumulated.input <-0 # this is how much input a c...
/LBS-rec_time_info/1-non-linear_age_effects-AC.R
no_license
marisacasillas/Scratch
R
false
false
2,891
r
# Base code by Middy Casillas # defigured by Alex Cristia library(tidyverse) ##### BASE LEVEL input.per.unit <- 1 #this is a constant for all epochs # this is how much input a child gets per unit of time - it is constant, assuming parents do not increase their talking cumulated.input <-0 # this is how much input a c...
### Load simulation data if (!exists("sim_res")) sim_res = readRDS("sim_res.RDS") ### Summary statistics in a data frame for all populations ext.s7.df = data.frame( sel = sapply(sim_res, with, selstrength), ext = sapply(sim_res, with, extinct), sdopt = sapply(sim_res, with, sdopt), meanopt = sapply(sim_res...
/Plot_repro_cat.r
no_license
simonevincenzi/Contemporary_Extinction
R
false
false
5,311
r
### Load simulation data if (!exists("sim_res")) sim_res = readRDS("sim_res.RDS") ### Summary statistics in a data frame for all populations ext.s7.df = data.frame( sel = sapply(sim_res, with, selstrength), ext = sapply(sim_res, with, extinct), sdopt = sapply(sim_res, with, sdopt), meanopt = sapply(sim_res...
if (!require(pacman)) install.packages("pacman") pacman::p_load(data.table, tidyverse, readxl, lubridate, pbapply, zoo, xlsx, DMwR) Sys.setlocale(locale = "chs") gc() # Helper Functions ---------------------------------------------------------------------- normalize_data <- function(x) { min_x <- min(x,na.rm = T...
/Linear_Regression.R
no_license
rjachuthan/R-Codes
R
false
false
11,923
r
if (!require(pacman)) install.packages("pacman") pacman::p_load(data.table, tidyverse, readxl, lubridate, pbapply, zoo, xlsx, DMwR) Sys.setlocale(locale = "chs") gc() # Helper Functions ---------------------------------------------------------------------- normalize_data <- function(x) { min_x <- min(x,na.rm = T...
#!/usr/bin/env Rscript #' @title Generate Gaussian dataset #' @description Generate a dataset based upon a mixture of Gaussian distributions #' (with independent features). #' @param cluster_means A k-vector of cluster means defining the k clusters. #' @param n The number of samples to generate in the entire dataset. ...
/R/generateGaussianDataset.R
no_license
stcolema/mdiHelpR
R
false
false
2,522
r
#!/usr/bin/env Rscript #' @title Generate Gaussian dataset #' @description Generate a dataset based upon a mixture of Gaussian distributions #' (with independent features). #' @param cluster_means A k-vector of cluster means defining the k clusters. #' @param n The number of samples to generate in the entire dataset. ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calculate_summary_statistics.R \name{calculate_summary_statistics} \alias{calculate_summary_statistics} \title{Calculate model summary statistics.} \usage{ calculate_summary_statistics(modeled_data_obj = NULL) } \arguments{ \item{modeled_data...
/man/calculate_summary_statistics.Rd
permissive
LW-G38/nmecr
R
false
true
592
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/calculate_summary_statistics.R \name{calculate_summary_statistics} \alias{calculate_summary_statistics} \title{Calculate model summary statistics.} \usage{ calculate_summary_statistics(modeled_data_obj = NULL) } \arguments{ \item{modeled_data...
########################### METEO FROM MSU ##################################### read_meteo = function(folder){ #folder="MSU" meteo_files = dir(folder,recursive=T) all_meteo_data = data.frame() for (file in meteo_files){ meteo_data <- read_table2(paste(folder,file,sep="/"), ...
/code/TT_meteo_import.R
no_license
yaroslavtsevam/TT-
R
false
false
3,876
r
########################### METEO FROM MSU ##################################### read_meteo = function(folder){ #folder="MSU" meteo_files = dir(folder,recursive=T) all_meteo_data = data.frame() for (file in meteo_files){ meteo_data <- read_table2(paste(folder,file,sep="/"), ...
## Plot 4 labels <- c("Sub_metering_1","Sub_metering_2","Sub_metering_3") columnlines <- c("black","red","blue") par(mfrow=c(2,2)) plot(finalData$SetTime, finalData$Global_active_power, type="l", col="green", xlab="", ylab="Global Active Power") plot(finalData$SetTime, finalData$Voltage, type="l", col="orange", xlab="d...
/Plot4.R
no_license
Modak-Raj/ExData_Plotting1
R
false
false
780
r
## Plot 4 labels <- c("Sub_metering_1","Sub_metering_2","Sub_metering_3") columnlines <- c("black","red","blue") par(mfrow=c(2,2)) plot(finalData$SetTime, finalData$Global_active_power, type="l", col="green", xlab="", ylab="Global Active Power") plot(finalData$SetTime, finalData$Voltage, type="l", col="orange", xlab="d...
############################# ## Load Relevant Libraries ## ############################# require(ggplot2) require(mgcv) require(visreg) require(RLRsim) ########################################################## ## Define sample of participants with CNB factor scores ## ################################################...
/code/gam/GAM_tutorial.R
no_license
a3sha2/tutorials
R
false
false
4,159
r
############################# ## Load Relevant Libraries ## ############################# require(ggplot2) require(mgcv) require(visreg) require(RLRsim) ########################################################## ## Define sample of participants with CNB factor scores ## ################################################...
#' #' R Interface for Program E-SURGE #' #' Provide an R interface for running some of the models available in # Program E-SURGE (\url{http://www.cefe.cnrs.fr/fr/actus/livres/34-french/recherche/bc/bbp/264-logiciels}), #' Program E-SURGE (\url{https://mycore.core-cloud.net/public.php?service=files&t=7aa2ac97d3e06...
/R/R2Esurge.R
no_license
jhines/R2esurge
R
false
false
2,332
r
#' #' R Interface for Program E-SURGE #' #' Provide an R interface for running some of the models available in # Program E-SURGE (\url{http://www.cefe.cnrs.fr/fr/actus/livres/34-french/recherche/bc/bbp/264-logiciels}), #' Program E-SURGE (\url{https://mycore.core-cloud.net/public.php?service=files&t=7aa2ac97d3e06...
# Diagnostics for sim_table2_Pajor.R # Question of interest: # Why it there such a discrepancy between the glmer and glmmPen results in some cases? # Comparison of Pajor IS CAME logLik calculation method with glmer results library(glmmPen) library(parallel) library(foreach) library(doParallel) library(stringr) N = ...
/glmer_vs_Pajor_diagnostics.R
no_license
hheiling/cloud
R
false
false
3,913
r
# Diagnostics for sim_table2_Pajor.R # Question of interest: # Why it there such a discrepancy between the glmer and glmmPen results in some cases? # Comparison of Pajor IS CAME logLik calculation method with glmer results library(glmmPen) library(parallel) library(foreach) library(doParallel) library(stringr) N = ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bbox.R \name{gbif_bbox2wkt} \alias{gbif_bbox2wkt} \alias{gbif_wkt2bbox} \title{Convert a bounding box to a Well Known Text polygon, and a WKT to a bounding box} \usage{ gbif_bbox2wkt(minx = NA, miny = NA, maxx = NA, maxy = NA, bbox = NULL) g...
/man/gbif_bbox2wkt.Rd
permissive
JanLauGe/rgbif
R
false
true
1,498
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bbox.R \name{gbif_bbox2wkt} \alias{gbif_bbox2wkt} \alias{gbif_wkt2bbox} \title{Convert a bounding box to a Well Known Text polygon, and a WKT to a bounding box} \usage{ gbif_bbox2wkt(minx = NA, miny = NA, maxx = NA, maxy = NA, bbox = NULL) g...
if(!require(plyr)) { install.packages("plyr"); require(plyr)} ### this function will take a data frame and return a data frame with the mean, standard deviation, and standard error ### calculated for all the NUMERIC columns split by all the FACTOR columns ### I would first recommend running: # colwise(class)(data...
/Summary Data Function.R
no_license
hanlonmt/General-R-Code
R
false
false
4,199
r
if(!require(plyr)) { install.packages("plyr"); require(plyr)} ### this function will take a data frame and return a data frame with the mean, standard deviation, and standard error ### calculated for all the NUMERIC columns split by all the FACTOR columns ### I would first recommend running: # colwise(class)(data...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/emuR-dataDocs.R \docType{data} \name{vowlax.df} \alias{vowlax.df} \title{Data frame of various parameters and labels from the segment list vowlax} \format{dataframe} \description{ An EMU dataset } \keyword{datasets}
/man/vowlax.df.Rd
no_license
hywel/emuR
R
false
false
303
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/emuR-dataDocs.R \docType{data} \name{vowlax.df} \alias{vowlax.df} \title{Data frame of various parameters and labels from the segment list vowlax} \format{dataframe} \description{ An EMU dataset } \keyword{datasets}
/tesis.R
no_license
NataliaCampos7/Codigos
R
false
false
6,397
r
#' tests/sdr.R #' #' $Revision: 1.1 $ $Date: 2018/05/13 03:14:49 $ require(spatstat) local({ AN <- sdr(bei, bei.extra, method="NNIR") AV <- sdr(bei, bei.extra, method="SAVE") AI <- sdr(bei, bei.extra, method="SIR") AT <- sdr(bei, bei.extra, method="TSE") subspaceDistance(AN$B, AV$B) dimhat(AN$M) }) # #...
/tests/testsStoZ.R
no_license
ynsxx/spatstat
R
false
false
25,599
r
#' tests/sdr.R #' #' $Revision: 1.1 $ $Date: 2018/05/13 03:14:49 $ require(spatstat) local({ AN <- sdr(bei, bei.extra, method="NNIR") AV <- sdr(bei, bei.extra, method="SAVE") AI <- sdr(bei, bei.extra, method="SIR") AT <- sdr(bei, bei.extra, method="TSE") subspaceDistance(AN$B, AV$B) dimhat(AN$M) }) # #...
# ODE cycles - equations # load libraries #install.packages(pacman) pacman::p_load(deSolve,reshape2,akima,lattice,ggplot2,dplyr,tidyr,gridExtra,reshape2,envalysis) # First 6 months - Enivornment A together (both M and R) # First 6 months (Season 1) Envir A open.sir.model1 <- function (t, x, params) { # fir...
/Fig.5/fig5a.R
no_license
kimx3725/Tolerance_Migration
R
false
false
18,728
r
# ODE cycles - equations # load libraries #install.packages(pacman) pacman::p_load(deSolve,reshape2,akima,lattice,ggplot2,dplyr,tidyr,gridExtra,reshape2,envalysis) # First 6 months - Enivornment A together (both M and R) # First 6 months (Season 1) Envir A open.sir.model1 <- function (t, x, params) { # fir...
# The following code to create a dataframe and remove duplicated rows is always executed and acts as a preamble for your script: # dataset <- data.frame(Annual Raise ($/yr), Seniority (yrs), Department) # dataset <- unique(dataset) # Paste or type your script code here: Department <- dataset$Department WageRate <- ...
/BoxplotCode.r
no_license
andrewt929/LouMetroPersonel
R
false
false
669
r
# The following code to create a dataframe and remove duplicated rows is always executed and acts as a preamble for your script: # dataset <- data.frame(Annual Raise ($/yr), Seniority (yrs), Department) # dataset <- unique(dataset) # Paste or type your script code here: Department <- dataset$Department WageRate <- ...
## Generalized inverse, or pseudoinverse pseudoinverse <- function (m){ msvd <- svd(m) if (length(msvd$d) == 0) { return(array(0, dim(m)[2:1])) } else { return(msvd$v %*% (1 / msvd$d * t(msvd$u))) } } ## Design matrix slouch.modelmatrix <- function(a, hl, tree, observations, control...
/R/reg.R
no_license
cran/slouch
R
false
false
15,370
r
## Generalized inverse, or pseudoinverse pseudoinverse <- function (m){ msvd <- svd(m) if (length(msvd$d) == 0) { return(array(0, dim(m)[2:1])) } else { return(msvd$v %*% (1 / msvd$d * t(msvd$u))) } } ## Design matrix slouch.modelmatrix <- function(a, hl, tree, observations, control...
## Function 1 takes a square matrix, computes the inverse, and caches the result. ## Function 2 returns the inverse of a square matrix from the cache; otherwise it computes it on the spot, stores it, and returns it. ## FUNCTION 1 ## makeCacheMatrix: This function creates a special "matrix" object ## that can cache it...
/cachematrix.R
no_license
theakoullias/ProgrammingAssignment2
R
false
false
1,384
r
## Function 1 takes a square matrix, computes the inverse, and caches the result. ## Function 2 returns the inverse of a square matrix from the cache; otherwise it computes it on the spot, stores it, and returns it. ## FUNCTION 1 ## makeCacheMatrix: This function creates a special "matrix" object ## that can cache it...
\name{chclust} \alias{chclust} \alias{plot.chclust} \alias{bstick} \alias{bstick.chclust} \title{Constrained hierarchical clustering} \description{ Constrained hierarchical clustering. } \usage{ chclust(d, method = "coniss") \method{plot}{chclust}(x, labels = NULL, hang = 0.1, axes = TRUE, xvar=1:(length(x$heigh...
/man/chclust.Rd
no_license
alexkowa/rioja
R
false
false
4,268
rd
\name{chclust} \alias{chclust} \alias{plot.chclust} \alias{bstick} \alias{bstick.chclust} \title{Constrained hierarchical clustering} \description{ Constrained hierarchical clustering. } \usage{ chclust(d, method = "coniss") \method{plot}{chclust}(x, labels = NULL, hang = 0.1, axes = TRUE, xvar=1:(length(x$heigh...
\name{calc.mult.GR} \alias{calc.mult.GR} \title{Calculate Gelman and Rubin diagnostic multiple times for mixed stock analyses} \description{ Runs Gelman and Rubin diagnostics from CODA multiple times, to get an idea of the variation in convergence statistics } \usage{ calc.mult.GR(data, n=10, tot=20000, burn=1, ver...
/man/calc.mult.GR.Rd
no_license
bbolker/mixstock
R
false
false
1,316
rd
\name{calc.mult.GR} \alias{calc.mult.GR} \title{Calculate Gelman and Rubin diagnostic multiple times for mixed stock analyses} \description{ Runs Gelman and Rubin diagnostics from CODA multiple times, to get an idea of the variation in convergence statistics } \usage{ calc.mult.GR(data, n=10, tot=20000, burn=1, ver...
#!/usr/bin/env Rscript rm(list=ls()) set.seed(42) args <- commandArgs(trailingOnly = T) require(data.table) src <- readRDS(args[1]) p <- as.numeric(paste0("0.", args[2])) cat("sample fraction: ",p,"\n") saveRDS(src[runif(.N) < p], args[3])
/sample-events.R
no_license
pearsonca/montreal-digest
R
false
false
246
r
#!/usr/bin/env Rscript rm(list=ls()) set.seed(42) args <- commandArgs(trailingOnly = T) require(data.table) src <- readRDS(args[1]) p <- as.numeric(paste0("0.", args[2])) cat("sample fraction: ",p,"\n") saveRDS(src[runif(.N) < p], args[3])
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/assetDatabaseApi.r \name{assetDatabase$createAttributeCategory} \alias{assetDatabase$createAttributeCategory} \title{Create an attribute category at the Asset Database root.} \arguments{ \item{webId}{The ID of the database in which to create ...
/man/assetDatabase-cash-createAttributeCategory.Rd
permissive
aj9253/PI-Web-API-Client-R
R
false
true
602
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/assetDatabaseApi.r \name{assetDatabase$createAttributeCategory} \alias{assetDatabase$createAttributeCategory} \title{Create an attribute category at the Asset Database root.} \arguments{ \item{webId}{The ID of the database in which to create ...
############################################# # # # Exercise 3 # # # ############################################# # 1. Load 4 packages related to constructing technical indicators and handling time seri...
/Day 02/Exercise/Exercise Technical Analysis.R
no_license
tanlull/R-Investments
R
false
false
1,112
r
############################################# # # # Exercise 3 # # # ############################################# # 1. Load 4 packages related to constructing technical indicators and handling time seri...
#!/usr/bin/Rscript ##!/usr/local/bioinfo/src/R/R-3.2.2/bin/Rscript #Script by QR - 15-09-16 #Miniscript to reshape a classical ped file into a genotypic matrix (usefull for several programms) #Input files: 1) ped file #Output: genotypic matrix (AC, TG/TC etc. with inds in row, mk in cols) argv <- commandArgs(TRUE) #...
/00-scripts/rscript/00.ped2genotype.R
no_license
keithmp/fine_structure
R
false
false
877
r
#!/usr/bin/Rscript ##!/usr/local/bioinfo/src/R/R-3.2.2/bin/Rscript #Script by QR - 15-09-16 #Miniscript to reshape a classical ped file into a genotypic matrix (usefull for several programms) #Input files: 1) ped file #Output: genotypic matrix (AC, TG/TC etc. with inds in row, mk in cols) argv <- commandArgs(TRUE) #...
/finas2.R
no_license
Collinnn/Aflevering1
R
false
false
3,244
r
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/actions.R \name{e_zoom} \alias{e_zoom} \title{Zoom} \usage{ e_zoom(e, ..., btn = NULL) } \arguments{ \item{e}{An \code{echarts4r} object as returned by \code{\link{e_charts}} or a proxy as returned by \code{\link{echarts4rProxy}}.} \item{......
/man/e_zoom.Rd
permissive
JohnCoene/echarts4r
R
false
true
715
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/actions.R \name{e_zoom} \alias{e_zoom} \title{Zoom} \usage{ e_zoom(e, ..., btn = NULL) } \arguments{ \item{e}{An \code{echarts4r} object as returned by \code{\link{e_charts}} or a proxy as returned by \code{\link{echarts4rProxy}}.} \item{......
--- title: "R Notebook" output: html_notebook --- This is an [R Markdown](http://rmarkdown.rstudio.com) Notebook. When you execute code within the notebook, the results appear beneath the code. Try executing this chunk by clicking the *Run* button within the chunk or by placing your cursor inside it and press...
/breast-cancer-winscoin.R
no_license
lekmeera/Breast-Cancer-Wisconsin-R
R
false
false
4,857
r
--- title: "R Notebook" output: html_notebook --- This is an [R Markdown](http://rmarkdown.rstudio.com) Notebook. When you execute code within the notebook, the results appear beneath the code. Try executing this chunk by clicking the *Run* button within the chunk or by placing your cursor inside it and press...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Cevap_functions.R \name{Cevap_total_frac} \alias{Cevap_total_frac} \title{Total Fractionation Factor} \usage{ Cevap_total_frac(alpha, delta_epsilon) } \arguments{ \item{alpha}{equilibrium isotope fractionation factor (-) at the temperature of...
/man/Cevap_total_frac.Rd
no_license
cvoter/CSLSchem
R
false
true
1,086
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/Cevap_functions.R \name{Cevap_total_frac} \alias{Cevap_total_frac} \title{Total Fractionation Factor} \usage{ Cevap_total_frac(alpha, delta_epsilon) } \arguments{ \item{alpha}{equilibrium isotope fractionation factor (-) at the temperature of...
#' Fitting a Multiplicative Seasonal ARIMA model. #' #' Fitting a SARIMA model in \pkg{Stan}. #' #' The function returns a \code{varstan} object with the fitted model. #' #' @param ts a numeric or ts object with the univariate time series. #' @param order A specification of the non-seasonal part of the ARIMA mo...
/R/stan_models.R
no_license
cran/bayesforecast
R
false
false
52,260
r
#' Fitting a Multiplicative Seasonal ARIMA model. #' #' Fitting a SARIMA model in \pkg{Stan}. #' #' The function returns a \code{varstan} object with the fitted model. #' #' @param ts a numeric or ts object with the univariate time series. #' @param order A specification of the non-seasonal part of the ARIMA mo...
library(tidyverse) # Construct a dataset that represents grade scores for 100 students in 24 # different subjects. The overall average has been removed so this data # represents the percentage point each student received above or below # the average test score. So a 0 represents an average grade (C), a 25 # is a h...
/08-MachineLearning/matrix_factorization.R
no_license
eaamankwah/HarvardX-Data-Science
R
false
false
2,482
r
library(tidyverse) # Construct a dataset that represents grade scores for 100 students in 24 # different subjects. The overall average has been removed so this data # represents the percentage point each student received above or below # the average test score. So a 0 represents an average grade (C), a 25 # is a h...
library(ggplot2) library(mgcv) library(dplyr) library(readxl) finch_il <- read_excel("Data/Spinus_2020_parasitemia_IL6_survival_final.xlsx", na = "NA", sheet = "Spinus_2020_parasitemia_IL6_sur") finch_il$Experiment <- factor(finch_il$Experiment) finch_il$Ring <- factor(finch_il$Ring) n_obs_il <- finch_il %>% group...
/Birds_and_Malaria/R_calc_for_malaria/malaria_2.R
no_license
polydora/Articles_in_progress
R
false
false
5,158
r
library(ggplot2) library(mgcv) library(dplyr) library(readxl) finch_il <- read_excel("Data/Spinus_2020_parasitemia_IL6_survival_final.xlsx", na = "NA", sheet = "Spinus_2020_parasitemia_IL6_sur") finch_il$Experiment <- factor(finch_il$Experiment) finch_il$Ring <- factor(finch_il$Ring) n_obs_il <- finch_il %>% group...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/container.R \name{container_rm} \alias{container_rm} \title{Delete a container.} \usage{ container_rm(container, force = FALSE) } \arguments{ \item{container}{A container object} \item{force}{Force removal of a running container.} } \descrip...
/man/container_rm.Rd
no_license
wch/harbor
R
false
true
391
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/container.R \name{container_rm} \alias{container_rm} \title{Delete a container.} \usage{ container_rm(container, force = FALSE) } \arguments{ \item{container}{A container object} \item{force}{Force removal of a running container.} } \descrip...
#library(viralEXP) #DFtest<-read.csv("D:/Dropbox/EPFL/Lab book/R/template.csv",sep=";", header = T) #write.table(xxx, file.path("~/Dropbox/EPFL/Lab book/R/data", "ALL_RESULTS.csv"), row.names=FALSE, sep=";", dec=".") #gsub(pattern=test,replacement=paste(test,"ewew"),x=test) #gsub(pattern=".csv",replacement="_MPN.csv...
/R/test.R
no_license
nhuhoai/viralEXP
R
false
false
644
r
#library(viralEXP) #DFtest<-read.csv("D:/Dropbox/EPFL/Lab book/R/template.csv",sep=";", header = T) #write.table(xxx, file.path("~/Dropbox/EPFL/Lab book/R/data", "ALL_RESULTS.csv"), row.names=FALSE, sep=";", dec=".") #gsub(pattern=test,replacement=paste(test,"ewew"),x=test) #gsub(pattern=".csv",replacement="_MPN.csv...
### Load the necessary packages. library('BradleyTerry2') # Need to fit a B-T model. library('eba') # Need to this library to implement the pcX function (i.e. # fit the T-M and B-T models). library('xtable') # Need for the xtable function. library('weights') # Need for the rd function. library('Matrix') # N...
/InterchangeCategory.R
no_license
EricXProgramming/Thurstone-Mosteller-
R
false
false
1,689
r
### Load the necessary packages. library('BradleyTerry2') # Need to fit a B-T model. library('eba') # Need to this library to implement the pcX function (i.e. # fit the T-M and B-T models). library('xtable') # Need for the xtable function. library('weights') # Need for the rd function. library('Matrix') # N...
#Libraries library(fields) library(rjags) library(poibin) #Character string DNA complementation# *DONE* revcomp<-function(dna.seq){ n.seq<-length(dna.seq) out.seq<-rep(NA,n.seq) for(i in 1:n.seq){ out.seq[i]<-chartr("ACTG","TGAC",paste(rev(unlist(strsplit(dna.seq[i],""))),sep="",collapse="")) ...
/BaySIC/R/BaySIC.R
no_license
ingted/R-Examples
R
false
false
16,864
r
#Libraries library(fields) library(rjags) library(poibin) #Character string DNA complementation# *DONE* revcomp<-function(dna.seq){ n.seq<-length(dna.seq) out.seq<-rep(NA,n.seq) for(i in 1:n.seq){ out.seq[i]<-chartr("ACTG","TGAC",paste(rev(unlist(strsplit(dna.seq[i],""))),sep="",collapse="")) ...
library(scales) N <- 2000 # This needs to be an even number for clean pairing precis <- 100000 mutate <- 0.0001 V0 <- 0.0001 phis <- 0.5 Y_D <- 2.5 Y_Cboost <- 2.5 shiftsize <- 1/4 t1 <- -2 k1 <- 12.5 t2 <- -0.4 k2 <- 25 delta_D <- 1 X <- 5 A <- 20 ######### lwd <- 3 repeet <- 1 ts <- seq(-3,0,length.out=precis)...
/paternal_simulations.R
no_license
systemsscience/paternal
R
false
false
6,466
r
library(scales) N <- 2000 # This needs to be an even number for clean pairing precis <- 100000 mutate <- 0.0001 V0 <- 0.0001 phis <- 0.5 Y_D <- 2.5 Y_Cboost <- 2.5 shiftsize <- 1/4 t1 <- -2 k1 <- 12.5 t2 <- -0.4 k2 <- 25 delta_D <- 1 X <- 5 A <- 20 ######### lwd <- 3 repeet <- 1 ts <- seq(-3,0,length.out=precis)...
## General procedure ## ####################### ## For set s in 1,...,Nset ## Let G(s) be genes in set s ## Get summary stats on G(s) ## q[G(s)], r[G(s)]: sum of discrete and continuous t statistics ## Q[G(s)], R[G(s)]: sum-covariance matrices ## => Modules will be compared by regulation patterns ## Alternate procedur...
/R/GSEA-by-boot.R
no_license
QinLab/MAST
R
false
false
19,362
r
## General procedure ## ####################### ## For set s in 1,...,Nset ## Let G(s) be genes in set s ## Get summary stats on G(s) ## q[G(s)], r[G(s)]: sum of discrete and continuous t statistics ## Q[G(s)], R[G(s)]: sum-covariance matrices ## => Modules will be compared by regulation patterns ## Alternate procedur...
library(shiny) shinyUI(pageWithSidebar( headerPanel("Best place to find a couple"), sidebarPanel( p('This advisor helps to find a countries where Female/Male population rate is best for your age and gender couple preferences.'), h3('I\'m looking for'), radioButtons(inputId="gender", labe...
/ui.R
no_license
lmgithub/ShinyProject
R
false
false
1,199
r
library(shiny) shinyUI(pageWithSidebar( headerPanel("Best place to find a couple"), sidebarPanel( p('This advisor helps to find a countries where Female/Male population rate is best for your age and gender couple preferences.'), h3('I\'m looking for'), radioButtons(inputId="gender", labe...
BCCG <- function (mu.link="identity", sigma.link="log", nu.link ="identity") { mstats <- checklink("mu.link", "BC Cole Green", substitute(mu.link), c("inverse", "log", "identity", "own")) dstats <- checklink("sigma.link", "BC Cole Green", substitute(sigma.link), # ...
/R/BCCG.R
no_license
Stan125/gamlss.dist
R
false
false
14,879
r
BCCG <- function (mu.link="identity", sigma.link="log", nu.link ="identity") { mstats <- checklink("mu.link", "BC Cole Green", substitute(mu.link), c("inverse", "log", "identity", "own")) dstats <- checklink("sigma.link", "BC Cole Green", substitute(sigma.link), # ...
#make sure workspace is clean rm(list = ls()) #load library #.libPaths("/data1/dduursma/R/x86_64-redhat-linux-gnu-library/") #install.packages("dismo") library(dismo) #get directories where data located work.dir<-"C:\\Daisy\\Current_Projects\\exotic_plants\\enso" out.dir<-paste(work.dir,"outputs\...
/Maxent_batch_run.R
no_license
daisyduursma/SDM_ENSO_Butterflies
R
false
false
6,850
r
#make sure workspace is clean rm(list = ls()) #load library #.libPaths("/data1/dduursma/R/x86_64-redhat-linux-gnu-library/") #install.packages("dismo") library(dismo) #get directories where data located work.dir<-"C:\\Daisy\\Current_Projects\\exotic_plants\\enso" out.dir<-paste(work.dir,"outputs\...
# Maximum number of samples imputed in parallel maxImputations <- 5 # Change this for the maximum number of imputations in queue maxImputationsInQueue <- 10 # Intialize server role as 'hub' serverRole <- "Hub" # Change this to your hub IP address for cron job hubAddress <- "172.31.47.91" # Change this to your user...
/misc_files/config.r
no_license
asiadmitchell/ImputationGeneris
R
false
false
2,329
r
# Maximum number of samples imputed in parallel maxImputations <- 5 # Change this for the maximum number of imputations in queue maxImputationsInQueue <- 10 # Intialize server role as 'hub' serverRole <- "Hub" # Change this to your hub IP address for cron job hubAddress <- "172.31.47.91" # Change this to your user...
#' Run a simulation function #' #' @param data a data.frame (or tibble, in future) #' @param fun a function #' @param fixed_parameters an environment or list #' @param ... additional parameters passed to `fun` #' @details `fun` must have signature (a1, a2, <...>, aN, fixed_params, ...) where #' #' 1) N is the ...
/R/run.r
no_license
ashander/runr
R
false
false
2,433
r
#' Run a simulation function #' #' @param data a data.frame (or tibble, in future) #' @param fun a function #' @param fixed_parameters an environment or list #' @param ... additional parameters passed to `fun` #' @details `fun` must have signature (a1, a2, <...>, aN, fixed_params, ...) where #' #' 1) N is the ...
library(readr) library(tidyverse) library(dummies) library(fastDummies) library(factoextra) library(skimr) library(corrplot) library(purrr) library(cluster) reviews <- read_csv("reviews.csv") listings <- read_csv("listings.csv") listings2 <- listings %>% select(-experiences_offered, -scrape_id, ...
/datacleaning_pca.R
no_license
Chengyu-Liang/BA-820-Project-Airbnb
R
false
false
3,722
r
library(readr) library(tidyverse) library(dummies) library(fastDummies) library(factoextra) library(skimr) library(corrplot) library(purrr) library(cluster) reviews <- read_csv("reviews.csv") listings <- read_csv("listings.csv") listings2 <- listings %>% select(-experiences_offered, -scrape_id, ...
#Preparacion del entorno de trabajo---- rm(list=ls()) carpetaRAS="/Users/germancarvajal/OneDrive - Universidad de Los Andes/UNIANDES - RAS - SDM" gitRAS="/Users/germancarvajal/OneDrive - Universidad de Los Andes/proBikePolicies" require(pacman) pacman::p_load(sf) pacman::p_load(tidyverse) #Lectura de la base de datos ...
/Seguridad/8. Ciclorutas.R
no_license
RAS-WB-Uniandes-Urban-Cycling/proBikePolicies
R
false
false
4,974
r
#Preparacion del entorno de trabajo---- rm(list=ls()) carpetaRAS="/Users/germancarvajal/OneDrive - Universidad de Los Andes/UNIANDES - RAS - SDM" gitRAS="/Users/germancarvajal/OneDrive - Universidad de Los Andes/proBikePolicies" require(pacman) pacman::p_load(sf) pacman::p_load(tidyverse) #Lectura de la base de datos ...
faculty = read.csv("export-researchers-20150806.csv") library(parallel) # Get names in correct form for input into getAuthorID. facultyNames = apply(faculty[, c("LASTNAME", "FIRSTNAME")], c(1,2), as.character) colnames(facultyNames) = NULL facultyNames = lapply(1:nrow(facultyNames), function(i, x) ...
/ScopusAuthorID/commandsFacultyAuthorID.R
no_license
dsidavis/ResearchProfiles
R
false
false
1,375
r
faculty = read.csv("export-researchers-20150806.csv") library(parallel) # Get names in correct form for input into getAuthorID. facultyNames = apply(faculty[, c("LASTNAME", "FIRSTNAME")], c(1,2), as.character) colnames(facultyNames) = NULL facultyNames = lapply(1:nrow(facultyNames), function(i, x) ...
library(birdring) ### Name: mercatorlat ### Title: gives the streching factor of the latitude to draw a mercator ### map ### Aliases: mercatorlat ### Keywords: misc ### ** Examples mercatorlat(41.6)
/data/genthat_extracted_code/birdring/examples/mercatorlat.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
208
r
library(birdring) ### Name: mercatorlat ### Title: gives the streching factor of the latitude to draw a mercator ### map ### Aliases: mercatorlat ### Keywords: misc ### ** Examples mercatorlat(41.6)
# TODO: Add comment # # Author: superhy ###############################################################################
/R_plot/fix1_sgd_linewithlda.R
no_license
superhy/prescription_gen
R
false
false
124
r
# TODO: Add comment # # Author: superhy ###############################################################################
# plumber.R #' Echo the parameter that was sent in #' @param msg The message to echo back. #' @get /echo function(msg=""){ list(msg = paste0("The message is: '", msg, "'")) } #' Plot out data from the iris dataset #' @param spec If provided, filter the data to only this species (e.g. 'setosa') #' @get /plot #' @pn...
/program_files/plumber.R
no_license
tykiww/plumber_use
R
false
false
658
r
# plumber.R #' Echo the parameter that was sent in #' @param msg The message to echo back. #' @get /echo function(msg=""){ list(msg = paste0("The message is: '", msg, "'")) } #' Plot out data from the iris dataset #' @param spec If provided, filter the data to only this species (e.g. 'setosa') #' @get /plot #' @pn...
## This part of assignment #2. I'm swimming in the deep end but willing to ## give it a shot. Be kind. ## This function creates special "matrix" ## object that can cache its inverse makeCacheMatrix <- function(x = matrix()) { ## Define function name m <- NULL ...
/cachematrix.R
no_license
Novice1/ProgrammingAssignment2
R
false
false
1,186
r
## This part of assignment #2. I'm swimming in the deep end but willing to ## give it a shot. Be kind. ## This function creates special "matrix" ## object that can cache its inverse makeCacheMatrix <- function(x = matrix()) { ## Define function name m <- NULL ...
\name{rbind.acs} \alias{rbind.acs} \alias{rbind} \title{Combine acs Objects by Rows } \description{ Take a pair of acs objects and combine by rows. } \usage{ \method{rbind}{acs}(e1, e2) } \arguments{ \item{e1, e2}{two acs-class objects} } \details{ When passed two acs-class objects, rbind wil...
/man/rbind.acs.Rd
no_license
eglenn/acs
R
false
false
914
rd
\name{rbind.acs} \alias{rbind.acs} \alias{rbind} \title{Combine acs Objects by Rows } \description{ Take a pair of acs objects and combine by rows. } \usage{ \method{rbind}{acs}(e1, e2) } \arguments{ \item{e1, e2}{two acs-class objects} } \details{ When passed two acs-class objects, rbind wil...
# TURF example in R # Replicating https://andrewpwheeler.com/2020/10/01/a-linear-programming-example-for-turf-analysis-in-python/ # Andy Wheeler library(CVXR) library(tidyverse) library(readxl) setwd('D:\\Dropbox\\Dropbox\\Documents\\BLOG\\Posted_Python\\TURF_Analysis\\Analysis') surv <- read.csv('demoTURF.csv', row....
/test-code/turf-working/old-attempts/turf_cvxr.R
no_license
ttrodrigz/onezero
R
false
false
2,088
r
# TURF example in R # Replicating https://andrewpwheeler.com/2020/10/01/a-linear-programming-example-for-turf-analysis-in-python/ # Andy Wheeler library(CVXR) library(tidyverse) library(readxl) setwd('D:\\Dropbox\\Dropbox\\Documents\\BLOG\\Posted_Python\\TURF_Analysis\\Analysis') surv <- read.csv('demoTURF.csv', row....
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{deleteAttr} \alias{deleteAttr} \title{Delete the attribute of an individual \code{deleteAttr} delete the attribute of an individual that exits the simulation.} \usage{ deleteAttr(attrList, ids) } \arguments{ \item{attrList}{list...
/man/deleteAttr.Rd
no_license
grlurton/ImpactSimul
R
false
true
798
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{deleteAttr} \alias{deleteAttr} \title{Delete the attribute of an individual \code{deleteAttr} delete the attribute of an individual that exits the simulation.} \usage{ deleteAttr(attrList, ids) } \arguments{ \item{attrList}{list...
\name{rpoispp} \alias{rpoispp} \title{Generate Poisson Point Pattern} \description{ Generate a random point pattern using the (homogeneous or inhomogeneous) Poisson process. Includes CSR (complete spatial randomness). } \usage{ rpoispp(lambda, lmax=NULL, win=owin(), \dots, nsim=1, drop=TRUE) } \arguments{ \ite...
/man/rpoispp.Rd
no_license
jmetz/spatstat
R
false
false
5,206
rd
\name{rpoispp} \alias{rpoispp} \title{Generate Poisson Point Pattern} \description{ Generate a random point pattern using the (homogeneous or inhomogeneous) Poisson process. Includes CSR (complete spatial randomness). } \usage{ rpoispp(lambda, lmax=NULL, win=owin(), \dots, nsim=1, drop=TRUE) } \arguments{ \ite...
####Stat 10 - Lab #1 ## Name: Callista Wu ## SID: 904886275 ## TA: Gabriel Ruiz ## Lab/Discussion Time: 1C/10AM ###################################################### ###Section 1 - R and RStudio Basics ##Setting your working directory #Set your working directory to the folder where the data you downloaded is saved....
/lab1.R
no_license
callistawu/stats
R
false
false
5,980
r
####Stat 10 - Lab #1 ## Name: Callista Wu ## SID: 904886275 ## TA: Gabriel Ruiz ## Lab/Discussion Time: 1C/10AM ###################################################### ###Section 1 - R and RStudio Basics ##Setting your working directory #Set your working directory to the folder where the data you downloaded is saved....
library(tidyverse) library(readxl) library(data.table) #Importing Activity_Label and Features Datasets features <- fread("./UCI HAR Dataset/features.txt", header = FALSE, stringsAsFactors = FALSE) activities <- fread("./UCI HAR Dataset/activity_labels.txt", header = FALSE) #Import Test Data Sets x_test <- fread("./UC...
/run_analysis.R
no_license
Vigil-Complex/Getting-and-Cleaning-Data-Week-4-Assignment
R
false
false
2,395
r
library(tidyverse) library(readxl) library(data.table) #Importing Activity_Label and Features Datasets features <- fread("./UCI HAR Dataset/features.txt", header = FALSE, stringsAsFactors = FALSE) activities <- fread("./UCI HAR Dataset/activity_labels.txt", header = FALSE) #Import Test Data Sets x_test <- fread("./UC...
# this function renames column names of aggregate df renameAggColNames <- function(df, aggBy, aggTarget, aggMeth) { cntInAggMeth <- 'count' %in% aggMeth aggMeth <- setdiff(aggMeth, 'count') colnames <- c(aggBy) for (meth in aggMeth) { for (targ in aggTarget) { colname <- paste(targ, meth, s...
/inst/ggraptR/functions/aggregate.R
no_license
cran/ggraptR
R
false
false
3,255
r
# this function renames column names of aggregate df renameAggColNames <- function(df, aggBy, aggTarget, aggMeth) { cntInAggMeth <- 'count' %in% aggMeth aggMeth <- setdiff(aggMeth, 'count') colnames <- c(aggBy) for (meth in aggMeth) { for (targ in aggTarget) { colname <- paste(targ, meth, s...
# Written by Karolis Uziela in 2014 library(tools) library(dplyr) my_plot_dense <- function(var1, var2, my_file, my_xlab, my_ylab, my_xlim=NULL, my_ylim=NULL, smooth=F, red_points=NULL, MY_CEX=2) { cor1 <- my_cor(var1, var2, "pearson") cor2 <- my_cor(var1, var2, "spearman") rmse <- my_rmse(var1, var2) ...
/my_plot_dense.R
no_license
uziela/general_scripts
R
false
false
2,363
r
# Written by Karolis Uziela in 2014 library(tools) library(dplyr) my_plot_dense <- function(var1, var2, my_file, my_xlab, my_ylab, my_xlim=NULL, my_ylim=NULL, smooth=F, red_points=NULL, MY_CEX=2) { cor1 <- my_cor(var1, var2, "pearson") cor2 <- my_cor(var1, var2, "spearman") rmse <- my_rmse(var1, var2) ...
#' @title Build configuration file #' #' @description Compile metadata from all MRR and interogation sites from PTAGIS #' #' @author Kevin See #' #' @param node_assign should nodes by assigned by \code{array}, \code{site} or \code{antenna}? Default is \code{array}. #' #' @source \url{http://www.ptagis.org} #' #' @impor...
/R/buildConfig.R
permissive
KevinSee/PITcleanr
R
false
false
3,690
r
#' @title Build configuration file #' #' @description Compile metadata from all MRR and interogation sites from PTAGIS #' #' @author Kevin See #' #' @param node_assign should nodes by assigned by \code{array}, \code{site} or \code{antenna}? Default is \code{array}. #' #' @source \url{http://www.ptagis.org} #' #' @impor...
library(data.table) # Plot3 data <- fread("household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?") head(data) ## Format date to Type Date data$Date <- as.Date(data$Date, "%d/%m/%Y") ## Filter data set from Feb. 1, 2007 to Feb. 2, 2007 data <- subset(data,Date >= as.Date("2007-2-1") & Date <= as.D...
/plot3.R
no_license
nitin-barthwal/ExData_Plotting1
R
false
false
965
r
library(data.table) # Plot3 data <- fread("household_power_consumption.txt", header=TRUE, sep=";", na.strings = "?") head(data) ## Format date to Type Date data$Date <- as.Date(data$Date, "%d/%m/%Y") ## Filter data set from Feb. 1, 2007 to Feb. 2, 2007 data <- subset(data,Date >= as.Date("2007-2-1") & Date <= as.D...
library(ggplot2) library(ggthemes) library(magrittr) library(gridExtra) library(magrittr) german_results = read.csv("/Users/jpgard/Documents/github/fair-robust/results.csv") german_results_dp_S1z0.8 = read.csv("/Users/jpgard/Documents/github/fair-robust/results/german-sexbs64lr0.01e1000l1.0dpTrueclip1.0z0.8-sex-result...
/analysis/results_plots.R
no_license
jpgard/dp-fairness-experiments
R
false
false
10,028
r
library(ggplot2) library(ggthemes) library(magrittr) library(gridExtra) library(magrittr) german_results = read.csv("/Users/jpgard/Documents/github/fair-robust/results.csv") german_results_dp_S1z0.8 = read.csv("/Users/jpgard/Documents/github/fair-robust/results/german-sexbs64lr0.01e1000l1.0dpTrueclip1.0z0.8-sex-result...
panel.hist <- function(x, ...) { usr <- par("usr"); on.exit(par(usr)) par(usr = c(usr[1:2], 0, 1.5) ) h <- hist(x, plot = FALSE) breaks <- h$breaks; nB <- length(breaks) y <- h$counts; y <- y/max(y) rect(breaks[-nB], 0, breaks[-1], y, col = "cyan", ...) } panel.cor <- function(x, y, digits=2, c...
/old/NZ_Dairy_v1.2/R/pairs.R
no_license
ivanliu1989/Time_Series_Forecasting_STL
R
false
false
1,036
r
panel.hist <- function(x, ...) { usr <- par("usr"); on.exit(par(usr)) par(usr = c(usr[1:2], 0, 1.5) ) h <- hist(x, plot = FALSE) breaks <- h$breaks; nB <- length(breaks) y <- h$counts; y <- y/max(y) rect(breaks[-nB], 0, breaks[-1], y, col = "cyan", ...) } panel.cor <- function(x, y, digits=2, c...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cox-Regcox.R \name{regcox} \alias{regcox} \title{Learn a Cox model with regularization} \usage{ regcox(x, y, t, regtype, nfolds, standardize = TRUE, stdbeta = TRUE, lambda1 = 0, lambda2 = 0, alpha = 0.5, lambda = 0, tol = 0.001, itermax, ...
/RegCox/man/regcox.Rd
no_license
aastha3/RegCox
R
false
true
1,563
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/cox-Regcox.R \name{regcox} \alias{regcox} \title{Learn a Cox model with regularization} \usage{ regcox(x, y, t, regtype, nfolds, standardize = TRUE, stdbeta = TRUE, lambda1 = 0, lambda2 = 0, alpha = 0.5, lambda = 0, tol = 0.001, itermax, ...
install.packages("twitteR") install.packages("ROAuth") library("twitteR") library("ROAuth") download.file(url="http://curl.haxx.se/ca/cacert.pem",destfile="cacert.pem") cred <- OAuthFactory$new(consumerKey='dTUZl4mwdzwj5qQOd6Xdh1pUU',consumerSecret='dHPSO3shbNvRaUMoCfSkIpNBJK00eQFCheT0fS1Q6I8zeYukfk', ...
/Twitter_Webscraper.R
no_license
monplot/TwitterScrapper-
R
false
false
3,348
r
install.packages("twitteR") install.packages("ROAuth") library("twitteR") library("ROAuth") download.file(url="http://curl.haxx.se/ca/cacert.pem",destfile="cacert.pem") cred <- OAuthFactory$new(consumerKey='dTUZl4mwdzwj5qQOd6Xdh1pUU',consumerSecret='dHPSO3shbNvRaUMoCfSkIpNBJK00eQFCheT0fS1Q6I8zeYukfk', ...
#' Check chromosomes are correctly formatted #' #' `.chr_filter` will check whether the object `x` is matches the #' format of chr_format. If not, will convert to the chromosome format. #' #' @param x object of [GRangesList-class][GenomicRanges::GRangesList-class] or #' [RangedSummarizedExperiment-class][SummarizedEx...
/R/utils.R
no_license
dzhang32/dasper
R
false
false
13,021
r
#' Check chromosomes are correctly formatted #' #' `.chr_filter` will check whether the object `x` is matches the #' format of chr_format. If not, will convert to the chromosome format. #' #' @param x object of [GRangesList-class][GenomicRanges::GRangesList-class] or #' [RangedSummarizedExperiment-class][SummarizedEx...
install.packages("tidyverse") install.packages("blogdown") install.packages("opendatatoronto") library(blogdown) blogdown::install_hugo() update_hugo() hugo_version() file.create("netlify.toml") blogdown::new_site( dir = "b", install_hugo = TRUE, format = "toml", ...
/Setup.R
permissive
lingziqi/Marriage_Licenses_Website
R
false
false
606
r
install.packages("tidyverse") install.packages("blogdown") install.packages("opendatatoronto") library(blogdown) blogdown::install_hugo() update_hugo() hugo_version() file.create("netlify.toml") blogdown::new_site( dir = "b", install_hugo = TRUE, format = "toml", ...
#gaging predictor importance for spatial forecast of fungal functional groups. #clear environment, source paths, packages and functions. rm(list=ls()) source('paths.r') #set output path.---- output.path <- NEON_phylo.group_variable_importance_data.path #load forecast.---- #forecast. dat <- readRDS(NEON_site_fcast_all...
/ITS/analysis/spatial_forecast_analysis/ddirch_cast/4._spatial_forecast_phylo.groups_predictor_importance.r
permissive
saracg-forks/NEFI_microbe
R
false
false
4,363
r
#gaging predictor importance for spatial forecast of fungal functional groups. #clear environment, source paths, packages and functions. rm(list=ls()) source('paths.r') #set output path.---- output.path <- NEON_phylo.group_variable_importance_data.path #load forecast.---- #forecast. dat <- readRDS(NEON_site_fcast_all...
library(sdcMicro) ### Name: groupAndRename ### Title: Join levels of a variables in an object of class ### 'sdcMicroObj-class' or 'factor' or 'data.frame' ### Aliases: groupAndRename ### Keywords: methods ### ** Examples ## for objects of class sdcMicro: data(testdata2) testdata2$urbrur <- as.factor(testdata2$urb...
/data/genthat_extracted_code/sdcMicro/examples/groupAndRename.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
567
r
library(sdcMicro) ### Name: groupAndRename ### Title: Join levels of a variables in an object of class ### 'sdcMicroObj-class' or 'factor' or 'data.frame' ### Aliases: groupAndRename ### Keywords: methods ### ** Examples ## for objects of class sdcMicro: data(testdata2) testdata2$urbrur <- as.factor(testdata2$urb...
library(ggplot2) NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") vehi<- grepl("vehicle", SCC$SCC.Level.Two, ignore.case=TRUE) vehiSCC <- SCC[vehi,]$SCC vehiNEI <- NEI[NEI$SCC %in% vehiSCC,] baltimoreVehiclesNEI <- vehiNEI[vehiNEI$fips==24510,] p5 <- ggplot(baltimoreVeh...
/Plot5.R
no_license
elaine05/EDA-J.Hopkins-w2
R
false
false
756
r
library(ggplot2) NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("Source_Classification_Code.rds") vehi<- grepl("vehicle", SCC$SCC.Level.Two, ignore.case=TRUE) vehiSCC <- SCC[vehi,]$SCC vehiNEI <- NEI[NEI$SCC %in% vehiSCC,] baltimoreVehiclesNEI <- vehiNEI[vehiNEI$fips==24510,] p5 <- ggplot(baltimoreVeh...
require(tidyverse) require(scatterplot3d) require(glmnet) require(broom) require(car) dat <- read_csv("Adops & Data Scientist Sample Data - Q2 Regression.csv", col_names = c("A", "B", "C")) # Descriptive statistics and assumption check summary(dat) ## Correlation cor(dat$A, dat$B) # independent variables seem to be ...
/Regression/Adoops&Data_Scientist_Q2_Regression_Jaejin_Kim.R
no_license
Jaejin-Kim/moloco_coding_test
R
false
false
4,141
r
require(tidyverse) require(scatterplot3d) require(glmnet) require(broom) require(car) dat <- read_csv("Adops & Data Scientist Sample Data - Q2 Regression.csv", col_names = c("A", "B", "C")) # Descriptive statistics and assumption check summary(dat) ## Correlation cor(dat$A, dat$B) # independent variables seem to be ...
#' Download shape files of Brazil's Intermediate Geographic Areas as sf objects. #' #' The intermediate Geographic Areas are part of the geographic division of Brazil created in 2017 by IBGE to #' replace the "Meso Regions" division. Data at scale 1:250,000, using Geodetic reference system "SIRGAS2000" and CRS(4674) #'...
/r-package/R/read_intermediate_region.R
no_license
fcotelo/geobr
R
false
false
2,849
r
#' Download shape files of Brazil's Intermediate Geographic Areas as sf objects. #' #' The intermediate Geographic Areas are part of the geographic division of Brazil created in 2017 by IBGE to #' replace the "Meso Regions" division. Data at scale 1:250,000, using Geodetic reference system "SIRGAS2000" and CRS(4674) #'...
library(RJSONIO) library(RMongo) mongo <- mongoDbConnect(dbName="infoworks-new", host="localhost",port='27017') dbAuthenticate(mongo, 'infoworks', 'IN11**rk') iwr = "Infoworks Datawarehouse" sources = dbGetQueryForKeys(mongo, "sources", "{}", "{'name':1, 'tables':1}", 0, 1000) assign("iwr.sources", sources) for (i in...
/iw_rmongo1.R
no_license
krdeepakio/rbigdata
R
false
false
1,583
r
library(RJSONIO) library(RMongo) mongo <- mongoDbConnect(dbName="infoworks-new", host="localhost",port='27017') dbAuthenticate(mongo, 'infoworks', 'IN11**rk') iwr = "Infoworks Datawarehouse" sources = dbGetQueryForKeys(mongo, "sources", "{}", "{'name':1, 'tables':1}", 0, 1000) assign("iwr.sources", sources) for (i in...
#' Allow users to query Open FDA Drug Recall Information #' #' @description Allow users to query for a given number of result objects that represent #' a set of Drug Recall Information. The example function returns a tidy dataframe #' with recall information. #' @export #' @import httr #' @import jsonlite #' @import ti...
/copy_annna/annna.Rcheck/00_pkg_src/annna/R/queryRecalls.R
no_license
annabrezh/stats290
R
false
false
3,047
r
#' Allow users to query Open FDA Drug Recall Information #' #' @description Allow users to query for a given number of result objects that represent #' a set of Drug Recall Information. The example function returns a tidy dataframe #' with recall information. #' @export #' @import httr #' @import jsonlite #' @import ti...
hpTerm1 <- read.csv(file.choose(), header= TRUE) hpTermPron <- read.csv(file.choose(), header= TRUE) View(hpTerm1) library(ggplot2) dfhpcolor<-data.frame(hpTermColor$RonRelFreq,hpTermColor$Term) ggplot(dfhpcolor, aes(y=dfhpcolor$hpTermColor.Term,x=dfhpcolor$hpTermColor.RonRelFreq))+geom_point(size=3) ggplot(iris,...
/hpfinal.R
permissive
Rebeccasey24/Linguistics_Corpus_Analysis
R
false
false
3,258
r
hpTerm1 <- read.csv(file.choose(), header= TRUE) hpTermPron <- read.csv(file.choose(), header= TRUE) View(hpTerm1) library(ggplot2) dfhpcolor<-data.frame(hpTermColor$RonRelFreq,hpTermColor$Term) ggplot(dfhpcolor, aes(y=dfhpcolor$hpTermColor.Term,x=dfhpcolor$hpTermColor.RonRelFreq))+geom_point(size=3) ggplot(iris,...
testlist <- list(A = structure(c(2.17107980817984e+205, 9.53818224771148e+295 ), .Dim = 1:2), B = structure(c(2.19477802979261e+294, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(multivariance:::match_rows,testlist) str(resu...
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613122417-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
323
r
testlist <- list(A = structure(c(2.17107980817984e+205, 9.53818224771148e+295 ), .Dim = 1:2), B = structure(c(2.19477802979261e+294, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(5L, 7L))) result <- do.call(multivariance:::match_rows,testlist) str(resu...
collapse_table <- function(otu_taxa,data_mat,metadata, taxon=NULL,method='rescaled', kegg=FALSE,cap=TRUE,roof=10^6, filtermin=FALSE,mc=0,ps=.01, filtermax=FALSE,pw=.9,pa=.9){ if (is.null(dim(data_mat))){ ...
/Children/stm_functions.R
no_license
EESI/exploring_thematic_structure
R
false
false
22,819
r
collapse_table <- function(otu_taxa,data_mat,metadata, taxon=NULL,method='rescaled', kegg=FALSE,cap=TRUE,roof=10^6, filtermin=FALSE,mc=0,ps=.01, filtermax=FALSE,pw=.9,pa=.9){ if (is.null(dim(data_mat))){ ...
library(DT) library(shiny) library(ggplot2) library(leaflet) library(rworldmap) library(dplyr) library(sf) library(mapview) trying.again.wfto <- read.delim("trying again wfto copy.txt", comment.char="#") wfto <- trying.again.wfto CountryName <- wfto$CountryName shinyServer(function(i...
/mapping/server.R
no_license
jdanielslane/wfto2018
R
false
false
4,860
r
library(DT) library(shiny) library(ggplot2) library(leaflet) library(rworldmap) library(dplyr) library(sf) library(mapview) trying.again.wfto <- read.delim("trying again wfto copy.txt", comment.char="#") wfto <- trying.again.wfto CountryName <- wfto$CountryName shinyServer(function(i...