content
large_stringlengths
0
6.46M
path
large_stringlengths
3
331
license_type
large_stringclasses
2 values
repo_name
large_stringlengths
5
125
language
large_stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
4
6.46M
extension
large_stringclasses
75 values
text
stringlengths
0
6.46M
# install.packages('keras') # install.packages('purrr') # install.packages('functional') library(MASS) library(caret) library(fGarch) library(fitdistrplus) library(pracma) library(BBmisc) library(functional) library(dplyr) library(keras) library(lubridate) library(tensorflow) Sys.sleep(5) install_tensorflow(restart_se...
/concept_drift_code/gradual_lp10k_1000_late.R
no_license
paai-lab/Online-Anomaly-Detection-Extension-2021
R
false
false
14,772
r
# install.packages('keras') # install.packages('purrr') # install.packages('functional') library(MASS) library(caret) library(fGarch) library(fitdistrplus) library(pracma) library(BBmisc) library(functional) library(dplyr) library(keras) library(lubridate) library(tensorflow) Sys.sleep(5) install_tensorflow(restart_se...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/simulator.R \name{add_resource} \alias{add_resource} \title{Add a resource to the simulation object} \usage{ add_resource(sim_obj, name, capacity, queue_size = Inf) } \arguments{ \item{sim_obj}{the simulation object} \item{name}{the ...
/man/add_resource.Rd
no_license
aschniertshauer/simmer
R
false
false
499
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/simulator.R \name{add_resource} \alias{add_resource} \title{Add a resource to the simulation object} \usage{ add_resource(sim_obj, name, capacity, queue_size = Inf) } \arguments{ \item{sim_obj}{the simulation object} \item{name}{the ...
structure(list(url = "gc/s/GCSTXXXXXX", status_code = 404L, headers = structure(list( server = "Apache-Coyote/1.1", `cache-control` = "no-cache, no-store, max-age=0, must-revalidate", `strict-transport-security` = "max-age=0", date = "Sun, 19 May 2019 16:55:49 GMT", `x-application-context` = "application"...
/tests/testthat/mocks/gc/s/GCSTXXXXXX.R
permissive
tzup/gwasrapidd
R
false
false
1,582
r
structure(list(url = "gc/s/GCSTXXXXXX", status_code = 404L, headers = structure(list( server = "Apache-Coyote/1.1", `cache-control` = "no-cache, no-store, max-age=0, must-revalidate", `strict-transport-security` = "max-age=0", date = "Sun, 19 May 2019 16:55:49 GMT", `x-application-context` = "application"...
x = 1:20 y = 3 + 2*x + 4*rnorm(20) data = data.frame(x=x, y=y) library(ggplot2) qplot(x=x, y=y, data=data) fit = lm(y~x, data=data) summary(fit) plot(data) abline(fit)
/R/Ex3 Regression.R
no_license
Seung-hyeon/KAIST_FMBA_Programming_2018
R
false
false
172
r
x = 1:20 y = 3 + 2*x + 4*rnorm(20) data = data.frame(x=x, y=y) library(ggplot2) qplot(x=x, y=y, data=data) fit = lm(y~x, data=data) summary(fit) plot(data) abline(fit)
context('Manipulating string set representations.') test_that('setParse returns expected output', { expect_equal(setParse(c('{1, 2, 3}', '{a, b}')), data.frame(v1=c('1', 'a'), v2=c('2', 'b'), v3=c('3', NA), stringsAsFactors=FALSE)) }) test...
/acadcites/tests/testthat/test_set_functions.R
permissive
mshron/academia-citations
R
false
false
1,646
r
context('Manipulating string set representations.') test_that('setParse returns expected output', { expect_equal(setParse(c('{1, 2, 3}', '{a, b}')), data.frame(v1=c('1', 'a'), v2=c('2', 'b'), v3=c('3', NA), stringsAsFactors=FALSE)) }) test...
#instalar e habilitar o pacote lavaan #install.packages("lavaan") library(lavaan) #carregar o banco de dados banco<-readRDS (url("https://github.com/GustavHM/Capitulo-18_ESEM/raw/main/banco_CAASB_30.rds")) ################################## AFE ################################## #criar o modelo da AFE modelo_AFE <- ' ...
/script_ESEM.R
permissive
GustavHM/Capitulo-18_ESEM
R
false
false
2,101
r
#instalar e habilitar o pacote lavaan #install.packages("lavaan") library(lavaan) #carregar o banco de dados banco<-readRDS (url("https://github.com/GustavHM/Capitulo-18_ESEM/raw/main/banco_CAASB_30.rds")) ################################## AFE ################################## #criar o modelo da AFE modelo_AFE <- ' ...
# This code was written by Gianmarc Grazioli, Ph.D. # 30APR2019 plotTrajectories<-function(trajDF, fresh=TRUE){ xmin=min(trajDF$x) xmax=max(trajDF$x) vmin=min(trajDF$vel) vmax=max(trajDF$vel) p1color<-rgb(.9,.3,0) p2color<-rgb(0,.3,.9) if(trajDF[trajDF$trajID==1,][1,"stateFinal"]=="P1"){ myColor<-p1...
/plotTrajectories.R
no_license
ggrazioli/svmPhaseSpaceAnalysis
R
false
false
707
r
# This code was written by Gianmarc Grazioli, Ph.D. # 30APR2019 plotTrajectories<-function(trajDF, fresh=TRUE){ xmin=min(trajDF$x) xmax=max(trajDF$x) vmin=min(trajDF$vel) vmax=max(trajDF$vel) p1color<-rgb(.9,.3,0) p2color<-rgb(0,.3,.9) if(trajDF[trajDF$trajID==1,][1,"stateFinal"]=="P1"){ myColor<-p1...
#' @rdname dq #' @export pq <- function(q, mu, sigma, fd, sd) { fd <- tolower(fd) sd <- tolower(sd) if (any(q <= 0) | any(q >= 1)) stop(paste("q must be between 0 and 1", "\n", "")) # arcsinh-XX---- if (fd == "arcsinh") { if (sd == "arcsinh") { prt <- function(q, mu, sigma...
/R/qrCdf.R
no_license
Bhanditz/cdfquantreg
R
false
false
9,034
r
#' @rdname dq #' @export pq <- function(q, mu, sigma, fd, sd) { fd <- tolower(fd) sd <- tolower(sd) if (any(q <= 0) | any(q >= 1)) stop(paste("q must be between 0 and 1", "\n", "")) # arcsinh-XX---- if (fd == "arcsinh") { if (sd == "arcsinh") { prt <- function(q, mu, sigma...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/isStrictlyNegativeIntegerOrNaOrNanVector.R \name{isStrictlyNegativeIntegerOrNaOrNanVector} \alias{isStrictlyNegativeIntegerOrNaOrNanVector} \title{Wrapper for the checkarg function, using specific parameter settings.} \usage{ isStrictly...
/man/isStrictlyNegativeIntegerOrNaOrNanVector.Rd
no_license
cran/checkarg
R
false
true
2,598
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/isStrictlyNegativeIntegerOrNaOrNanVector.R \name{isStrictlyNegativeIntegerOrNaOrNanVector} \alias{isStrictlyNegativeIntegerOrNaOrNanVector} \title{Wrapper for the checkarg function, using specific parameter settings.} \usage{ isStrictly...
#### IMPORT THE PRETTY DATA PLAN #### #### IMPORT AND CLEAN DATA #### # Without DB ImportDrakePlan <- drake_plan( # Meta, comm, trait and flux Data_CH = ImportClean_China(), Data_PE = ImportClean_Peru(), Data_SV = ImportClean_Svalbard(), Data_NO = ImportClean_Norway(), Data_CO = ImportClean_Colorado(),...
/R/ImportPrettyDataPlan.R
no_license
backhaus/PFTC_Data
R
false
false
670
r
#### IMPORT THE PRETTY DATA PLAN #### #### IMPORT AND CLEAN DATA #### # Without DB ImportDrakePlan <- drake_plan( # Meta, comm, trait and flux Data_CH = ImportClean_China(), Data_PE = ImportClean_Peru(), Data_SV = ImportClean_Svalbard(), Data_NO = ImportClean_Norway(), Data_CO = ImportClean_Colorado(),...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/snrspecs.R \name{snrspecs} \alias{snrspecs} \title{Spectrograms with background noise margins} \source{ \url{https://en.wikipedia.org/wiki/Signal-to-noise_ratio} } \usage{ snrspecs(X, wl = 512, flim = c(0, 22), wn = "hanning", ovlp = 70, inn...
/man/snrspecs.Rd
no_license
fburkitt/warbleR
R
false
true
6,487
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/snrspecs.R \name{snrspecs} \alias{snrspecs} \title{Spectrograms with background noise margins} \source{ \url{https://en.wikipedia.org/wiki/Signal-to-noise_ratio} } \usage{ snrspecs(X, wl = 512, flim = c(0, 22), wn = "hanning", ovlp = 70, inn...
# # Exercise: pivotting data # # Input data summary # # MS data were collected on 10 samples. # These samples were measured on two different # MS instruments with 3 replicates each. # Each MS run quantified 100 different analytes. # # Summary: # 10 samples # 2 MS instruments # 3 replicate measurements # 100 measured...
/exercises/tidy_data_dplyr/02_pivot_exercise_answers.R
no_license
ZenBrayn/asms-2021-r-shortcourse
R
false
false
1,942
r
# # Exercise: pivotting data # # Input data summary # # MS data were collected on 10 samples. # These samples were measured on two different # MS instruments with 3 replicates each. # Each MS run quantified 100 different analytes. # # Summary: # 10 samples # 2 MS instruments # 3 replicate measurements # 100 measured...
### Funktion zur Anonymisierung/Imputation binaerer Variablen ################################################################################ ### fehlende Werte in den Variablen werden zunaechst ### durch Single Imputation ersetzt. ################################################################################ ###...
/R/hmi_imp_binary_2016-08-21ohnecond.R
no_license
matthiasspeidel/hmi
R
false
false
11,768
r
### Funktion zur Anonymisierung/Imputation binaerer Variablen ################################################################################ ### fehlende Werte in den Variablen werden zunaechst ### durch Single Imputation ersetzt. ################################################################################ ###...
# EBIO 5420: Computational Biology # Prof: Samuel Flaxman # Student: Lukas Buecherl # Lab 4 ############################################################################### # Part 1: Practice writing "for loops" # Lab step #1: for loop that prints hi 10 times for(index in rep("hi",10)){ print(index) } # Lab step...
/Labs/Lab04/Buecherl_Lab4.R
no_license
LukasBuecherl/CompBioLabsAndHW
R
false
false
5,236
r
# EBIO 5420: Computational Biology # Prof: Samuel Flaxman # Student: Lukas Buecherl # Lab 4 ############################################################################### # Part 1: Practice writing "for loops" # Lab step #1: for loop that prints hi 10 times for(index in rep("hi",10)){ print(index) } # Lab step...
# First script in RStudio. Created on January 4 2019. # Author - Tejas Aditya 5+5 7+1
/FirstScript.R
no_license
tejasaditya/R
R
false
false
88
r
# First script in RStudio. Created on January 4 2019. # Author - Tejas Aditya 5+5 7+1
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ui_configure_position.R \name{ui_configure_position} \alias{ui_configure_position} \title{User Interface for Configuring Positions} \usage{ ui_configure_position(input, Position) } \arguments{ \item{input}{The input object from the shiny sess...
/man/ui_configure_position.Rd
permissive
nutterb/ldsmls
R
false
true
405
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ui_configure_position.R \name{ui_configure_position} \alias{ui_configure_position} \title{User Interface for Configuring Positions} \usage{ ui_configure_position(input, Position) } \arguments{ \item{input}{The input object from the shiny sess...
#dyn.load("../Release/rFEM.so") CPP_smooth.FEM.basis<-function(locations, observations, basisobj, lambda, covariates = NULL, BC = NULL, GCV) { # SMOOTH.FEM.FD Compute a solution for a Spatial Spline problem # # Arguments: # FELSPLOBJ a FELspline object. # LAMBDA a scalar smoothing parameter. # DATA...
/R/SSR_CPP.R
no_license
laurasangalli/rFEM
R
false
false
10,719
r
#dyn.load("../Release/rFEM.so") CPP_smooth.FEM.basis<-function(locations, observations, basisobj, lambda, covariates = NULL, BC = NULL, GCV) { # SMOOTH.FEM.FD Compute a solution for a Spatial Spline problem # # Arguments: # FELSPLOBJ a FELspline object. # LAMBDA a scalar smoothing parameter. # DATA...
#---------------------------- # q1 #---------------------------- require(jsonlite) q1.url = "https://api.github.com/users/jtleek/repos" q1.data <- fromJSON(q1.url) q1 <- q1.data[q1.data$name == "datasharing","created_at"] #---------------------------- # q2 and q3 #---------------------------- require(sqldf) q2.url =...
/CleaningData/Week2/wk2.R
no_license
RobertCPhillips/CourseraJohnHopkinsDataScience
R
false
false
1,300
r
#---------------------------- # q1 #---------------------------- require(jsonlite) q1.url = "https://api.github.com/users/jtleek/repos" q1.data <- fromJSON(q1.url) q1 <- q1.data[q1.data$name == "datasharing","created_at"] #---------------------------- # q2 and q3 #---------------------------- require(sqldf) q2.url =...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sql.R \name{sql} \alias{sql} \alias{is.sql} \alias{as.sql} \title{SQL escaping.} \usage{ sql(...) is.sql(x) as.sql(x, con) } \arguments{ \item{...}{Character vectors that will be combined into a single SQL expression.} \item{x}{Object to c...
/man/sql.Rd
permissive
edgararuiz/dbplyr
R
false
true
672
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sql.R \name{sql} \alias{sql} \alias{is.sql} \alias{as.sql} \title{SQL escaping.} \usage{ sql(...) is.sql(x) as.sql(x, con) } \arguments{ \item{...}{Character vectors that will be combined into a single SQL expression.} \item{x}{Object to c...
install.packages("class") library("class") install.packages("gmodels") library("gmodels") #Data Accumulation set.seed(121) data <- read.csv(file.choose()) View(data) table(data$Type) str(data) data$Type <- as.factor(data$Type) str(data) #Normalized Value function normalize <- function(x){ return...
/Assignment_Glass.R
no_license
AmartyaS/Glass_Dataset---K-Nearest-Neighbours-R-
R
false
false
896
r
install.packages("class") library("class") install.packages("gmodels") library("gmodels") #Data Accumulation set.seed(121) data <- read.csv(file.choose()) View(data) table(data$Type) str(data) data$Type <- as.factor(data$Type) str(data) #Normalized Value function normalize <- function(x){ return...
#' Update packages #' #' This will check to see if all required packages are installed. #' #' @param pkg A character string for the package being checked #' @param ... Extra arguments to pass to [utils::install.packages()] #' @return Nothing is returned but a message is printed to the #' console about which packages (...
/R/pkg_check.R
permissive
DavisVaughan/recipes
R
false
false
1,450
r
#' Update packages #' #' This will check to see if all required packages are installed. #' #' @param pkg A character string for the package being checked #' @param ... Extra arguments to pass to [utils::install.packages()] #' @return Nothing is returned but a message is printed to the #' console about which packages (...
\name{tsdata} \alias{tsdata} \docType{data} \title{ %% ~~ data name/kind ... ~~ sample data for R package TreatmentSelection } \description{ Simulated data set consisting of two continuous markers, two discrete markers, treatment, and event status. } \usage{data(tsdata)} \format{ A data frame with 1000 simulated...
/man/tsdata.Rd
no_license
mdbrown/TreatmentSelection
R
false
false
2,229
rd
\name{tsdata} \alias{tsdata} \docType{data} \title{ %% ~~ data name/kind ... ~~ sample data for R package TreatmentSelection } \description{ Simulated data set consisting of two continuous markers, two discrete markers, treatment, and event status. } \usage{data(tsdata)} \format{ A data frame with 1000 simulated...
###################################################### library(ggplot2) data("Cars93") table1<-table(Cars93$airbags) mychitest<-chisq.test(table1) car.data <- data.frame(Cars93$AirBags, Cars93$Type) car.data = table(Cars93$AirBags, Cars93$Type) chisq.test(car.data) #############################################...
/Chi_Square_Test.R
no_license
Kashishjain906/Practice_R
R
false
false
692
r
###################################################### library(ggplot2) data("Cars93") table1<-table(Cars93$airbags) mychitest<-chisq.test(table1) car.data <- data.frame(Cars93$AirBags, Cars93$Type) car.data = table(Cars93$AirBags, Cars93$Type) chisq.test(car.data) #############################################...
#-----------------------------------------------------------# # Experiment log consolidation script for David Huber's lab # # Kevin Potter # # Updated 02/25/2016 # #-----------------------------------------------------------# # Note th...
/2016/Flanker_task_2016/LogExtract.R
no_license
rettopnivek/Experiments
R
false
false
2,078
r
#-----------------------------------------------------------# # Experiment log consolidation script for David Huber's lab # # Kevin Potter # # Updated 02/25/2016 # #-----------------------------------------------------------# # Note th...
#Plot 3 for Energy Submetering gap <- read.table("household_power_consumption.txt", skip = 1, sep = ";") names(gap) <- c("Date", "Time", "Global_active_power", "Global_reactive_power", "Voltage", "Global_intensity", "Sub_metering_1", "Sub_metering_2", "Sub_metering_3") subgap <- subset...
/plot3.R
no_license
lespinoza182/ExData_Plotting1
R
false
false
1,212
r
#Plot 3 for Energy Submetering gap <- read.table("household_power_consumption.txt", skip = 1, sep = ";") names(gap) <- c("Date", "Time", "Global_active_power", "Global_reactive_power", "Voltage", "Global_intensity", "Sub_metering_1", "Sub_metering_2", "Sub_metering_3") subgap <- subset...
library(echarts4r) ### Name: e_sunburst ### Title: Sunburst ### Aliases: e_sunburst e_sunburst_ ### ** Examples df <- data.frame( parent = c("earth", "earth", "earth", "mars", "mars"), child = c("forest", "ocean", "iceberg", "elon", "curiosity"), value = ceiling(rnorm(5, 10, 2)) ) df %>% e_charts() %>% ...
/data/genthat_extracted_code/echarts4r/examples/e_sunburst.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
386
r
library(echarts4r) ### Name: e_sunburst ### Title: Sunburst ### Aliases: e_sunburst e_sunburst_ ### ** Examples df <- data.frame( parent = c("earth", "earth", "earth", "mars", "mars"), child = c("forest", "ocean", "iceberg", "elon", "curiosity"), value = ceiling(rnorm(5, 10, 2)) ) df %>% e_charts() %>% ...
tar_test("tar_destroy('all')", { pipeline <- pipeline_init(list(target_init("x", quote(0)))) local_init(pipeline)$run() expect_true(file.exists("_targets")) tar_destroy(destroy = "all") expect_false(file.exists("_targets")) }) tar_test("tar_destroy('meta')", { pipeline <- pipeline_init(list(target_init("x"...
/tests/testthat/test-tar_destroy.R
permissive
billdenney/targets
R
false
false
3,317
r
tar_test("tar_destroy('all')", { pipeline <- pipeline_init(list(target_init("x", quote(0)))) local_init(pipeline)$run() expect_true(file.exists("_targets")) tar_destroy(destroy = "all") expect_false(file.exists("_targets")) }) tar_test("tar_destroy('meta')", { pipeline <- pipeline_init(list(target_init("x"...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sw_reg.R \name{predict_sw_reg} \alias{predict_sw_reg} \title{Compute the prediction of a model built with \code{\link{sw_reg}}} \usage{ predict_sw_reg(obj, newdata) } \arguments{ \item{obj}{A list output by \code{\link{sw_reg}}} \item{newdat...
/man/predict_sw_reg.Rd
no_license
YohannLeFaou/sword
R
false
true
2,682
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sw_reg.R \name{predict_sw_reg} \alias{predict_sw_reg} \title{Compute the prediction of a model built with \code{\link{sw_reg}}} \usage{ predict_sw_reg(obj, newdata) } \arguments{ \item{obj}{A list output by \code{\link{sw_reg}}} \item{newdat...
library(glmnet) mydata = read.table("./TrainingSet/AvgRank/cervix.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.2,family="gaussian",standardize=TRUE) sink('./Model/EN/AvgRank/cervix/cervix_033.txt',append=TRUE...
/Model/EN/AvgRank/cervix/cervix_033.R
no_license
leon1003/QSMART
R
false
false
351
r
library(glmnet) mydata = read.table("./TrainingSet/AvgRank/cervix.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.2,family="gaussian",standardize=TRUE) sink('./Model/EN/AvgRank/cervix/cervix_033.txt',append=TRUE...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/C5.R \docType{data} \name{Cookies} \alias{Cookies} \title{Chapter 5 Cookies Data} \format{ A data frame with 135 rows and 4 columns } \usage{ Cookies } \description{ Two students wanted to determine if people could taste the difference in cho...
/man/Cookies.Rd
no_license
minceb/Stats2Labs
R
false
true
1,283
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/C5.R \docType{data} \name{Cookies} \alias{Cookies} \title{Chapter 5 Cookies Data} \format{ A data frame with 135 rows and 4 columns } \usage{ Cookies } \description{ Two students wanted to determine if people could taste the difference in cho...
## Loading in the data from the internet if(!file.exists("exdata-data-household_power_consumption.zip")) { temp <- tempfile() download.file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",temp) file <- unzip(temp) unlink(temp) } ## Read in power dat...
/plot4.R
no_license
bryanluna/ExData_Plotting1
R
false
false
1,919
r
## Loading in the data from the internet if(!file.exists("exdata-data-household_power_consumption.zip")) { temp <- tempfile() download.file("http://d396qusza40orc.cloudfront.net/exdata%2Fdata%2Fhousehold_power_consumption.zip",temp) file <- unzip(temp) unlink(temp) } ## Read in power dat...
#' @title Automatically Create a \code{shiny} App Based on Interactive \code{Loon} Widgets #' @name loon.shiny #' @description Interactive \code{loon} widgets displayed in a \code{shiny} app #' @param widgets A \code{loon} widget or a list of \code{loon} widgets. If the input is a #' \code{ggplot} object, the \code{ggp...
/R/loon.shiny.R
no_license
z267xu/loon.shiny
R
false
false
9,825
r
#' @title Automatically Create a \code{shiny} App Based on Interactive \code{Loon} Widgets #' @name loon.shiny #' @description Interactive \code{loon} widgets displayed in a \code{shiny} app #' @param widgets A \code{loon} widget or a list of \code{loon} widgets. If the input is a #' \code{ggplot} object, the \code{ggp...
setJavaMemory <- function(memoryInMB) { .jinit("ExtraTrees.jar", parameters = sprintf("-Xmx%dm", memoryInMB), force.init = TRUE) }
/R/setMemory.R
permissive
hute37/extraTrees
R
false
false
153
r
setJavaMemory <- function(memoryInMB) { .jinit("ExtraTrees.jar", parameters = sprintf("-Xmx%dm", memoryInMB), force.init = TRUE) }
require(spatialEco) require(sp) require(usedist) require(rgeos) require(raster) require(spatstat) require(igraph) require(sf) require(rgdal) require(gdistance) require(otuSummary) require(gdata) require(maptools) require(tidyverse) require(reshape2) require(data.table) #setwd("E:/LCP sensitivity test/ConnectivityHPC_in...
/Code/HPC_5000geospgyr70Rep2.R
no_license
ZacharyRobbins/TransferHPC
R
false
false
14,782
r
require(spatialEco) require(sp) require(usedist) require(rgeos) require(raster) require(spatstat) require(igraph) require(sf) require(rgdal) require(gdistance) require(otuSummary) require(gdata) require(maptools) require(tidyverse) require(reshape2) require(data.table) #setwd("E:/LCP sensitivity test/ConnectivityHPC_in...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vis.R \name{vis} \alias{vis} \title{Model stability and variable inclusion plots} \usage{ vis(mf, nvmax, B = 100, lambda.max, nbest = "all", use.glmulti = FALSE, cores, force.in = NULL, screen = FALSE, redundant = TRUE, seed = NULL, ...) ...
/man/vis.Rd
no_license
thomas-fung/mplot
R
false
true
2,982
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/vis.R \name{vis} \alias{vis} \title{Model stability and variable inclusion plots} \usage{ vis(mf, nvmax, B = 100, lambda.max, nbest = "all", use.glmulti = FALSE, cores, force.in = NULL, screen = FALSE, redundant = TRUE, seed = NULL, ...) ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/brktrials3wrapper.R \name{brktrials3wrapper} \alias{brktrials3wrapper} \title{\code{brktrials3wrapper} produces \code{t-x} trajectories for lead and following vehicles at a bottleneck} \usage{ brktrials3wrapper(nveh1,nveh2,umn,usd,tstart,tend...
/man/brktrials3wrapper.Rd
permissive
PJOssenbruggen/Basic
R
false
true
1,371
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/brktrials3wrapper.R \name{brktrials3wrapper} \alias{brktrials3wrapper} \title{\code{brktrials3wrapper} produces \code{t-x} trajectories for lead and following vehicles at a bottleneck} \usage{ brktrials3wrapper(nveh1,nveh2,umn,usd,tstart,tend...
#load directory rm(list=ls()) #load data #load directory path <- "D:/mohi/analytics/av/big mart sales" setwd(path) #load data train <- read.csv("train.txt") test <- read.csv("test.txt") #create a new variable in test file test$Item_Outlet_Sales <- 1 #combine train and test data combi <- rbind(train, t...
/big mart sales_av.R
no_license
mohi-uddin/Bigmart_sale-analytics-vidhya-
R
false
false
2,182
r
#load directory rm(list=ls()) #load data #load directory path <- "D:/mohi/analytics/av/big mart sales" setwd(path) #load data train <- read.csv("train.txt") test <- read.csv("test.txt") #create a new variable in test file test$Item_Outlet_Sales <- 1 #combine train and test data combi <- rbind(train, t...
#' Convert an undirected graph to a directed graph #' @description Take a graph which is #' undirected and convert it to a directed #' graph. #' @param graph a graph object of class #' \code{dgr_graph}. #' @return a graph object of class #' \code{dgr_graph}. #' @examples #' # Create a graph with a #' # undirected tree ...
/R/set_graph_directed.R
permissive
wk1984/DiagrammeR
R
false
false
1,545
r
#' Convert an undirected graph to a directed graph #' @description Take a graph which is #' undirected and convert it to a directed #' graph. #' @param graph a graph object of class #' \code{dgr_graph}. #' @return a graph object of class #' \code{dgr_graph}. #' @examples #' # Create a graph with a #' # undirected tree ...
#library(profvis) #library(Rcpp) library(readxl) #library(RColorBrewer) ?? #library(dplyr) #library(reshape2) #library(dygraphs) #library(xts) #library(ggrepel) library(shiny) library(shinydashboard) library(shinydashboardPlus) library(shinyEffects) library(DT) library(leaflet) library(tidyverse) library(hrbrthemes) ...
/global.R
no_license
anomaliascongenitas/App_Anomalias_Congenitas_RS
R
false
false
6,306
r
#library(profvis) #library(Rcpp) library(readxl) #library(RColorBrewer) ?? #library(dplyr) #library(reshape2) #library(dygraphs) #library(xts) #library(ggrepel) library(shiny) library(shinydashboard) library(shinydashboardPlus) library(shinyEffects) library(DT) library(leaflet) library(tidyverse) library(hrbrthemes) ...
library(tidyverse) housing <- read_csv("dataSets/landdata-states.csv") ## Parsed with column specification: ## cols( ## State = col_character(), ## region = col_character(), ## Date = col_double(), ## Home.Value = col_integer(), ## Structure.Cost = col_integer(), ## Land.Value = col_integer(), ## Land.Sh...
/ggplot2histogram.r
no_license
timlehane/RTutorial
R
false
false
1,058
r
library(tidyverse) housing <- read_csv("dataSets/landdata-states.csv") ## Parsed with column specification: ## cols( ## State = col_character(), ## region = col_character(), ## Date = col_double(), ## Home.Value = col_integer(), ## Structure.Cost = col_integer(), ## Land.Value = col_integer(), ## Land.Sh...
sample_list<-lapply(dir('RData/',full.names = T),function(x) { tmp<-readRDS(x) if(x=='RData/Sample_2_Crop_5_10.RData'){ tmp<-data.frame(Sample=regmatches(x,regexpr('[[:word:]]+(?=[.])',x,perl=TRUE)), Time=c(seq(0,120,1),seq(160,360,20),seq(420,7200,600)), do.call(rbind,tmp)...
/Export_data.R
no_license
mariofajardo/ASWAT
R
false
false
1,734
r
sample_list<-lapply(dir('RData/',full.names = T),function(x) { tmp<-readRDS(x) if(x=='RData/Sample_2_Crop_5_10.RData'){ tmp<-data.frame(Sample=regmatches(x,regexpr('[[:word:]]+(?=[.])',x,perl=TRUE)), Time=c(seq(0,120,1),seq(160,360,20),seq(420,7200,600)), do.call(rbind,tmp)...
#### random forest model #### # load-packages ----------------------------------------------------------- library(janitor) library(skimr) library(tidymodels) library(tidyverse) # set-seed ----------------------------------------------------------------- set.seed(2021) # read-in-data --------------------------------...
/model_info/rf_tuned2.R
no_license
alexhanachang/classification-competition
R
false
false
2,490
r
#### random forest model #### # load-packages ----------------------------------------------------------- library(janitor) library(skimr) library(tidymodels) library(tidyverse) # set-seed ----------------------------------------------------------------- set.seed(2021) # read-in-data --------------------------------...
#' Computerized Adaptive Testing Survey Posterior Standard Error of Estimated Latent Trait Position Estimator #' #' This function estimates the standard error of an estimate of a respondent's expected \emph{a posteriori} (EAP) position on the latent scale. #' #' @param cat An object of class \code{CATsurv} #' @param th...
/catSurv/R/estimateSE.R
no_license
drmiller1220/CATSurv
R
false
false
2,069
r
#' Computerized Adaptive Testing Survey Posterior Standard Error of Estimated Latent Trait Position Estimator #' #' This function estimates the standard error of an estimate of a respondent's expected \emph{a posteriori} (EAP) position on the latent scale. #' #' @param cat An object of class \code{CATsurv} #' @param th...
#load data Regiondata.df = read.csv (file="Data_RegionEx.csv", header = TRUE ) #observe the data first View(Regiondata.df) library(ggplot2) library(dplyr) library(statsr) #Compute the mean, median, 90th percentile, and #standard deviation of the number of arrival delay minutes of RegionEx's flights. Do t...
/RegionEx.R
no_license
priyaroopa/RegionEx-case
R
false
false
16,277
r
#load data Regiondata.df = read.csv (file="Data_RegionEx.csv", header = TRUE ) #observe the data first View(Regiondata.df) library(ggplot2) library(dplyr) library(statsr) #Compute the mean, median, 90th percentile, and #standard deviation of the number of arrival delay minutes of RegionEx's flights. Do t...
filltime.s <- 850 foatime.s <- 95000 chxtime.s <- 231200 samples <- c(t15am.s = 62000, t15pm.s = 91500, t16pm.s = 169000, t17am.s = 230200, t17pm.s = 264500, t18am.s = 325500) res <- system("grep ^T screenlog-tstat.txt > tstat.txt") tlog ...
/mcgeachy-2018/figure-4b/analysis-tstat.R
no_license
ingolia-lab/turbidostat
R
false
false
1,875
r
filltime.s <- 850 foatime.s <- 95000 chxtime.s <- 231200 samples <- c(t15am.s = 62000, t15pm.s = 91500, t16pm.s = 169000, t17am.s = 230200, t17pm.s = 264500, t18am.s = 325500) res <- system("grep ^T screenlog-tstat.txt > tstat.txt") tlog ...
# # This is the user-interface definition 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) # Define UI for application that draws a histogram shinyUI(fluidPage( ...
/ui.R
no_license
dan-south/SFU-football-passing-defense
R
false
false
1,392
r
# # This is the user-interface definition 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) # Define UI for application that draws a histogram shinyUI(fluidPage( ...
#PARSER FOR ZIV DATA #To bring all three data sets into the same format #so that a single script can be used to extract growth curves data=read.table("LWOdata.txt", header=TRUE) area=read.table("LWOarea.txt", header=TRUE) #Images were taken every hour for 24h tim=matrix(rep(seq(1,23),dim(area)[1]),ncol=23,nrow=di...
/LevySiegalData/LWOdata/Parser_ZivData.R
no_license
lwlss/discstoch
R
false
false
658
r
#PARSER FOR ZIV DATA #To bring all three data sets into the same format #so that a single script can be used to extract growth curves data=read.table("LWOdata.txt", header=TRUE) area=read.table("LWOarea.txt", header=TRUE) #Images were taken every hour for 24h tim=matrix(rep(seq(1,23),dim(area)[1]),ncol=23,nrow=di...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ppt_ph_manipulate.R \name{ph_hyperlink} \alias{ph_hyperlink} \title{hyperlink a placeholder} \usage{ ph_hyperlink(x, type = NULL, id_chr = NULL, href) } \arguments{ \item{x}{a pptx device} \item{type}{placeholder type} \item{id_chr}{placeho...
/man/ph_hyperlink.Rd
no_license
eusebe/officer
R
false
true
1,196
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ppt_ph_manipulate.R \name{ph_hyperlink} \alias{ph_hyperlink} \title{hyperlink a placeholder} \usage{ ph_hyperlink(x, type = NULL, id_chr = NULL, href) } \arguments{ \item{x}{a pptx device} \item{type}{placeholder type} \item{id_chr}{placeho...
library("xml2") library("rvest") link = "http://stats.espncricinfo.com/ci/content/records/284248.html" file=read_html(link) cricket=html_nodes(file,"table") cricket_table<-html_table(cricket[1],fill=TRUE) View(cricket_table) cricket.df <- as.data.frame(cricket_table) View(cricket.df) TopFive<-c(cricket.df$...
/Hands on Exercise 6 - Plot 5 highest run across years.R
no_license
ayushishrivastava16/AMMA_MICA_PGP2
R
false
false
3,129
r
library("xml2") library("rvest") link = "http://stats.espncricinfo.com/ci/content/records/284248.html" file=read_html(link) cricket=html_nodes(file,"table") cricket_table<-html_table(cricket[1],fill=TRUE) View(cricket_table) cricket.df <- as.data.frame(cricket_table) View(cricket.df) TopFive<-c(cricket.df$...
library(tidyverse) # Historical Lake MAGs stats organization for Mendota, Trout (epi/hypo), Mary, and Crystal Bog # Mendota mend_checkm = read_delim('results/mendota_historical/mendota_checkm_stats.tsv', delim="\t", col_names=TRUE) colnames(mend_checkm) = c('Bin', 'lineage', 'Completeness', 'Contamination', "size_bp"...
/scripts/historical-LakeMAGs-stats-org.R
no_license
elizabethmcd/Lake-MAGs
R
false
false
4,031
r
library(tidyverse) # Historical Lake MAGs stats organization for Mendota, Trout (epi/hypo), Mary, and Crystal Bog # Mendota mend_checkm = read_delim('results/mendota_historical/mendota_checkm_stats.tsv', delim="\t", col_names=TRUE) colnames(mend_checkm) = c('Bin', 'lineage', 'Completeness', 'Contamination', "size_bp"...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gistoolOF_MM.R \name{gistoolOF_MM} \alias{gistoolOF_MM} \title{Gradient analysis of Odense Fjord} \usage{ gistoolOF_MM() } \arguments{ \item{WBData}{Tables of gradient polygons} } \value{ Vertical profiles and Monod growth kinetics in various...
/man/gistoolOF_MM.Rd
no_license
milee16/gistoolmkl
R
false
true
418
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gistoolOF_MM.R \name{gistoolOF_MM} \alias{gistoolOF_MM} \title{Gradient analysis of Odense Fjord} \usage{ gistoolOF_MM() } \arguments{ \item{WBData}{Tables of gradient polygons} } \value{ Vertical profiles and Monod growth kinetics in various...
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "churn") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "class") lrn =...
/models/openml_churn/classification_class/6817a3fb1f71971b6f2ad7619dcfe1bb/code.R
no_license
pysiakk/CaseStudies2019S
R
false
false
745
r
#:# libraries library(digest) library(mlr) library(OpenML) library(farff) #:# config set.seed(1) #:# data dataset <- getOMLDataSet(data.name = "churn") head(dataset$data) #:# preprocessing head(dataset$data) #:# model task = makeClassifTask(id = "task", data = dataset$data, target = "class") lrn =...
rm(list = ls()) bankDataSet <- read.csv("C:\\Users\\Nanitha M\\Desktop\\lor\\course\\creditloan.csv") str(bankDataSet) bankDataSet$default[bankDataSet$default==2] <- "Yes" bankDataSet$default[bankDataSet$default==1] <- "No" bankDataSet$default <- as.factor(bankDataSet$default) str(bankDataSet) #Data Split(...
/SVM_Model_Loan_Aproval_Prediction (1).R
no_license
Shrusti-S/ML-practice-projects
R
false
false
2,626
r
rm(list = ls()) bankDataSet <- read.csv("C:\\Users\\Nanitha M\\Desktop\\lor\\course\\creditloan.csv") str(bankDataSet) bankDataSet$default[bankDataSet$default==2] <- "Yes" bankDataSet$default[bankDataSet$default==1] <- "No" bankDataSet$default <- as.factor(bankDataSet$default) str(bankDataSet) #Data Split(...
#' Format Quarters #' #' Format long/abbreviation month name, integer, or date formats to a quarter #' format (i.e., Q1, Q2, Q3, Q4). #' #' @param x A vector of month names, integers 1-12, or dates. #' @param prefix A quarter prefix (defaults to \code{'Q'}). #' @param space A string to place between `Q` and quarter num...
/R/f_quarter.R
no_license
trinker/numform
R
false
false
3,277
r
#' Format Quarters #' #' Format long/abbreviation month name, integer, or date formats to a quarter #' format (i.e., Q1, Q2, Q3, Q4). #' #' @param x A vector of month names, integers 1-12, or dates. #' @param prefix A quarter prefix (defaults to \code{'Q'}). #' @param space A string to place between `Q` and quarter num...
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12393296371318e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(10L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling...
/CNull/inst/testfiles/communities_individual_based_sampling_alpha/AFL_communities_individual_based_sampling_alpha/communities_individual_based_sampling_alpha_valgrind_files/1615779123-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
348
r
testlist <- list(m = NULL, repetitions = 0L, in_m = structure(c(2.31584307392677e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12393296371318e-221, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), .Dim = c(10L, 3L))) result <- do.call(CNull:::communities_individual_based_sampling...
library(pROC) library(caret) library(dplyr) library(keras) library(randomForest) library(e1071) library(DMwR) library(parallel) library(xgboost) library(doParallel) t = Sys.time() data = read.csv("~/Desktop/Churn_Modelling/Churn_Modelling.csv") head(data) data$RowNumber = NULL data$CustomerId = NULL data$Surname = NUL...
/Churn_Modelling.R
no_license
dexter11235813/Churn_Modelling
R
false
false
6,358
r
library(pROC) library(caret) library(dplyr) library(keras) library(randomForest) library(e1071) library(DMwR) library(parallel) library(xgboost) library(doParallel) t = Sys.time() data = read.csv("~/Desktop/Churn_Modelling/Churn_Modelling.csv") head(data) data$RowNumber = NULL data$CustomerId = NULL data$Surname = NUL...
suppressPackageStartupMessages(library(optparse)) suppressPackageStartupMessages(library(futile.logger)) suppressPackageStartupMessages(library(reshape2)) ### Parsing command line ------------------------------------------------------ option_list <- list( make_option(c("--infile"), action = "store", type = "chara...
/inst/extdata/st_normalize.R
permissive
Theob0t/sttkit
R
false
false
8,321
r
suppressPackageStartupMessages(library(optparse)) suppressPackageStartupMessages(library(futile.logger)) suppressPackageStartupMessages(library(reshape2)) ### Parsing command line ------------------------------------------------------ option_list <- list( make_option(c("--infile"), action = "store", type = "chara...
tabBtns <- f7Tab( tabName = "FABs", icon = f7Icon("keyboard_fill"), active = FALSE, # FABS f7Align( side = "center", h1("miniUI 2.0 brings brand new containers for actionButtons: f7Fabs") ), f7Fabs( position = "right-top", color = "yellow", sideOpen = "bottom", lapply(1:4, functi...
/inst/examples/gallery/tabs/tabBtns.R
no_license
pvictor/shinyMobile
R
false
false
2,692
r
tabBtns <- f7Tab( tabName = "FABs", icon = f7Icon("keyboard_fill"), active = FALSE, # FABS f7Align( side = "center", h1("miniUI 2.0 brings brand new containers for actionButtons: f7Fabs") ), f7Fabs( position = "right-top", color = "yellow", sideOpen = "bottom", lapply(1:4, functi...
# ------------------------------------------------------------------------------ # ps3_f13.R # Global Economy course, functions to handle # * Input from FRED (uses its XML API) # * cross-correlation functions # * business cycle scorecard (graphs) # Recommendation: ignore the functions in Section 1 a...
/Deliverables/Problems/fall_13/ps3_f13.R
no_license
DaveBackus/Global_Economy
R
false
false
7,404
r
# ------------------------------------------------------------------------------ # ps3_f13.R # Global Economy course, functions to handle # * Input from FRED (uses its XML API) # * cross-correlation functions # * business cycle scorecard (graphs) # Recommendation: ignore the functions in Section 1 a...
source("modelfunctions/func-ar.R") library(HDeconometricsBeta) load("dados/rawdata2000.rda") Y=dados nprev=132 ## == passado == ## ar1c=ar.rolling.window(Y,nprev,1,1,type="fixed") ar1p=ar.rolling.window(Y,nprev,2,1,type="fixed") ar2c=ar.rolling.window(Y,nprev,1,2,type="fixed") ar2p=ar.rolling.window(Y,nprev,2,2,ty...
/first-sample/run/ar.R
permissive
Daffa-web-alt/ForecastingInflation
R
false
false
3,580
r
source("modelfunctions/func-ar.R") library(HDeconometricsBeta) load("dados/rawdata2000.rda") Y=dados nprev=132 ## == passado == ## ar1c=ar.rolling.window(Y,nprev,1,1,type="fixed") ar1p=ar.rolling.window(Y,nprev,2,1,type="fixed") ar2c=ar.rolling.window(Y,nprev,1,2,type="fixed") ar2p=ar.rolling.window(Y,nprev,2,2,ty...
library("dplyr") library("ggplot2") data = read.csv("./cours/mpna/projet/simulation_poincare/resultats.csv") %>% as_tibble()%>% mutate(taches_par_noeud = taches / noeuds)
/viz.R
no_license
matthiasbe/sim
R
false
false
176
r
library("dplyr") library("ggplot2") data = read.csv("./cours/mpna/projet/simulation_poincare/resultats.csv") %>% as_tibble()%>% mutate(taches_par_noeud = taches / noeuds)
library(readr) library(plyr) info_agua <- read_csv("~/Projects/UFCG/16_2/DataViz/lab04-sertao/data/dados_snis_filtrados/info_agua.csv") info_qualidade <- read_csv("~/Projects/UFCG/16_2/DataViz/lab04-sertao/data/dados_snis_filtrados/info_qualidade.csv") info_geral <- read_csv("~/Projects/UFCG/16_2/DataViz/lab04-sertao/...
/lab04-sertao/data/pre_process_data.R
no_license
caynan/dataviz
R
false
false
2,091
r
library(readr) library(plyr) info_agua <- read_csv("~/Projects/UFCG/16_2/DataViz/lab04-sertao/data/dados_snis_filtrados/info_agua.csv") info_qualidade <- read_csv("~/Projects/UFCG/16_2/DataViz/lab04-sertao/data/dados_snis_filtrados/info_qualidade.csv") info_geral <- read_csv("~/Projects/UFCG/16_2/DataViz/lab04-sertao/...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CIPinnipedAnalysis-package.R \docType{data} \name{SeaLevelHeight} \alias{SeaLevelHeight} \title{Port San Luis Sea Level Height Data} \format{A dataframe with fields \preformatted{ Year - year of data measurement Month - numeric mont...
/CIPinnipedAnalysis/man/SeaLevelHeight.Rd
no_license
jlaake/CIPinnipedAnalysis
R
false
true
618
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/CIPinnipedAnalysis-package.R \docType{data} \name{SeaLevelHeight} \alias{SeaLevelHeight} \title{Port San Luis Sea Level Height Data} \format{A dataframe with fields \preformatted{ Year - year of data measurement Month - numeric mont...
if (interactive()) pkgload::load_all() test_html <- function() { options(useFancyQuotes = FALSE) output_directory <- file.path(tempdir(), "document_runit_html") unlink(output_directory, recursive = TRUE) dir.create(output_directory) input <- file.path(system.file("files", package = "document"), "sim...
/inst/runit_tests/expected_files.r
no_license
cran/document
R
false
false
1,247
r
if (interactive()) pkgload::load_all() test_html <- function() { options(useFancyQuotes = FALSE) output_directory <- file.path(tempdir(), "document_runit_html") unlink(output_directory, recursive = TRUE) dir.create(output_directory) input <- file.path(system.file("files", package = "document"), "sim...
setMethod('extract', signature(x='Speclib', y='ANY'), function(x, y, ...) { if (!x@spectra@fromRaster) stop("x does not contain RasterBrick") returnSpeclib <- FALSE gotID <- FALSE res <- extract(x@spectra@spectra_ra, y, ...) if (is.list(res)) { if (length(res) > 1) { n <-...
/R/raster-methods.R
no_license
keltoskytoi/hsdar
R
false
false
1,643
r
setMethod('extract', signature(x='Speclib', y='ANY'), function(x, y, ...) { if (!x@spectra@fromRaster) stop("x does not contain RasterBrick") returnSpeclib <- FALSE gotID <- FALSE res <- extract(x@spectra@spectra_ra, y, ...) if (is.list(res)) { if (length(res) > 1) { n <-...
#' abline at locator point in graph #' #' Draw vertical and/or horizontal lines at positions in a graph located by clicking #' #' @details Not tested across platforms yet... #' @return \code{\link{locator}} result #' @author Berry Boessenkool, \email{berry-b@@gmx.de}, Mar 2016 #' @seealso \code{\link{locator}}, ...
/berryFunctions/R/locLine.R
no_license
ingted/R-Examples
R
false
false
904
r
#' abline at locator point in graph #' #' Draw vertical and/or horizontal lines at positions in a graph located by clicking #' #' @details Not tested across platforms yet... #' @return \code{\link{locator}} result #' @author Berry Boessenkool, \email{berry-b@@gmx.de}, Mar 2016 #' @seealso \code{\link{locator}}, ...
#' Create instructions modal text #' #' Provides an overview of the application and how to use it, as well as links #' to resources about formatting a manifest and the allowable values of #' annotations. #' #' @param annots_link Link to a definition of the annotations being used in the #' project #' @param templates_...
/R/instructions.R
permissive
Aryllen/dccvalidator
R
false
false
1,415
r
#' Create instructions modal text #' #' Provides an overview of the application and how to use it, as well as links #' to resources about formatting a manifest and the allowable values of #' annotations. #' #' @param annots_link Link to a definition of the annotations being used in the #' project #' @param templates_...
\name{netPresentValue} \alias{netPresentValue} %- Also NEED an '\alias' for EACH other topic documented here. \title{ netPresentValue } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ netPresentValue(cashFlows, interestRate) } %- maybe also 'usage' for other objects docume...
/man/netPresentValue.Rd
no_license
AmateurECE/economics
R
false
false
1,618
rd
\name{netPresentValue} \alias{netPresentValue} %- Also NEED an '\alias' for EACH other topic documented here. \title{ netPresentValue } \description{ %% ~~ A concise (1-5 lines) description of what the function does. ~~ } \usage{ netPresentValue(cashFlows, interestRate) } %- maybe also 'usage' for other objects docume...
\name{madlib.lm} \alias{madlib.lm} \title{ Linear regression with grouping support, heteroskedasticity } \description{ The wrapper function for MADlib linear regression. Heteroskedasticity can be detected using Breusch-Pagan test. One or multiple columns of data can be used to separated the data set into mu...
/rmadlib/man/madlib.lm.Rd
no_license
walkingsparrow/rmadlib
R
false
false
4,618
rd
\name{madlib.lm} \alias{madlib.lm} \title{ Linear regression with grouping support, heteroskedasticity } \description{ The wrapper function for MADlib linear regression. Heteroskedasticity can be detected using Breusch-Pagan test. One or multiple columns of data can be used to separated the data set into mu...
# Calling packages library(ggplot2) library(dplyr) library(WDI) #Import the Dataset ACLED <- read_csv("ACLED-AFRICA-FULL.csv") #Generate a list of countries that the data applies to countries <- unique(ACLED[,15]) #Filter options #Pull the information that we are most concerned with ACLED_parsed <- ACLED %>% ...
/ACLEDsort.R
no_license
Nachocabezudo/FinalProject
R
false
false
695
r
# Calling packages library(ggplot2) library(dplyr) library(WDI) #Import the Dataset ACLED <- read_csv("ACLED-AFRICA-FULL.csv") #Generate a list of countries that the data applies to countries <- unique(ACLED[,15]) #Filter options #Pull the information that we are most concerned with ACLED_parsed <- ACLED %>% ...
#' BCOPS prediction function #' @param models a list of models calculating the predicted $v_k(x)$ for each class, it is an object from BCOPS.train. #' @param x n by p feature matrix for the training data to be used in conformal inference. #' @param y length n class labels for the training data to be used in the confor...
/bcops/R/BCOPSprediction.R
no_license
LeyingGuan/BCOPS
R
false
false
4,573
r
#' BCOPS prediction function #' @param models a list of models calculating the predicted $v_k(x)$ for each class, it is an object from BCOPS.train. #' @param x n by p feature matrix for the training data to be used in conformal inference. #' @param y length n class labels for the training data to be used in the confor...
setwd("/Users/ritesh/pad-datascience/R/") x<-read.csv("machineLearning/data/datafile.csv", header = TRUE, sep = ",") head(x) attach(x) fit <-lm(Total...Irrigation.potential.created~Irrigation.potential.created...Rabi, data=x) summary(fit) fitted(fit) plot(Total...Irrigation.potential.created~Irrigation.potential.creat...
/R/machineLearning/regression/LinearRegression.R
no_license
riteshsolankee/data-science
R
false
false
586
r
setwd("/Users/ritesh/pad-datascience/R/") x<-read.csv("machineLearning/data/datafile.csv", header = TRUE, sep = ",") head(x) attach(x) fit <-lm(Total...Irrigation.potential.created~Irrigation.potential.created...Rabi, data=x) summary(fit) fitted(fit) plot(Total...Irrigation.potential.created~Irrigation.potential.creat...
library(treeman) ### Name: setNdsID ### Title: Set the IDs of multiple nodes ### Aliases: setNdsID ### ** Examples library(treeman) tree <- randTree(10) new_ids <- paste0('heffalump_', 1:tree['ntips']) tree <- setNdsID(tree, tree['tips'], new_ids) summary(tree)
/data/genthat_extracted_code/treeman/examples/setNdsID.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
269
r
library(treeman) ### Name: setNdsID ### Title: Set the IDs of multiple nodes ### Aliases: setNdsID ### ** Examples library(treeman) tree <- randTree(10) new_ids <- paste0('heffalump_', 1:tree['ntips']) tree <- setNdsID(tree, tree['tips'], new_ids) summary(tree)
############### ### Econometrics unit 3.2 - 3.7 ############### ############### ### 3.2 - multiple regression ############### library(AER) data("CPS1988") summary(CPS1988) # experience computed as : age - education - 6 cps_lm <- lm(log(wage) ~ experience + I(experience^2) +education + ethnicity, data = CPS1988) ...
/Unit 3 code/unit3_2 to 3_7 code.R
no_license
anhnguyendepocen/econometrics-3
R
false
false
9,493
r
############### ### Econometrics unit 3.2 - 3.7 ############### ############### ### 3.2 - multiple regression ############### library(AER) data("CPS1988") summary(CPS1988) # experience computed as : age - education - 6 cps_lm <- lm(log(wage) ~ experience + I(experience^2) +education + ethnicity, data = CPS1988) ...
# reading in headspace questionnaire data ## load packages library(tidyverse) library(readxl) library(MBESS) library(naniar) library(haven) library(data.table) ## read in data dat <- read_sav("data/paper_three/questionnaire/SMILE full data 11 10 2020 FOR DATA CLEANING.sav") %>% select("Initials", "Cohort...
/scripts/paper_three/reading_in_data.R
no_license
ikahrilas/Kahrilas_Dissertation
R
false
false
10,845
r
# reading in headspace questionnaire data ## load packages library(tidyverse) library(readxl) library(MBESS) library(naniar) library(haven) library(data.table) ## read in data dat <- read_sav("data/paper_three/questionnaire/SMILE full data 11 10 2020 FOR DATA CLEANING.sav") %>% select("Initials", "Cohort...
d = read.table("household_power_consumption.txt", header=TRUE, sep=";",dec=".",na.strings="?") d1<-subset(d2,Date>=DateLimit[1]) d2<-subset(d1,Date<=DateLimit[2]) d2$Date<-as.Date(d2$Date,format="%d/%m/%Y") remove(d1) par(mfcol=c(2,2)) par(mar=c(6,6,2,2)) ##Upper left plot plot(d2$Global_active_power, main="", type="...
/Plot4.R
no_license
Ignacio-dAR/ExData_Plotting1
R
false
false
1,910
r
d = read.table("household_power_consumption.txt", header=TRUE, sep=";",dec=".",na.strings="?") d1<-subset(d2,Date>=DateLimit[1]) d2<-subset(d1,Date<=DateLimit[2]) d2$Date<-as.Date(d2$Date,format="%d/%m/%Y") remove(d1) par(mfcol=c(2,2)) par(mar=c(6,6,2,2)) ##Upper left plot plot(d2$Global_active_power, main="", type="...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ggpie.R \name{ggpie} \alias{ggpie} \title{Pie chart} \usage{ ggpie(data, x, label = x, lab.pos = c("out", "in"), lab.adjust = 0, lab.font = c(4, "bold", "black"), font.family = "", color = "black", fill = "white", palette = NULL, size = N...
/man/ggpie.Rd
no_license
alapo/ggpubr
R
false
true
3,418
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/ggpie.R \name{ggpie} \alias{ggpie} \title{Pie chart} \usage{ ggpie(data, x, label = x, lab.pos = c("out", "in"), lab.adjust = 0, lab.font = c(4, "bold", "black"), font.family = "", color = "black", fill = "white", palette = NULL, size = N...
#Every two plots sitting in one page belong to the same combination: Modeling fitting dataset and Model Generlization Dataset (for definition, see the paper draft). Their correponding learner is printed before the two plots in each page. #The first plot is the star plot, for each "star", each edge correpond to mmce ...
/R/post_vis_3d.R
no_license
slds-lmu/paper_2019_multiobjective_rfms
R
false
false
8,473
r
#Every two plots sitting in one page belong to the same combination: Modeling fitting dataset and Model Generlization Dataset (for definition, see the paper draft). Their correponding learner is printed before the two plots in each page. #The first plot is the star plot, for each "star", each edge correpond to mmce ...
##cachematrix.R -- functions that Computes the inverse of a square matrix ## function makeCacheMatrix:: This function creates a special "matrix" object that can cache its inverse. ## Input -> x: a square invertible matrix ## returns : a list containing functions ## 1. set the matrix ## 2. get the matrix ## 3. se...
/cachematrix.R
no_license
PanMud/ProgrammingAssignment2
R
false
false
1,217
r
##cachematrix.R -- functions that Computes the inverse of a square matrix ## function makeCacheMatrix:: This function creates a special "matrix" object that can cache its inverse. ## Input -> x: a square invertible matrix ## returns : a list containing functions ## 1. set the matrix ## 2. get the matrix ## 3. se...
pollutantmean <- function(dir, pollutecol, id = 1:332) { Allfiles = list.files(path = dir, pattern="*.csv", full.names = TRUE) allobservations <- numeric() for (i in id){ datapart <- read.csv(Allfiles[i]) allobservations <- c(allobservations, datapart[[pollutecol]]) } mean(allobservations, ...
/pollutantmeanFunction.R
no_license
KrDataScientist/datasciencecoursera
R
false
false
338
r
pollutantmean <- function(dir, pollutecol, id = 1:332) { Allfiles = list.files(path = dir, pattern="*.csv", full.names = TRUE) allobservations <- numeric() for (i in id){ datapart <- read.csv(Allfiles[i]) allobservations <- c(allobservations, datapart[[pollutecol]]) } mean(allobservations, ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/saveDevs.r \name{saveDevs} \alias{saveDevs} \title{Function saveDevs} \usage{ saveDevs(filename = NA, width = NA, height = NA, dev = png, units = "in", res = 300, mess = T, close = F, ...) } \arguments{ \item{filename}{Character vector cont...
/man/saveDevs.Rd
no_license
AndreasFischer1985/qqBaseX
R
false
true
1,252
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/saveDevs.r \name{saveDevs} \alias{saveDevs} \title{Function saveDevs} \usage{ saveDevs(filename = NA, width = NA, height = NA, dev = png, units = "in", res = 300, mess = T, close = F, ...) } \arguments{ \item{filename}{Character vector cont...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/euler_10.R \name{euler_10} \alias{euler_10} \title{Project Euler 10: Summation of primes} \usage{ euler_10(n) } \arguments{ \item{n}{An integer.} } \description{ This is a solution to \href{https://projecteuler.net/problem=10}{Euler problem 1...
/man/euler_10.Rd
permissive
thisisnic/euler
R
false
true
366
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/euler_10.R \name{euler_10} \alias{euler_10} \title{Project Euler 10: Summation of primes} \usage{ euler_10(n) } \arguments{ \item{n}{An integer.} } \description{ This is a solution to \href{https://projecteuler.net/problem=10}{Euler problem 1...
install.packages("jsonlite") library(jsonlite) dat.1 <- fromJSON("../data/tema1/students.json") dat.2 <- fromJSON("../data/tema1/student-courses.json") install.packages('curl') library(curl) url <- "https://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote?format=json" currencies <- fromJSON(url) curren...
/scripts/data/03-analisis-json.R
permissive
Aggarch/r-course
R
false
false
473
r
install.packages("jsonlite") library(jsonlite) dat.1 <- fromJSON("../data/tema1/students.json") dat.2 <- fromJSON("../data/tema1/student-courses.json") install.packages('curl') library(curl) url <- "https://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote?format=json" currencies <- fromJSON(url) curren...
RiskControlForOne30_90=function(userID,status,username,password,dbname,host,port){ userID<-as.character(userID) #cache space memory.limit(10240000) today<-Sys.Date() #library# library(DBI) library(RMySQL) library(lubridate) library(reshape) #get data# #connet MySQL con = dbConn...
/src/main/resources/RiskControlForOne30_90.R
permissive
shimaomao/fpd
R
false
false
37,814
r
RiskControlForOne30_90=function(userID,status,username,password,dbname,host,port){ userID<-as.character(userID) #cache space memory.limit(10240000) today<-Sys.Date() #library# library(DBI) library(RMySQL) library(lubridate) library(reshape) #get data# #connet MySQL con = dbConn...
library(usethis) source("data-raw/01-small_table.R") source("data-raw/04-specifications.R") # Create external datasets usethis::use_data( small_table, specifications, internal = FALSE, overwrite = TRUE )
/data-raw/zz-process_datasets_ext.R
permissive
guptam/pointblank
R
false
false
213
r
library(usethis) source("data-raw/01-small_table.R") source("data-raw/04-specifications.R") # Create external datasets usethis::use_data( small_table, specifications, internal = FALSE, overwrite = TRUE )
cv.env.apweights <- function(X, Y, u, m, nperm) { X <- as.matrix(X) a <- dim(Y) n <- a[1] r <- a[2] p <- ncol(X) prederr <- rep(0, nperm) for (i in 1:nperm) { id <- sample(n, n) Xn <- as.matrix(X[id, ]) Yn <- Y[id, ] for (j in 1:m) { id.test <- (floor((j - 1) ...
/R/cv.env.apweights.R
no_license
cran/Renvlp
R
false
false
874
r
cv.env.apweights <- function(X, Y, u, m, nperm) { X <- as.matrix(X) a <- dim(Y) n <- a[1] r <- a[2] p <- ncol(X) prederr <- rep(0, nperm) for (i in 1:nperm) { id <- sample(n, n) Xn <- as.matrix(X[id, ]) Yn <- Y[id, ] for (j in 1:m) { id.test <- (floor((j - 1) ...
## DENSITY DEPENDENCE ANALYSIS USING QUANTILE REGRESSION ## https://data.library.virginia.edu/getting-started-with-quantile-regression/ # THE OBJETIVE OF THIS CODE IS TO TEST IF THERE ARE ANY DIFFERENCE BETWEEN TREATMENT BEFORE START THE EXPERIMENT TO # SO THAT WHEN ANALYSING THE DATA WE CAN TAKE INTO ACCOUNT INI...
/Mixed-Models/Preliminary-Analysis/Germlings/1- Stress_DensityDependece_Quantile_Regression.R
no_license
AnaAGG/Statistical-Analysis-with-R
R
false
false
7,532
r
## DENSITY DEPENDENCE ANALYSIS USING QUANTILE REGRESSION ## https://data.library.virginia.edu/getting-started-with-quantile-regression/ # THE OBJETIVE OF THIS CODE IS TO TEST IF THERE ARE ANY DIFFERENCE BETWEEN TREATMENT BEFORE START THE EXPERIMENT TO # SO THAT WHEN ANALYSING THE DATA WE CAN TAKE INTO ACCOUNT INI...
testlist <- list(Beta = 0, CAL = numeric(0), CVLinf = 0, L50 = 0, L95 = 0, LenBins = numeric(0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), nage = 0L, nlen = 0L, pars = c(3.81959242373749e-313, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
/DLMtool/inst/testfiles/LBSPRopt/AFL_LBSPRopt/LBSPRopt_valgrind_files/1615838088-test.R
no_license
akhikolla/updatedatatype-list2
R
false
false
651
r
testlist <- list(Beta = 0, CAL = numeric(0), CVLinf = 0, L50 = 0, L95 = 0, LenBins = numeric(0), LenMids = numeric(0), Linf = 0, MK = 0, Ml = numeric(0), Prob = structure(0, .Dim = c(1L, 1L)), nage = 0L, nlen = 0L, pars = c(3.81959242373749e-313, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/editmatrixAttr.R \name{getAb} \alias{getAb} \title{Returns augmented matrix representation of edit set.} \usage{ getAb(E) } \arguments{ \item{E}{\code{\link{editmatrix}}} } \value{ \code{numeric} matrix \code{A|b} } \description{ For a system...
/man/getAb.Rd
no_license
cran/editrules
R
false
true
1,184
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/editmatrixAttr.R \name{getAb} \alias{getAb} \title{Returns augmented matrix representation of edit set.} \usage{ getAb(E) } \arguments{ \item{E}{\code{\link{editmatrix}}} } \value{ \code{numeric} matrix \code{A|b} } \description{ For a system...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gghist.R \name{gghist} \alias{gghist} \title{gghist} \usage{ gghist(x, bins = 30, density = F, color = "grey95", ...) } \arguments{ \item{color}{} } \description{ gghist }
/man/gghist.Rd
no_license
itsaquestion/MyPlot
R
false
true
250
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/gghist.R \name{gghist} \alias{gghist} \title{gghist} \usage{ gghist(x, bins = 30, density = F, color = "grey95", ...) } \arguments{ \item{color}{} } \description{ gghist }
SIL.F <- function (Xca, U, alpha) { if (missing(Xca)) stop("The data set must be given") if (is.null(Xca)) stop("The data set Xca is empty") n=nrow(Xca) Xca=as.matrix(Xca) if (any(is.na(Xca))) stop("The data set Xca must not contain NA values") if (!is.numeric(Xca)) stop("The data set Xca is not a numeric d...
/fclust/R/SIL.F.R
no_license
ingted/R-Examples
R
false
false
1,491
r
SIL.F <- function (Xca, U, alpha) { if (missing(Xca)) stop("The data set must be given") if (is.null(Xca)) stop("The data set Xca is empty") n=nrow(Xca) Xca=as.matrix(Xca) if (any(is.na(Xca))) stop("The data set Xca must not contain NA values") if (!is.numeric(Xca)) stop("The data set Xca is not a numeric d...
url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip" currWd <- getwd() tempFile <- paste0(currWd, '/NEI_data.zip') download.file(url, destfile = tempFile, method = "curl") unzip(tempFile) file.remove(tempFile) ## Read the data frames NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("...
/plot3.R
no_license
audas007/ExData_Plotting2
R
false
false
751
r
url <- "https://d396qusza40orc.cloudfront.net/exdata%2Fdata%2FNEI_data.zip" currWd <- getwd() tempFile <- paste0(currWd, '/NEI_data.zip') download.file(url, destfile = tempFile, method = "curl") unzip(tempFile) file.remove(tempFile) ## Read the data frames NEI <- readRDS("summarySCC_PM25.rds") SCC <- readRDS("...
#' Function for plotting bivariate polar plots with smoothing. #' #' Function for plotting pollutant concentration in polar coordinates #' showing concentration by wind speed (or another numeric variable) #' and direction. Mean concentrations are calculated for wind #' speed-direction \sQuote{bins} (e.g. 0-1, 1-2 m/s,....
/R/polarPlot.R
no_license
AnuragSinghChaudhary/openair
R
false
false
49,601
r
#' Function for plotting bivariate polar plots with smoothing. #' #' Function for plotting pollutant concentration in polar coordinates #' showing concentration by wind speed (or another numeric variable) #' and direction. Mean concentrations are calculated for wind #' speed-direction \sQuote{bins} (e.g. 0-1, 1-2 m/s,....
###------------- ### libraries ###------------- library(dplyr) library(plyr) library(ggplot2) library(reshape2) library(ggpattern) ###------------- ### set wd ###------------- setwd("~/desktop/Dynamic_Vaccine_Allocation") ###------------- ### load data ###------------- # full solution dat_full_sol <- read.csv("da...
/code_figures/alternative_structures.R
no_license
Jack-H-Buckner/Vaccine_prioritization
R
false
false
25,583
r
###------------- ### libraries ###------------- library(dplyr) library(plyr) library(ggplot2) library(reshape2) library(ggpattern) ###------------- ### set wd ###------------- setwd("~/desktop/Dynamic_Vaccine_Allocation") ###------------- ### load data ###------------- # full solution dat_full_sol <- read.csv("da...
# Chapter 6 # Bayesian Variable Selection using I-priors simulation study source("00-prelim.R") chapter <- "06" # ---- bvs.ozone ---- data(Ozone, package = "mlbench") colnames(Ozone) <- c("Month", "DayMonth", "DayWeek", "Ozone", "PresVand", "WindLAX", "HumLAX", "TempSand", "TempElMon", "ibhLAX", ...
/chapters/R/06-03-bvs-real-data.R
no_license
haziqj/phd-thesis
R
false
false
5,092
r
# Chapter 6 # Bayesian Variable Selection using I-priors simulation study source("00-prelim.R") chapter <- "06" # ---- bvs.ozone ---- data(Ozone, package = "mlbench") colnames(Ozone) <- c("Month", "DayMonth", "DayWeek", "Ozone", "PresVand", "WindLAX", "HumLAX", "TempSand", "TempElMon", "ibhLAX", ...
# This code implements the strategy found in: # Faber, Mebane T., "A Quantitative Approach to Tactical Asset Allocation." # Journal of Risk Management (Spring 2007). # The article implements a simpler version of the 200-day SMA, opting for a # 10-month SMA because monthly data are more easily available in earlier # pe...
/task_reference/specific_analysis/Ulrich/blotter_example.r
no_license
githubfun/R
R
false
false
4,223
r
# This code implements the strategy found in: # Faber, Mebane T., "A Quantitative Approach to Tactical Asset Allocation." # Journal of Risk Management (Spring 2007). # The article implements a simpler version of the 200-day SMA, opting for a # 10-month SMA because monthly data are more easily available in earlier # pe...
# filters DEMs by mask DEMs = get.DEM(tls, lidar, minimum, shadow.mask) #Make Line Profile par(mfrow = c(2, 2)) profile.tls(DEMs$TLS, DEMs$LiDAR, DEMs$UAS, "Shadow") profile.uas(DEMs$TLS, DEMs$LiDAR, DEMs$UAS, "Shadow") # Make error profiles error.tls(DEMs$TLS, DEMs$UAS, "Shadow") error.uas(DEMs$TLS, DEMs$U...
/CODE/Main.R
no_license
brdavi2675/capsoneData
R
false
false
893
r
# filters DEMs by mask DEMs = get.DEM(tls, lidar, minimum, shadow.mask) #Make Line Profile par(mfrow = c(2, 2)) profile.tls(DEMs$TLS, DEMs$LiDAR, DEMs$UAS, "Shadow") profile.uas(DEMs$TLS, DEMs$LiDAR, DEMs$UAS, "Shadow") # Make error profiles error.tls(DEMs$TLS, DEMs$UAS, "Shadow") error.uas(DEMs$TLS, DEMs$U...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fromSource.R \name{composeFromSource} \alias{composeFromSource} \title{Compose a Acumos microservice from its source file} \usage{ composeFromSource( file = "acumos.R", name = "R Component", componentVersion = "unknown version", outpu...
/man/composeFromSource.Rd
permissive
sambaala/R-acumos
R
false
true
2,125
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/fromSource.R \name{composeFromSource} \alias{composeFromSource} \title{Compose a Acumos microservice from its source file} \usage{ composeFromSource( file = "acumos.R", name = "R Component", componentVersion = "unknown version", outpu...
setwd("/Users/paleolab/babySTEPPS/") library(nimble) library(splines) load("add.bacon2.Rdata") source(paste0('~/babystepps/Code/',"bs_nimble.R")) if(length(which(colnames(Y)=='PINUSX'))>0){ Y = Y[,-3] counts = counts[,-3] } code <- nimbleCode({ #delta ~ dunif(0,1000) for(r in 1:R){ for(i in 1:I){ ...
/Development_Code/babystepps_nimble_crc.R
permissive
PalEON-Project/ReFAB
R
false
false
8,668
r
setwd("/Users/paleolab/babySTEPPS/") library(nimble) library(splines) load("add.bacon2.Rdata") source(paste0('~/babystepps/Code/',"bs_nimble.R")) if(length(which(colnames(Y)=='PINUSX'))>0){ Y = Y[,-3] counts = counts[,-3] } code <- nimbleCode({ #delta ~ dunif(0,1000) for(r in 1:R){ for(i in 1:I){ ...
make_fig_mean_quant_qual <- function(coefficient_averages, filename, ...){ require(ggplot2) quant_qual <- coefficient_averages %>% dplyr::group_by(scale, pollen_category, term, sample_n) %>% dplyr::mutate(sample_n2 = 1:n()) %>% dplyr::select(pollen_category, term, sample_n, sample_n2, estimate) %>% ...
/presentations/abc2018/figures_code/fig_quant_qual.R
no_license
efcaguab/pollen-competition
R
false
false
4,325
r
make_fig_mean_quant_qual <- function(coefficient_averages, filename, ...){ require(ggplot2) quant_qual <- coefficient_averages %>% dplyr::group_by(scale, pollen_category, term, sample_n) %>% dplyr::mutate(sample_n2 = 1:n()) %>% dplyr::select(pollen_category, term, sample_n, sample_n2, estimate) %>% ...