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
acf2=function(series,max.lag=NULL){ num=length(series) if (is.null(max.lag)) max.lag=ceiling(10+sqrt(num)) if (max.lag > (num-1)) stop("Number of lags exceeds number of observations") ACF=acf(series, max.lag, plot=FALSE)$acf[-1] PACF=pacf(series, max.lag, plot=FALSE)$acf LAG=1:max.lag/frequency(series...
/Olive/R/acf2.R
no_license
milhinhos/MZ-Olive
R
false
false
892
r
acf2=function(series,max.lag=NULL){ num=length(series) if (is.null(max.lag)) max.lag=ceiling(10+sqrt(num)) if (max.lag > (num-1)) stop("Number of lags exceeds number of observations") ACF=acf(series, max.lag, plot=FALSE)$acf[-1] PACF=pacf(series, max.lag, plot=FALSE)$acf LAG=1:max.lag/frequency(series...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hcrdata-package.R \docType{package} \name{hcrdata-package} \alias{hcrdata} \alias{hcrdata-package} \title{hcrdata: Uniform Interface to UNHCR Data} \description{ This addin is designed to conveniently wrappe calls for data API to be used by U...
/man/hcrdata-package.Rd
no_license
galalH/hcrdata
R
false
true
686
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/hcrdata-package.R \docType{package} \name{hcrdata-package} \alias{hcrdata} \alias{hcrdata-package} \title{hcrdata: Uniform Interface to UNHCR Data} \description{ This addin is designed to conveniently wrappe calls for data API to be used by U...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R, R/documentation.R, % R/two_samples.R \name{kuiper_stat} \alias{kuiper_stat} \alias{kuiper_test} \title{Kuiper Test} \usage{ kuiper_stat(a, b, power = 1) kuiper_test(a, b, nboots = 2000, p = default.p) } \arguments{ \item{a}{...
/man/kuiper_test.Rd
no_license
brenthueth/twosamples
R
false
true
1,385
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/RcppExports.R, R/documentation.R, % R/two_samples.R \name{kuiper_stat} \alias{kuiper_stat} \alias{kuiper_test} \title{Kuiper Test} \usage{ kuiper_stat(a, b, power = 1) kuiper_test(a, b, nboots = 2000, p = default.p) } \arguments{ \item{a}{...
simdata <- function(n, m_per_level, sd_intercept, sd_slope, family = c("gaussian", "binomial"), seed) { set.seed(seed) total_n <- n * prod(m_per_level) n_levels <- length(m_per_level) groups <- Map(function(n, e) rep(seq_len(n), each = e), cumprod(m_per_level), ...
/R/simdata.R
permissive
zhangns07/r-mbest
R
false
false
1,218
r
simdata <- function(n, m_per_level, sd_intercept, sd_slope, family = c("gaussian", "binomial"), seed) { set.seed(seed) total_n <- n * prod(m_per_level) n_levels <- length(m_per_level) groups <- Map(function(n, e) rep(seq_len(n), each = e), cumprod(m_per_level), ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/max.R \name{max} \alias{max} \title{fun_name} \usage{ max(params) } \arguments{ \item{param}{fun_name} } \description{ kolejna funkcja podmieniona } \keyword{Gruba} \keyword{Przy} \keyword{boski} \keyword{chillout} \keyword{piwerku} \keyword{...
/man/max.Rd
no_license
granatb/RapeR
R
false
true
360
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/max.R \name{max} \alias{max} \title{fun_name} \usage{ max(params) } \arguments{ \item{param}{fun_name} } \description{ kolejna funkcja podmieniona } \keyword{Gruba} \keyword{Przy} \keyword{boski} \keyword{chillout} \keyword{piwerku} \keyword{...
####Take Time Series Object and Turn Into DF ###Input Time Series ###Output: Data Frame library("dplyr") library("scales") ##use for rescaling function timeSeriestoDF = function(ts) { newDF = data.frame(units=as.matrix(ts), date=as.Date(ts)) %>% mutate(monthNum = month(date)) %>% mutate(Month = mo...
/timeSeriesToDF.R
no_license
flyaflya/contrail
R
false
false
693
r
####Take Time Series Object and Turn Into DF ###Input Time Series ###Output: Data Frame library("dplyr") library("scales") ##use for rescaling function timeSeriestoDF = function(ts) { newDF = data.frame(units=as.matrix(ts), date=as.Date(ts)) %>% mutate(monthNum = month(date)) %>% mutate(Month = mo...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/eq_create_label.R \name{eq_create_label} \alias{eq_create_label} \title{eq_create_label} \usage{ eq_create_label(data, location = "LOCATION_NAME", magnitude = "EQ_PRIMARY", total_deaths = "TOTAL_DEATHS") } \arguments{ \item{data}{A Datafram...
/man/eq_create_label.Rd
no_license
ronybsulca/earthquakeGeoms
R
false
true
1,529
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/eq_create_label.R \name{eq_create_label} \alias{eq_create_label} \title{eq_create_label} \usage{ eq_create_label(data, location = "LOCATION_NAME", magnitude = "EQ_PRIMARY", total_deaths = "TOTAL_DEATHS") } \arguments{ \item{data}{A Datafram...
# Test GCAT processing of an example multiplate file with default settings as of revision 537 INPUT.FILE = system.file("extdata/default_examples","multi_test_YYYY_MM_DD_HH_MM_SS.csv",package="GCAT") OUTPUT.DIR = paste(getwd(),"GCAT_test_out_multiplate.1",sep="/") library(GCAT) context("Multiplate example with parame...
/R/GCAT/tests/testthat/test.multiplate.1.R
no_license
ybukhman/GCAT
R
false
false
1,442
r
# Test GCAT processing of an example multiplate file with default settings as of revision 537 INPUT.FILE = system.file("extdata/default_examples","multi_test_YYYY_MM_DD_HH_MM_SS.csv",package="GCAT") OUTPUT.DIR = paste(getwd(),"GCAT_test_out_multiplate.1",sep="/") library(GCAT) context("Multiplate example with parame...
library(caret) library(splines) library(mgcv) library(tidyverse) library(ggplot2) library(glmnet) library(pls) library(randomForest) library(MASS) #====== # data Transformation # there are 80 unique departments and we need to group them into smaller category # base on their mean sales dev.off() df = read_csv("data/m...
/models.R
no_license
haokunyuan/DS2_Midterm
R
false
false
9,225
r
library(caret) library(splines) library(mgcv) library(tidyverse) library(ggplot2) library(glmnet) library(pls) library(randomForest) library(MASS) #====== # data Transformation # there are 80 unique departments and we need to group them into smaller category # base on their mean sales dev.off() df = read_csv("data/m...
# Generated Automatically: DO NOT EDIT #' Provider Taxonomy #' #' Provider Codes, last updated October 1, 2019 from https://data.cms.gov/Medicare-Enrollment/CROSSWALK-MEDICARE-PROVIDER-SUPPLIER-to-HEALTHCARE/j75i-rw8y #' #' Important Notes: #' #' Medicare no longer enrolls the provider type: Voluntary Health or Charita...
/R/MDCR_PROVIDER_TAXONOMY.R
permissive
dewittpe/cms.codes
R
false
false
2,817
r
# Generated Automatically: DO NOT EDIT #' Provider Taxonomy #' #' Provider Codes, last updated October 1, 2019 from https://data.cms.gov/Medicare-Enrollment/CROSSWALK-MEDICARE-PROVIDER-SUPPLIER-to-HEALTHCARE/j75i-rw8y #' #' Important Notes: #' #' Medicare no longer enrolls the provider type: Voluntary Health or Charita...
#' @name prelimstats #' @title Preliminary Statistics #' @usage #' prelimstats(dosecolumn="", #' tests=c("outlier", "bartlett", "shapiro", "chisquare", "jonckheere"), #' data=NA) #' @description #' This function calculates and displays the p values for the requested distribution tests. #' @det...
/drsmooth/R/prelimstats.r
no_license
ingted/R-Examples
R
false
false
3,538
r
#' @name prelimstats #' @title Preliminary Statistics #' @usage #' prelimstats(dosecolumn="", #' tests=c("outlier", "bartlett", "shapiro", "chisquare", "jonckheere"), #' data=NA) #' @description #' This function calculates and displays the p values for the requested distribution tests. #' @det...
\name{coffee} \Rdversion{1.1} \alias{coffee} \concept{artifical data} \concept{causal inference} \concept{spida 2009} \concept{measurement error} \docType{data} \title{ Artifcial data set on Coffee Consumption, Heart Damage Index and Stress } \description{ Artifical data on 20 subjects to illustrate issues ...
/man/coffee.Rd
no_license
gmonette/p3d
R
false
false
1,312
rd
\name{coffee} \Rdversion{1.1} \alias{coffee} \concept{artifical data} \concept{causal inference} \concept{spida 2009} \concept{measurement error} \docType{data} \title{ Artifcial data set on Coffee Consumption, Heart Damage Index and Stress } \description{ Artifical data on 20 subjects to illustrate issues ...
## Read data sets testData <- read.table("test/X_test.txt") trainData <- read.table("train/X_train.txt") X <- rbind(testData, trainData) rm(testData) rm(trainData) ## Read subjects testSub <- read.table("test/subject_test.txt") trainSub <- read.table("train/subject_train.txt") S <- rbind(testSub, trainSub) rm(testS...
/run_analysis.R
no_license
keyangzhang/Getting-and-Cleaning-Data-Project
R
false
false
1,795
r
## Read data sets testData <- read.table("test/X_test.txt") trainData <- read.table("train/X_train.txt") X <- rbind(testData, trainData) rm(testData) rm(trainData) ## Read subjects testSub <- read.table("test/subject_test.txt") trainSub <- read.table("train/subject_train.txt") S <- rbind(testSub, trainSub) rm(testS...
\name{coef.binseg_normal} \alias{coef.binseg_normal} \title{coef binseg normal} \description{Compute a data table of segment start/end/mean values for all models given by \code{segments}.} \usage{\method{coef}{binseg_normal}(object, segments = 1:min(nrow(object), 10), ...)} \arguments{ \item{object}{dat...
/htmls/binsegRcpp/man/coef.binseg_normal.Rd
permissive
akhikolla/akhikolla.github.io
R
false
false
552
rd
\name{coef.binseg_normal} \alias{coef.binseg_normal} \title{coef binseg normal} \description{Compute a data table of segment start/end/mean values for all models given by \code{segments}.} \usage{\method{coef}{binseg_normal}(object, segments = 1:min(nrow(object), 10), ...)} \arguments{ \item{object}{dat...
library(caret) ### Name: bagEarth ### Title: Bagged Earth ### Aliases: bagEarth print.bagEarth bagEarth.default bagEarth.formula ### Keywords: regression ### ** Examples ## Not run: ##D library(mda) ##D library(earth) ##D data(trees) ##D fit1 <- earth(x = trees[,-3], y = trees[,3]) ##D set.seed(2189) ##D fit2 <- b...
/data/genthat_extracted_code/caret/examples/bagEarth.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
387
r
library(caret) ### Name: bagEarth ### Title: Bagged Earth ### Aliases: bagEarth print.bagEarth bagEarth.default bagEarth.formula ### Keywords: regression ### ** Examples ## Not run: ##D library(mda) ##D library(earth) ##D data(trees) ##D fit1 <- earth(x = trees[,-3], y = trees[,3]) ##D set.seed(2189) ##D fit2 <- b...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/addFasting_ly.R \name{addFasting_ly} \alias{addFasting_ly} \title{addFasting_ly} \usage{ addFasting_ly(p, data, addFasting = TRUE, addFastingAnnot = TRUE) } \arguments{ \item{p}{current plot_ly plot} \item{data}{data.frame with BG values in ...
/BG.library/man/addFasting_ly.Rd
no_license
rscmbc3/BG.library
R
false
true
1,343
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/addFasting_ly.R \name{addFasting_ly} \alias{addFasting_ly} \title{addFasting_ly} \usage{ addFasting_ly(p, data, addFasting = TRUE, addFastingAnnot = TRUE) } \arguments{ \item{p}{current plot_ly plot} \item{data}{data.frame with BG values in ...
p = bio.lobster::load.environment() la() assessment.year = 2018 ########### check the year ############### !!!!!!!!!!! p$syr = 1989 p$yrs = p$syr:assessment.year figdir = file.path(project.datadirectory("bio.lobster"),"figures","LFA3438Framework2019") p$lfas = c("27", "28", "29", "30",...
/inst/Frameworks/LFA3438Framework/LFA34-38Framework/LFA3438Framework2018.R
no_license
LobsterScience/bio.lobster
R
false
false
40,533
r
p = bio.lobster::load.environment() la() assessment.year = 2018 ########### check the year ############### !!!!!!!!!!! p$syr = 1989 p$yrs = p$syr:assessment.year figdir = file.path(project.datadirectory("bio.lobster"),"figures","LFA3438Framework2019") p$lfas = c("27", "28", "29", "30",...
.onAttach <- function(libname, pkgname) { cat(" This package presumes the AWS CLI (command line interface) is installed on your machine and that AWS has been correctly added to the enviroment variable path.\n To add the bin directory of aws to the path, use the supplied function: add.aws.path\n. NOTE: The path enviro...
/R/zzz.R
no_license
lalas/awsConnect
R
false
false
781
r
.onAttach <- function(libname, pkgname) { cat(" This package presumes the AWS CLI (command line interface) is installed on your machine and that AWS has been correctly added to the enviroment variable path.\n To add the bin directory of aws to the path, use the supplied function: add.aws.path\n. NOTE: The path enviro...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/add_n.R \name{add_n.tbl_summary} \alias{add_n.tbl_summary} \alias{add_n.tbl_svysummary} \title{Add column with N} \usage{ \method{add_n}{tbl_summary}( x, statistic = "{n}", col_label = "**N**", footnote = FALSE, last = FALSE, miss...
/man/add_n.tbl_summary.Rd
permissive
clara1989/gtsummary
R
false
true
3,090
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/add_n.R \name{add_n.tbl_summary} \alias{add_n.tbl_summary} \alias{add_n.tbl_svysummary} \title{Add column with N} \usage{ \method{add_n}{tbl_summary}( x, statistic = "{n}", col_label = "**N**", footnote = FALSE, last = FALSE, miss...
#' Visualize data.frame #' #' Plots all variables of a data.frame in groups of their classes (numeric, #' factor/character, date) #' #' @param df data.frame #' @param sample integer #' @param no_graphs integer #' @param save Boolean #' @param df_name character, must end with "*png" #' #' @return NULL, prints plots #' #...
/R/SR_visualize_df.R
permissive
samuelreuther/SRfunctions
R
false
false
4,876
r
#' Visualize data.frame #' #' Plots all variables of a data.frame in groups of their classes (numeric, #' factor/character, date) #' #' @param df data.frame #' @param sample integer #' @param no_graphs integer #' @param save Boolean #' @param df_name character, must end with "*png" #' #' @return NULL, prints plots #' #...
library(mvtnorm) f = matrix(rep(seq(min(partLoc$absolute_frequency), 2, length.out = 1000), 1000), 1000, 1000) d = t(matrix(rep(seq(min(partLoc$absolute_duration), 1, length.out = 1000), 1000), 1000, 1000)) total.time = f * d durn.DEN.Child = partLoc$absolute_duration[paste(partLoc$pathogen,partLoc$category) ==...
/code/figTimeOTROS.R
no_license
TAlexPerkins/fever_mobility
R
false
false
17,375
r
library(mvtnorm) f = matrix(rep(seq(min(partLoc$absolute_frequency), 2, length.out = 1000), 1000), 1000, 1000) d = t(matrix(rep(seq(min(partLoc$absolute_duration), 1, length.out = 1000), 1000), 1000, 1000)) total.time = f * d durn.DEN.Child = partLoc$absolute_duration[paste(partLoc$pathogen,partLoc$category) ==...
\name{HBP-package} \alias{HBP-package} \alias{HBP} \docType{package} \title{ What the package does (short line) ~~ package title ~~ } \description{ More about what it does (maybe more than one line) ~~ A concise (1-5 lines) description of the package ~~ } \details{ \tabular{ll}{ Package: \tab HBP\cr Type: \tab Package\...
/man/HBP-package.Rd
no_license
talgalili/HBP
R
false
false
1,017
rd
\name{HBP-package} \alias{HBP-package} \alias{HBP} \docType{package} \title{ What the package does (short line) ~~ package title ~~ } \description{ More about what it does (maybe more than one line) ~~ A concise (1-5 lines) description of the package ~~ } \details{ \tabular{ll}{ Package: \tab HBP\cr Type: \tab Package\...
library(ggplot2) ## called from geom or ## called independently ## called with stat_ ## implicit calling: p <- ggplot(iris, aes(x = Sepal.Width)) p + geom_histogram() # implicit call of stat_bin p + geom_bar() # default stat is bin p + stat_bin() # s...
/ggplot_statistics.r
no_license
tiborh/r
R
false
false
5,136
r
library(ggplot2) ## called from geom or ## called independently ## called with stat_ ## implicit calling: p <- ggplot(iris, aes(x = Sepal.Width)) p + geom_histogram() # implicit call of stat_bin p + geom_bar() # default stat is bin p + stat_bin() # s...
%% File Name: mice.impute.plausible.values.Rd %% File Version: 0.54 \name{mice.impute.plausible.values} \alias{mice.impute.plausible.values} \title{ Plausible Value Imputation using Classical Test Theory and Based on Individual Likelihood } \description{ This imputation function performs unidimensional...
/man/mice.impute.plausible.values.Rd
no_license
cran/miceadds
R
false
false
12,997
rd
%% File Name: mice.impute.plausible.values.Rd %% File Version: 0.54 \name{mice.impute.plausible.values} \alias{mice.impute.plausible.values} \title{ Plausible Value Imputation using Classical Test Theory and Based on Individual Likelihood } \description{ This imputation function performs unidimensional...
context("simulate, estDstarM, estND, estObserved and methods.") set.seed(42) tt <- seq(0, 5, .2) pdfND <- dbeta(tt, 10, 30) n <- 100 pars <- c(1, 2, .5, .5, .5) dat <- simData(n, pars, tt, pdfND) fixed <- matrix(c('z1', .5, 'sz1', .5, 'sv1', .5), 2, 3) test_that("simulation works", { sum <- summary(dat) expect_eq...
/fuzzedpackages/DstarM/tests/testthat/test-simulate.R
no_license
akhikolla/testpackages
R
false
false
9,601
r
context("simulate, estDstarM, estND, estObserved and methods.") set.seed(42) tt <- seq(0, 5, .2) pdfND <- dbeta(tt, 10, 30) n <- 100 pars <- c(1, 2, .5, .5, .5) dat <- simData(n, pars, tt, pdfND) fixed <- matrix(c('z1', .5, 'sz1', .5, 'sv1', .5), 2, 3) test_that("simulation works", { sum <- summary(dat) expect_eq...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/C5.0.R \name{C5.0Control} \alias{C5.0Control} \title{Control for C5.0 Models} \usage{ C5.0Control( subset = TRUE, bands = 0, winnow = FALSE, noGlobalPruning = FALSE, CF = 0.25, minCases = 2, fuzzyThreshold = FALSE, sample = 0,...
/man/C5.0Control.Rd
no_license
topepo/C5.0
R
false
true
2,880
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/C5.0.R \name{C5.0Control} \alias{C5.0Control} \title{Control for C5.0 Models} \usage{ C5.0Control( subset = TRUE, bands = 0, winnow = FALSE, noGlobalPruning = FALSE, CF = 0.25, minCases = 2, fuzzyThreshold = FALSE, sample = 0,...
rparTune=function(formula,data,cvid,predtype='class',cpvec,...) ##' formula,data: self-explanatory ##' cvid: a vector of CV group assignments. Its length must equal the length of 'data' ##' predtype: passed on to predict.rpart as 'type' ##' cpvec: vector of Cp values to try out ##' ...: arguments passed on to rpar...
/06_Lecture_rpartCV.r
no_license
guywithsocks/StatR
R
false
false
805
r
rparTune=function(formula,data,cvid,predtype='class',cpvec,...) ##' formula,data: self-explanatory ##' cvid: a vector of CV group assignments. Its length must equal the length of 'data' ##' predtype: passed on to predict.rpart as 'type' ##' cpvec: vector of Cp values to try out ##' ...: arguments passed on to rpar...
library('plotrix') total = 3220928 assigned = 2211826 unassigned = 1009102 genus= 1741930 above_genus= 469896 cellular = 2199641 virus = 12185 archaea = 2021856 bacteria = 138349 eukaryota = 395 cellular_root = 39041 ahs = 1984877 anhs = 36979 bhs = 118858 bnhs = 19491 ahsgenus ...
/pie_chart2.R
no_license
mascoma/make_graph
R
false
false
2,949
r
library('plotrix') total = 3220928 assigned = 2211826 unassigned = 1009102 genus= 1741930 above_genus= 469896 cellular = 2199641 virus = 12185 archaea = 2021856 bacteria = 138349 eukaryota = 395 cellular_root = 39041 ahs = 1984877 anhs = 36979 bhs = 118858 bnhs = 19491 ahsgenus ...
library(shiny) dataset<-read.csv("Shiny_dataset.csv") ui<- fluidPage(titlePanel(title="TAMU Baseball Shiny App"), tabsetPanel(id="Select Data", tabPanel("Simulated Pitch", sidebarPanel(sliderInput(inputId="askvelocity",label="Pitch Veloity",0,100,0), ...
/Shiney app.R
no_license
aross123/Baseball_Shiny_app
R
false
false
7,939
r
library(shiny) dataset<-read.csv("Shiny_dataset.csv") ui<- fluidPage(titlePanel(title="TAMU Baseball Shiny App"), tabsetPanel(id="Select Data", tabPanel("Simulated Pitch", sidebarPanel(sliderInput(inputId="askvelocity",label="Pitch Veloity",0,100,0), ...
x = hist(rnorm(1000)) y = 1:10 plot(mtcars[,1],mtcars[,3])
/script.R
no_license
seb951/test_overleaf
R
false
false
60
r
x = hist(rnorm(1000)) y = 1:10 plot(mtcars[,1],mtcars[,3])
a04768a219af1307c8ffa92010c19e31 x245.0.qdimacs 7599 22961
/code/dcnf-ankit-optimized/Results/QBFLIB-2018/E1+A1/Database/Faber-Leone-Maratea-Ricca/Strategic_Companies/x245.0/x245.0.R
no_license
arey0pushpa/dcnf-autarky
R
false
false
58
r
a04768a219af1307c8ffa92010c19e31 x245.0.qdimacs 7599 22961
library(ape) testtree <- read.tree("7521_4.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="7521_4_unrooted.txt")
/codeml_files/newick_trees_processed/7521_4/rinput.R
no_license
DaniBoo/cyanobacteria_project
R
false
false
135
r
library(ape) testtree <- read.tree("7521_4.txt") unrooted_tr <- unroot(testtree) write.tree(unrooted_tr, file="7521_4_unrooted.txt")
# This is the user-interface scriptn of your Shiny web application. # Find out more about building applications with Shiny here: # http://shiny.rstudio.com/ # # Create a dashboard page dashboardPage( dashboardHeader(title = "Row layout"), dashboardSidebar(), dashboardBody( # Create text pa...
/Week14/ui.R
no_license
mazencs/cs695-group2
R
false
false
6,108
r
# This is the user-interface scriptn of your Shiny web application. # Find out more about building applications with Shiny here: # http://shiny.rstudio.com/ # # Create a dashboard page dashboardPage( dashboardHeader(title = "Row layout"), dashboardSidebar(), dashboardBody( # Create text pa...
modelInfo <- list(label = "Random Forest", library = "randomForest", loop = NULL, type = c("Classification", "Regression"), parameters = data.frame(parameter = "mtry", class = "numeric", ...
/data/caret_models/rf.R
permissive
BTopcuoglu/code_review
R
false
false
3,602
r
modelInfo <- list(label = "Random Forest", library = "randomForest", loop = NULL, type = c("Classification", "Regression"), parameters = data.frame(parameter = "mtry", class = "numeric", ...
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/gets.R \name{get_item} \alias{get_item} \alias{get_property} \title{Retrieve specific Wikidata items or properties} \usage{ get_item(id, ...) get_property(id, ...) } \arguments{ \item{id}{the ID number of the item or property you're ...
/man/get_item.Rd
permissive
parthasen/WikidataR
R
false
false
969
rd
% Generated by roxygen2 (4.1.0): do not edit by hand % Please edit documentation in R/gets.R \name{get_item} \alias{get_item} \alias{get_property} \title{Retrieve specific Wikidata items or properties} \usage{ get_item(id, ...) get_property(id, ...) } \arguments{ \item{id}{the ID number of the item or property you're ...
############# Written by JMA ############# Written by JMA ############# 11/04/2020 rm(list=ls(all=TRUE)) library(data.table) library(reshape2) library(DemoDecomp) library(ggplot2) # Loading data load('Data/Single_mx.RData') # source functions source('R/Functionsl.R') #selection of states select <- data.table(read.cs...
/R/Decomp_Race.R
no_license
jmaburto/Kristensen_etal_Variation
R
false
false
2,701
r
############# Written by JMA ############# Written by JMA ############# 11/04/2020 rm(list=ls(all=TRUE)) library(data.table) library(reshape2) library(DemoDecomp) library(ggplot2) # Loading data load('Data/Single_mx.RData') # source functions source('R/Functionsl.R') #selection of states select <- data.table(read.cs...
##This is a function that will embed local dependencies in item responses (in particular, it's a kind of 'hot hand' effect) sim_ld<-function(N=1000,n=10, per=.1 #this will be a parameter such that your performance on the last item influences your performance on this item ) { th<-rn...
/cG/ld.R
no_license
davidnathanlang/252L
R
false
false
1,387
r
##This is a function that will embed local dependencies in item responses (in particular, it's a kind of 'hot hand' effect) sim_ld<-function(N=1000,n=10, per=.1 #this will be a parameter such that your performance on the last item influences your performance on this item ) { th<-rn...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pathcat.R \name{is_absolute_path} \alias{is_absolute_path} \title{Checks whether a given path is absolute, or not} \usage{ is_absolute_path(path) } \arguments{ \item{path}{Path to assess.} } \value{ Boolean } \description{ Checks whether a gi...
/man/is_absolute_path.Rd
no_license
adamryczkowski/pathcat
R
false
true
351
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/pathcat.R \name{is_absolute_path} \alias{is_absolute_path} \title{Checks whether a given path is absolute, or not} \usage{ is_absolute_path(path) } \arguments{ \item{path}{Path to assess.} } \value{ Boolean } \description{ Checks whether a gi...
#' get a variables' distinct values matrix #' #' get a variables' distinct values matrix. this function is typically used to determine #' those discrete variables whose distinct values' number is more than a threshold #' #' @param df the dataframe #' @param var.list the variables to be show,default: all variables #' @...
/data preprocessing/defineDataType.R
no_license
fangju2013/R_basicFunctions
R
false
false
3,663
r
#' get a variables' distinct values matrix #' #' get a variables' distinct values matrix. this function is typically used to determine #' those discrete variables whose distinct values' number is more than a threshold #' #' @param df the dataframe #' @param var.list the variables to be show,default: all variables #' @...
#' dropicols #' #' Drop columns prefixed by `i.*` these may be remenants of a join. #' #' @param x data.table #' #' @details #' #' During a merge/join matching columns in the two merge tables get a prefix. #' The i-argument recieves a prefix \code{i.}; these colmns may not be wanted. #' \code{dropicols} removes these c...
/R/dropicols.R
no_license
decisionpatterns/data.table.plus
R
false
false
586
r
#' dropicols #' #' Drop columns prefixed by `i.*` these may be remenants of a join. #' #' @param x data.table #' #' @details #' #' During a merge/join matching columns in the two merge tables get a prefix. #' The i-argument recieves a prefix \code{i.}; these colmns may not be wanted. #' \code{dropicols} removes these c...
# Data Preprocessing # Importing the dataset dataset = read.csv('50_Startups.csv') dataset$State = factor(dataset$State, levels = c('New York', 'California', 'Florida'), labels = c(1, 2, 3)) # install.packages('caTools') library(caTools) set.seed(123) split = sample...
/2 - Regression/2 - Multiple Linear Regression/1. Multiple Linear Regression.R
no_license
ShuvenduRoy/Machine-Learning-A-Z
R
false
false
788
r
# Data Preprocessing # Importing the dataset dataset = read.csv('50_Startups.csv') dataset$State = factor(dataset$State, levels = c('New York', 'California', 'Florida'), labels = c(1, 2, 3)) # install.packages('caTools') library(caTools) set.seed(123) split = sample...
\name{superimpose.lpp} \alias{superimpose.lpp} \title{Superimpose Several Point Patterns on Linear Network} \description{ Superimpose any number of point patterns on the same linear network. } \usage{ \method{superimpose}{lpp}(\dots, L=NULL) } \arguments{ \item{\dots}{ Any number of arguments, each of which...
/man/superimpose.lpp.Rd
no_license
chenjiaxun9/spatstat
R
false
false
2,689
rd
\name{superimpose.lpp} \alias{superimpose.lpp} \title{Superimpose Several Point Patterns on Linear Network} \description{ Superimpose any number of point patterns on the same linear network. } \usage{ \method{superimpose}{lpp}(\dots, L=NULL) } \arguments{ \item{\dots}{ Any number of arguments, each of which...
#' Create an discrete time simulation model #' #' This function takes as input a modelbuilder model and writes code #' for a discrete time deterministc simulator function #' #' @description The model needs to adhere to the structure specified by the modelbuilder package #' models built using the modelbuilder pack...
/R/generate_discrete.R
no_license
davan690/modelbuilder
R
false
false
8,596
r
#' Create an discrete time simulation model #' #' This function takes as input a modelbuilder model and writes code #' for a discrete time deterministc simulator function #' #' @description The model needs to adhere to the structure specified by the modelbuilder package #' models built using the modelbuilder pack...
power <- read.table("household_power_consumption.txt", skip = 1, sep = ";") mynames <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3") names(power) <- mynames power <- subset(power,power$Date %in% c("1/2/2007","2/2/2007"))...
/plot3.R
no_license
srgarces/ExData_Plotting1
R
false
false
1,253
r
power <- read.table("household_power_consumption.txt", skip = 1, sep = ";") mynames <- c("Date","Time","Global_active_power","Global_reactive_power","Voltage","Global_intensity","Sub_metering_1","Sub_metering_2","Sub_metering_3") names(power) <- mynames power <- subset(power,power$Date %in% c("1/2/2007","2/2/2007"))...
#Author: Fred Rahmanian # #call createPlot1() to create all four plots for this project #Assumptions: # 1) You must be running this app in the ~/Projects/data-sci-spec/ExData_Plotting1. Change setWorkingDir if # you want to run it in another dirs # 2) THere is a child dir called figure in the dir where you run this...
/plot1.R
no_license
farbodr/ExData_Plotting1
R
false
false
1,518
r
#Author: Fred Rahmanian # #call createPlot1() to create all four plots for this project #Assumptions: # 1) You must be running this app in the ~/Projects/data-sci-spec/ExData_Plotting1. Change setWorkingDir if # you want to run it in another dirs # 2) THere is a child dir called figure in the dir where you run this...
# Team Members: Jacky Chen, Surbhi Modi, Ying Zhang, Qing Wu # Sigma Marketing Insights - Big Toys Insurance rm(list = ls()) setwd("~/Google Drive/UofR/R/Marketing Projects/Big Toys") library(dplyr) library(ggplot2) library(cluster) library(fpc) bigToysCust <- read.csv('Customer Database - Big Toys_CEXAppend.csv', h...
/JackyChen_MarketingProjects.R
no_license
chenjacky/UofR-Assignment-R-Samples
R
false
false
6,513
r
# Team Members: Jacky Chen, Surbhi Modi, Ying Zhang, Qing Wu # Sigma Marketing Insights - Big Toys Insurance rm(list = ls()) setwd("~/Google Drive/UofR/R/Marketing Projects/Big Toys") library(dplyr) library(ggplot2) library(cluster) library(fpc) bigToysCust <- read.csv('Customer Database - Big Toys_CEXAppend.csv', h...
testlist <- list(A = structure(c(2.45606005698758e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
/multivariance/inst/testfiles/match_rows/AFL_match_rows/match_rows_valgrind_files/1613109610-test.R
no_license
akhikolla/updatedatatype-list3
R
false
false
257
r
testlist <- list(A = structure(c(2.45606005698758e+77, 9.53818252170339e+295, 1.22810536108214e+146, 4.12396251261199e-221, 0, 0, 0), .Dim = c(1L, 7L)), B = structure(0, .Dim = c(1L, 1L))) result <- do.call(multivariance:::match_rows,testlist) str(result)
#' setSelection sets the banker parameters of a parameterDef object. setSelection are "call by reference", so assignment is not needed to update the parameterDef object. In other words, they will overwrite the value of its argument(parameterDef object). #' parameterDef is a short hand of "parameter definition". It def...
/ezsim/R/setSelection.parameterDef.r
no_license
ingted/R-Examples
R
false
false
3,284
r
#' setSelection sets the banker parameters of a parameterDef object. setSelection are "call by reference", so assignment is not needed to update the parameterDef object. In other words, they will overwrite the value of its argument(parameterDef object). #' parameterDef is a short hand of "parameter definition". It def...
library(DiPs) ### Name: check ### Title: Check standardized mean differences (SMDs) of the matched data ### set. ### Aliases: check ### ** Examples # To run this example, you must load the optmatch package. ## No test: data("nh0506Homocysteine") attach(nh0506Homocysteine) X<-cbind(female,age,black,education,pove...
/data/genthat_extracted_code/DiPs/examples/check.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
697
r
library(DiPs) ### Name: check ### Title: Check standardized mean differences (SMDs) of the matched data ### set. ### Aliases: check ### ** Examples # To run this example, you must load the optmatch package. ## No test: data("nh0506Homocysteine") attach(nh0506Homocysteine) X<-cbind(female,age,black,education,pove...
# Exploratory Data Analysis - Final Course Project Submission ## Plot No. 4 - Across the United States, how have emissions from coal ## combustion-related sources changed from 1999–2008? ### Download data files, read data and remove temporary folders library (dplyr) library (ggplot2) library (RColorBrewer) library (...
/plot4.R
no_license
abdisgood/EDA_Final_Course_Project
R
false
false
2,562
r
# Exploratory Data Analysis - Final Course Project Submission ## Plot No. 4 - Across the United States, how have emissions from coal ## combustion-related sources changed from 1999–2008? ### Download data files, read data and remove temporary folders library (dplyr) library (ggplot2) library (RColorBrewer) library (...
library(shiny) library(bs4Dash) vbox1 <- bs4ValueBox( value = 150, subtitle = "New orders", status = "primary", icon = "shopping-cart", href = "#" ) vbox2 <- bs4ValueBox( elevation = 4, value = "53%", subtitle = "New orders", status = "danger", icon = "cogs" ) vbox3 <- bs4ValueBox( value = "44"...
/R/shiny/cards.R
permissive
piyayut-ch/snippet
R
false
false
2,284
r
library(shiny) library(bs4Dash) vbox1 <- bs4ValueBox( value = 150, subtitle = "New orders", status = "primary", icon = "shopping-cart", href = "#" ) vbox2 <- bs4ValueBox( elevation = 4, value = "53%", subtitle = "New orders", status = "danger", icon = "cogs" ) vbox3 <- bs4ValueBox( value = "44"...
#' REF 2014 package #' #' Access to data from the Research Excellence Framework 2014 #' #' See \url{https://github.com/Selbosh/ref2014} for more info. #' #' @docType package #' @name ref2014 NULL ## quiets concerns of R CMD check re: the .'s that appear in pipelines if(getRversion() >= "2.15.1") utils::globalVariable...
/R/ref2014.R
permissive
Selbosh/ref2014
R
false
false
330
r
#' REF 2014 package #' #' Access to data from the Research Excellence Framework 2014 #' #' See \url{https://github.com/Selbosh/ref2014} for more info. #' #' @docType package #' @name ref2014 NULL ## quiets concerns of R CMD check re: the .'s that appear in pipelines if(getRversion() >= "2.15.1") utils::globalVariable...
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 ### Efficient log-linear cumulative median. cum_median_interface <- function(data_vec, weight_vec) { .Call(`_binsegRcpp_cum_median_interface`, data_vec, weight_vec) } ### Use depth first s...
/R/RcppExports.R
no_license
tdhock/binsegRcpp
R
false
false
1,275
r
# Generated by using Rcpp::compileAttributes() -> do not edit by hand # Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393 ### Efficient log-linear cumulative median. cum_median_interface <- function(data_vec, weight_vec) { .Call(`_binsegRcpp_cum_median_interface`, data_vec, weight_vec) } ### Use depth first s...
#' Univariate average claim severity #' #' @description Average claim frequency for discrete risk factors in an insurance portfolio. For each level of the risk factor the average claim severity is equal to the ratio between the severity and the number of claims. #' #' @param df data.frame with insurance portfolio #' @p...
/R/univariate_2avgsev.R
no_license
emailhy/insurancerating
R
false
false
2,409
r
#' Univariate average claim severity #' #' @description Average claim frequency for discrete risk factors in an insurance portfolio. For each level of the risk factor the average claim severity is equal to the ratio between the severity and the number of claims. #' #' @param df data.frame with insurance portfolio #' @p...
## Put comments here that give an overall description of what your ## functions do ## Below are two functions that are used to create a special object ##that stores a numeric vector and cache's its mean. ##this function creates a special matrix object and can cache its inverse makeCacheMatrix <- function(x = ...
/cachematrix.R
no_license
anishpai/ProgrammingAssignment2
R
false
false
1,000
r
## Put comments here that give an overall description of what your ## functions do ## Below are two functions that are used to create a special object ##that stores a numeric vector and cache's its mean. ##this function creates a special matrix object and can cache its inverse makeCacheMatrix <- function(x = ...
options(stringsAsFactors = FALSE) # library(plyr) library(stringr) library(knitr) library(sf) library(units) library(git2rdata) library(lubridate) # install watina-package branch develop_fv # remotes::install_github("inbo/watina", # ref = "develop_fv") library(watina) # install n2khab-package ...
/src/meetnet/droogtemeetnet_script.R
no_license
inbo/n2khab-droogtemeetnet
R
false
false
102,277
r
options(stringsAsFactors = FALSE) # library(plyr) library(stringr) library(knitr) library(sf) library(units) library(git2rdata) library(lubridate) # install watina-package branch develop_fv # remotes::install_github("inbo/watina", # ref = "develop_fv") library(watina) # install n2khab-package ...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{randomize} \alias{randomize} \title{Randomizing Data} \usage{ randomize(x, ...) } \arguments{ \item{x}{data to be permutated. It must be an object suitable to be passed to the function \code{\link{apply}}.} \item{...}{extra ar...
/man/randomize.Rd
no_license
pooranis/NMF
R
false
true
841
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/utils.R \name{randomize} \alias{randomize} \title{Randomizing Data} \usage{ randomize(x, ...) } \arguments{ \item{x}{data to be permutated. It must be an object suitable to be passed to the function \code{\link{apply}}.} \item{...}{extra ar...
# usethis::use_test("")
/tests/testthat/test-calibCert.R
no_license
cran/masscor
R
false
false
24
r
# usethis::use_test("")
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/genotypes.R \docType{data} \name{genotypes} \alias{genotypes} \title{Simulated genotypes} \format{ A matrix with 1000 rows and 466 columns. One row per individual. One column per SNP. } \usage{ genotypes } \description{ A genotype matrix that...
/man/genotypes.Rd
no_license
cran/seagull
R
false
true
1,109
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/genotypes.R \docType{data} \name{genotypes} \alias{genotypes} \title{Simulated genotypes} \format{ A matrix with 1000 rows and 466 columns. One row per individual. One column per SNP. } \usage{ genotypes } \description{ A genotype matrix that...
TtoR <-function(t, df) { return(sqrt((t^2)/(t^2+df))) } ZtoR <- function(z,N){ return(sqrt((z^2)/(z^2+N))) } Fn1toR <- function(f, dfd){ return(sqrt((f)/(f+dfd))) } Fn2toR <- function(f, dfd, dfn){ return(sqrt((dfn*f)/((dfn*f)+dfd))) } X21toR <- function(X2, N){ return(sqrt((X2^2)/N)) } X22toR <- function(X2,...
/()-to-r Converters.R
no_license
CreanzaLab/RepertoireSizeReproductiveSuccess
R
false
false
693
r
TtoR <-function(t, df) { return(sqrt((t^2)/(t^2+df))) } ZtoR <- function(z,N){ return(sqrt((z^2)/(z^2+N))) } Fn1toR <- function(f, dfd){ return(sqrt((f)/(f+dfd))) } Fn2toR <- function(f, dfd, dfn){ return(sqrt((dfn*f)/((dfn*f)+dfd))) } X21toR <- function(X2, N){ return(sqrt((X2^2)/N)) } X22toR <- function(X2,...
#' Steam achievments #' #' get steam achievment list #' @export #' @import data.table #' @import rjson #' @param key Steam API key #' @param id Steam user ID stmachieve<- function (key,id = "76561197973625640") { json_file1 <- "http://api.steampowered.com/ISteamUserStats/GetPlayerAchievements/v0001/?appid=440&k...
/R/achievments.R
no_license
drewlake/steamR
R
false
false
604
r
#' Steam achievments #' #' get steam achievment list #' @export #' @import data.table #' @import rjson #' @param key Steam API key #' @param id Steam user ID stmachieve<- function (key,id = "76561197973625640") { json_file1 <- "http://api.steampowered.com/ISteamUserStats/GetPlayerAchievements/v0001/?appid=440&k...
library(shiny) # Define server logic required to draw a histogram shinyServer(function(input, output) { demo.encounter = reactive({ s = input$table_rows_selected print(as.character(f.t.p.t.[s,])) }) output$dp_c = renderText({ demo.encounter()[1] }) output$de_i = renderText({ demo.encoun...
/server.R
no_license
MrityunjayKumar123/HealthCare-Shiny-App-for-Predicting-Readmissions
R
false
false
5,095
r
library(shiny) # Define server logic required to draw a histogram shinyServer(function(input, output) { demo.encounter = reactive({ s = input$table_rows_selected print(as.character(f.t.p.t.[s,])) }) output$dp_c = renderText({ demo.encounter()[1] }) output$de_i = renderText({ demo.encoun...
corr <- function(directory, threshold = 0) { files_list <- dir(directory, full.names = TRUE) #Empty data frame output <- numeric() for (i in files_list){ corval <- 0 data <- read.csv(i) #Bind CSV files in data value <- sum(complete.cases(data)) data <- data[complete.cases(data),] if (v...
/corr.R
no_license
Jon-T04/datasciencecoursera
R
false
false
754
r
corr <- function(directory, threshold = 0) { files_list <- dir(directory, full.names = TRUE) #Empty data frame output <- numeric() for (i in files_list){ corval <- 0 data <- read.csv(i) #Bind CSV files in data value <- sum(complete.cases(data)) data <- data[complete.cases(data),] if (v...
##Assignment is to practice caching data types in order to save run time #makeCacheMatrix: Function creates a special "matrix" object that can cache it's inverse #cacheSolve: Function computes the inverse of special matrix, returned by above function ##If the inverse is already calculated( and the matrix hasn't changed...
/cachematrix.R
no_license
Farkyster21/ProgrammingAssignment2
R
false
false
2,057
r
##Assignment is to practice caching data types in order to save run time #makeCacheMatrix: Function creates a special "matrix" object that can cache it's inverse #cacheSolve: Function computes the inverse of special matrix, returned by above function ##If the inverse is already calculated( and the matrix hasn't changed...
library(dplyr) library(ggplot2) library(tidytext) library(stringr) library(tidyverse) library(scales) ### EDA df <- read_csv("./data/df.csv") ## let's get rid of the irrelevant lines and unnest the test into tokens table(df$gender) ## the number of male characters seems to be overwhelming compared to female ones, le...
/text_analysis.R
no_license
zsofivamos/CEU_DS4
R
false
false
16,692
r
library(dplyr) library(ggplot2) library(tidytext) library(stringr) library(tidyverse) library(scales) ### EDA df <- read_csv("./data/df.csv") ## let's get rid of the irrelevant lines and unnest the test into tokens table(df$gender) ## the number of male characters seems to be overwhelming compared to female ones, le...
library(ggplot2) library(outlierensembles) library(DDoutlier) library(pROC) library(ROCR) set.seed(1) X <- data.frame(x1 = rnorm(100), x2 = rnorm(100), label = "Normal") oo <- data.frame(x1 = rnorm(5, mean = 2), x2 = rnorm(5, mean = 2), label = "Anomaly" ) X <- rbind.data.frame(X, oo) ggplot(X, aes(x1, x2)) + geom_p...
/2021-R-Ladies/script.R
no_license
sevvandi/Talks
R
false
false
3,700
r
library(ggplot2) library(outlierensembles) library(DDoutlier) library(pROC) library(ROCR) set.seed(1) X <- data.frame(x1 = rnorm(100), x2 = rnorm(100), label = "Normal") oo <- data.frame(x1 = rnorm(5, mean = 2), x2 = rnorm(5, mean = 2), label = "Anomaly" ) X <- rbind.data.frame(X, oo) ggplot(X, aes(x1, x2)) + geom_p...
# footrule matrix FootruleMatrix <- function(rankings, MergingDistance = c("Spearman", "Kendall"), n) { MergingDistance <- match.arg(MergingDistance, c("Spearman", "Kendall")) nrank <- ncol(rankings) if (length(rankings) != 0) { smdm <- matrix(0,...
/R/FootruleMatrix.R
no_license
zhangxiner2/GeneExpressionSignature
R
false
false
1,857
r
# footrule matrix FootruleMatrix <- function(rankings, MergingDistance = c("Spearman", "Kendall"), n) { MergingDistance <- match.arg(MergingDistance, c("Spearman", "Kendall")) nrank <- ncol(rankings) if (length(rankings) != 0) { smdm <- matrix(0,...
library(tidyverse) library(readr) library(readxl) library(lubridate) library(sp) library(rgdal) library(ggmap) library(maptools) library(raster) lep_all <- read_csv('~/urban-forest/data/lep_all.csv', col_names = T) tidytract2106_spatial <- read_csv('~/urban-forest/data/tidytract2016_spatial.csv', ...
/code for data tidying/Combining LEP and TidyTract for Shiny App.R
no_license
ds-civic-data/urban-forest
R
false
false
943
r
library(tidyverse) library(readr) library(readxl) library(lubridate) library(sp) library(rgdal) library(ggmap) library(maptools) library(raster) lep_all <- read_csv('~/urban-forest/data/lep_all.csv', col_names = T) tidytract2106_spatial <- read_csv('~/urban-forest/data/tidytract2016_spatial.csv', ...
library('ggplot2') library('forecast') library('tseries') library('tidyverse') library('rio') library(readxl) #ARIMA(43,1,43) data1 <- import("/Users/andre/OneDrive/Desktop/Facultate/LICENTA/Cod Algoritm/datenoi/iphonexs.csv") data1$DATES = as.Date(data1$Date) data1$Month <- format(data1[,"DATES"], "%m") ggplot(data1,...
/R code/iphonexs.R
permissive
AndreiFlorescu1410/MAARC
R
false
false
3,181
r
library('ggplot2') library('forecast') library('tseries') library('tidyverse') library('rio') library(readxl) #ARIMA(43,1,43) data1 <- import("/Users/andre/OneDrive/Desktop/Facultate/LICENTA/Cod Algoritm/datenoi/iphonexs.csv") data1$DATES = as.Date(data1$Date) data1$Month <- format(data1[,"DATES"], "%m") ggplot(data1,...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/analysis_result.R \name{open_reactome,ReactomeAnalysisResult-method} \alias{open_reactome,ReactomeAnalysisResult-method} \title{open_reactome - ReactomeAnalysisResult} \usage{ \S4method{open_reactome}{ReactomeAnalysisResult}(x, n_visualizatio...
/man/open_reactome-ReactomeAnalysisResult-method.Rd
no_license
parthoBTK/ReactomeGSA
R
false
true
1,473
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/analysis_result.R \name{open_reactome,ReactomeAnalysisResult-method} \alias{open_reactome,ReactomeAnalysisResult-method} \title{open_reactome - ReactomeAnalysisResult} \usage{ \S4method{open_reactome}{ReactomeAnalysisResult}(x, n_visualizatio...
# SQE API # # No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # # The version of the OpenAPI document: v1 # # Generated by: https://openapi-generator.tech #' @docType class #' @title CreateTextFragmentDTO #' @description CreateTextFragmentDTO Class #' @format...
/libs/r/R/create_text_fragment_dto.R
permissive
Scripta-Qumranica-Electronica/SQE_API_Connectors
R
false
false
3,663
r
# SQE API # # No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # # The version of the OpenAPI document: v1 # # Generated by: https://openapi-generator.tech #' @docType class #' @title CreateTextFragmentDTO #' @description CreateTextFragmentDTO Class #' @format...
#importing dataset #data <- read_excel("Shipment Data.xlsx") data <- Shipment_Data #finding class #class(data) #slicing time (year-week) and units alone dataDryer <- data[data$PRODUCT == "MHC",c(3,5)] plot(dataDryer$INDUSTRY_UNITS,dataDryer$WEEK) #converting the dataframe to timeseries DryerTs <- ts(dataDryer$INDUSTR...
/R Scripts/MHC Time Series.R
no_license
Ezhilvel/Demand-forecast
R
false
false
1,512
r
#importing dataset #data <- read_excel("Shipment Data.xlsx") data <- Shipment_Data #finding class #class(data) #slicing time (year-week) and units alone dataDryer <- data[data$PRODUCT == "MHC",c(3,5)] plot(dataDryer$INDUSTRY_UNITS,dataDryer$WEEK) #converting the dataframe to timeseries DryerTs <- ts(dataDryer$INDUSTR...
install.packages("swirl") library("swirl") install_course_zip("/Users/jiaodeng/Desktop/14_310x_Intro_to_R.zip",multi=FALSE) swirl() print("hello world") z <- c (pi, 205, 149, -2) y <- c (z, 555, z) y <- 2 * y + 760 my_sqrt <- sqrt (y - 1) swirl() 23/08/2017 2: Basic Building Blocks 5+7 x<-5+7 x y<-x-3 y z<-c(1.1,9,3.1...
/14 310x Intro to R.R
no_license
Majadeng/hello-world
R
false
false
3,781
r
install.packages("swirl") library("swirl") install_course_zip("/Users/jiaodeng/Desktop/14_310x_Intro_to_R.zip",multi=FALSE) swirl() print("hello world") z <- c (pi, 205, 149, -2) y <- c (z, 555, z) y <- 2 * y + 760 my_sqrt <- sqrt (y - 1) swirl() 23/08/2017 2: Basic Building Blocks 5+7 x<-5+7 x y<-x-3 y z<-c(1.1,9,3.1...
### 2.1.4 R快速入门 ### a <- 1:10 a A cor(iris[,1:4]) Cor(iris[,1:4]) # 获取帮助 ?median # 等价于help("median"),查看中位数函数的帮助文档 ??median # 等价于help.serach("median") 搜索包含median的帮助信息 help("runExample") help("runExample",package = "shiny") help("runExample",try.all.packages = TRUE) apropos("plot") example("median") data() data(packa...
/code/chapter2.R
no_license
ninoyao/Game_DataMining_With_R
R
false
false
8,900
r
### 2.1.4 R快速入门 ### a <- 1:10 a A cor(iris[,1:4]) Cor(iris[,1:4]) # 获取帮助 ?median # 等价于help("median"),查看中位数函数的帮助文档 ??median # 等价于help.serach("median") 搜索包含median的帮助信息 help("runExample") help("runExample",package = "shiny") help("runExample",try.all.packages = TRUE) apropos("plot") example("median") data() data(packa...
#' Geoserver REST API GSVirtualTableGeometry #' #' @docType class #' @importFrom R6 R6Class #' @export #' @keywords geoserver rest api virtualTable #' @return Object of \code{\link{R6Class}} for modelling a GeoServer virtual table geometry #' @format \code{\link{R6Class}} object. #' #' @examples #' GSVirtualTableGeome...
/R/GSVirtualTableGeometry.R
no_license
niarepo/geosapi
R
false
false
1,714
r
#' Geoserver REST API GSVirtualTableGeometry #' #' @docType class #' @importFrom R6 R6Class #' @export #' @keywords geoserver rest api virtualTable #' @return Object of \code{\link{R6Class}} for modelling a GeoServer virtual table geometry #' @format \code{\link{R6Class}} object. #' #' @examples #' GSVirtualTableGeome...
rm(list = ls()) knitr::opts_chunk$set(echo = TRUE) knitr::opts_chunk$set(fig.width=12, fig.height=8) library(tidyverse) library(REconTools) library(PrjOptiAlloc) srt_root <- 'D:/Dropbox (UH-ECON)/PrjNygaardSorensenWang/' # srt_root <- 'C:/Users/fan/Documents/Dropbox (UH-ECON)/PrjNygaardSorensenWang/' source(paste0(sr...
/AllocateR/sandbox/alloc_discrete_fun_rmd/fs_vig_render.R
permissive
FanWangEcon/PrjOptiSNW
R
false
false
1,313
r
rm(list = ls()) knitr::opts_chunk$set(echo = TRUE) knitr::opts_chunk$set(fig.width=12, fig.height=8) library(tidyverse) library(REconTools) library(PrjOptiAlloc) srt_root <- 'D:/Dropbox (UH-ECON)/PrjNygaardSorensenWang/' # srt_root <- 'C:/Users/fan/Documents/Dropbox (UH-ECON)/PrjNygaardSorensenWang/' source(paste0(sr...
#' Defines pollinator population growth function #' #' Generic growth function for bees population according to the available resources, using the inverse logit function #' @param Nindiv : the current population size as a matrix #' @param R : the resources as a matrix #' @param a : the inflexion point in the logistic c...
/R/growth.func.R
no_license
RetoSchmucki/poll4pop
R
false
false
868
r
#' Defines pollinator population growth function #' #' Generic growth function for bees population according to the available resources, using the inverse logit function #' @param Nindiv : the current population size as a matrix #' @param R : the resources as a matrix #' @param a : the inflexion point in the logistic c...
## CLUSTER 1 datos_yo <- datos_clust[!datos_clust$Vol_Entrega == 0,] datos_cero <- datos_clust[datos_clust$Vol_Entrega == 0,] cluster1_x <- df_cluster_original[1,1] cluster1_y <- df_cluster_original[1,2] ## EL MAMALON ES 600, antes 590 m = 599 distancias_cluster1 <- c() for (i in 1:nrow(datos_clust)) { distancias_c...
/OLD_CODE/Untitled3.R
no_license
insomnium098/BrewingDataCup2020
R
false
false
12,886
r
## CLUSTER 1 datos_yo <- datos_clust[!datos_clust$Vol_Entrega == 0,] datos_cero <- datos_clust[datos_clust$Vol_Entrega == 0,] cluster1_x <- df_cluster_original[1,1] cluster1_y <- df_cluster_original[1,2] ## EL MAMALON ES 600, antes 590 m = 599 distancias_cluster1 <- c() for (i in 1:nrow(datos_clust)) { distancias_c...
library(systemfit) ### Name: residuals.systemfit ### Title: Residuals of systemfit object ### Aliases: residuals.systemfit residuals.systemfit.equation ### Keywords: models ### ** Examples data( "Kmenta" ) eqDemand <- consump ~ price + income eqSupply <- consump ~ price + farmPrice + trend system <- list( demand = ...
/data/genthat_extracted_code/systemfit/examples/residuals.systemfit.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
633
r
library(systemfit) ### Name: residuals.systemfit ### Title: Residuals of systemfit object ### Aliases: residuals.systemfit residuals.systemfit.equation ### Keywords: models ### ** Examples data( "Kmenta" ) eqDemand <- consump ~ price + income eqSupply <- consump ~ price + farmPrice + trend system <- list( demand = ...
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) library(quanteda) library(dplyr) library(rdrop2) library(ggplot2) library(shinythemes) # Define UI...
/app.R
permissive
spoese/Text-Predict
R
false
false
7,879
r
# # This is a Shiny web application. You can run the application by clicking # the 'Run App' button above. # # Find out more about building applications with Shiny here: # # http://shiny.rstudio.com/ # library(shiny) library(quanteda) library(dplyr) library(rdrop2) library(ggplot2) library(shinythemes) # Define UI...
lagmatrix <- function(data,lag.max=0,prenames=colnames(data)){ ##browser() ## the length of lag.max should be checked. It needs to be either one or the number of columns in data. if(class(data)=="numeric") data <- matrix(data,ncol=1) dim.data <- dim(data) if(length(lag.max)==1){ if(!is.null(name...
/R_auxiliary_functions/lagmatrix.R
no_license
jsga/Inverse_optim_forecast_and_simulation
R
false
false
1,227
r
lagmatrix <- function(data,lag.max=0,prenames=colnames(data)){ ##browser() ## the length of lag.max should be checked. It needs to be either one or the number of columns in data. if(class(data)=="numeric") data <- matrix(data,ncol=1) dim.data <- dim(data) if(length(lag.max)==1){ if(!is.null(name...
#Choy_Kashi Lunge Figure pal <- c("mn" = "gray30", "bp" = "chocolate3", "bw" = "dodgerblue2") Choy <- read_csv("data/raw/Choy_etal_2019_Figure_1b_rawdata.csv") %>% rename(lo_05 = hi_95, hi_95 = lo_05) %>% filter(data_source == "observed values", DEPTH_m > -500.0) %>% muta...
/src/lunge_depth_figure.R
no_license
shirelkr/plastiwhale
R
false
false
2,878
r
#Choy_Kashi Lunge Figure pal <- c("mn" = "gray30", "bp" = "chocolate3", "bw" = "dodgerblue2") Choy <- read_csv("data/raw/Choy_etal_2019_Figure_1b_rawdata.csv") %>% rename(lo_05 = hi_95, hi_95 = lo_05) %>% filter(data_source == "observed values", DEPTH_m > -500.0) %>% muta...
\name{COUSCOus} \title{ Contact prediction using shrinked covariance. } \alias{COUSCOus} \description{ COUSCOus is a residue-residue contact detecting method. } \usage{ COUSCOus(fasta.file, verbose = TRUE) } \arguments{ \item{fasta.file}{ Protein sequence alignment file name in FASTA format. %% ~~Describe \code...
/man/COUSCOus.Rd
no_license
cran/COUSCOus
R
false
false
1,905
rd
\name{COUSCOus} \title{ Contact prediction using shrinked covariance. } \alias{COUSCOus} \description{ COUSCOus is a residue-residue contact detecting method. } \usage{ COUSCOus(fasta.file, verbose = TRUE) } \arguments{ \item{fasta.file}{ Protein sequence alignment file name in FASTA format. %% ~~Describe \code...
# Sum of dots when rolling a pair of dice # Chapter 18: Normal Approximation for Probability Histograms # Pages 310-311 library(shiny) source('helpers.R') # Define a server for the Shiny app shinyServer(function(input, output) { # Fill in the spot we created for a plot output$chancePlot <- renderPlot({ se...
/ch18-roll-dice-sum/server.R
permissive
gastonstat/shiny-introstats
R
false
false
764
r
# Sum of dots when rolling a pair of dice # Chapter 18: Normal Approximation for Probability Histograms # Pages 310-311 library(shiny) source('helpers.R') # Define a server for the Shiny app shinyServer(function(input, output) { # Fill in the spot we created for a plot output$chancePlot <- renderPlot({ se...
## run_analysis.R script is Getting and Cleaning Data project Assignment. library('reshape2') ##set the workdirect to the samsing dataset folder. setwd("~/Desktop/Getting and Cleaning Data/UCI HAR Dataset") ##read features and activity_labels, and get the mean and standard deviation of feartures. features <- read.t...
/run_analysis.R
no_license
wishasu/Getting-and-Cleaning-Data-Project
R
false
false
2,052
r
## run_analysis.R script is Getting and Cleaning Data project Assignment. library('reshape2') ##set the workdirect to the samsing dataset folder. setwd("~/Desktop/Getting and Cleaning Data/UCI HAR Dataset") ##read features and activity_labels, and get the mean and standard deviation of feartures. features <- read.t...
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/PLOTS.R \name{plot_ecdf} \alias{plot_ecdf} \title{plot_ecdf} \usage{ plot_ecdf(dat, param, distr = "distr") } \arguments{ \item{distr}{} } \value{ Returns nothing, saves nothing } \description{ Plot estimated and empirical cumulative distribu...
/man/plot_ecdf.Rd
no_license
robindang0573/FlomKart
R
false
true
337
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/PLOTS.R \name{plot_ecdf} \alias{plot_ecdf} \title{plot_ecdf} \usage{ plot_ecdf(dat, param, distr = "distr") } \arguments{ \item{distr}{} } \value{ Returns nothing, saves nothing } \description{ Plot estimated and empirical cumulative distribu...
ineff=function(MHhat=MHhat, maxac=maxac){ np=dim(MHhat)[2]; acfm=matrix(0,nr=maxac,np); for(i in 1:np){ acfm[,i]=acf1(x=MHhat[,i],maxac); } nh=dim(acfm)[1]; ine=matrix(0,nr=np,nc=1); for(i in 1:np){ sum_rho=rep(0,nh); for(j in 1:nh){ sum...
/R/ineff.R
no_license
xiebiancen/R_package_AFS
R
false
false
425
r
ineff=function(MHhat=MHhat, maxac=maxac){ np=dim(MHhat)[2]; acfm=matrix(0,nr=maxac,np); for(i in 1:np){ acfm[,i]=acf1(x=MHhat[,i],maxac); } nh=dim(acfm)[1]; ine=matrix(0,nr=np,nc=1); for(i in 1:np){ sum_rho=rep(0,nh); for(j in 1:nh){ sum...
context('aira_output') testdata_aira_model <- function() { data_set <- autovar::read_spss("inst/pp1_nieuw_compleet.sav", to.data.frame=TRUE) endodata <- data_set[,c('SomBewegUur', 'SomPHQ')] exodata <- data_set[,c('UitbijterPHQ','UitbijterBeweg')] var_model <- vars::VAR(endodata, exogen=exodata, p=2, type='con...
/tests/testthat/test_aira_output.R
no_license
frbl/airaR
R
false
false
7,134
r
context('aira_output') testdata_aira_model <- function() { data_set <- autovar::read_spss("inst/pp1_nieuw_compleet.sav", to.data.frame=TRUE) endodata <- data_set[,c('SomBewegUur', 'SomPHQ')] exodata <- data_set[,c('UitbijterPHQ','UitbijterBeweg')] var_model <- vars::VAR(endodata, exogen=exodata, p=2, type='con...
\name{isPoly-methods} \docType{methods} \alias{isPoly} \alias{isPoly-methods} \alias{isPoly,genind-method} \alias{isPoly,genpop-method} \title{ Assess polymorphism in genind/genpop objects } \description{ The simple function \code{isPoly} can be used to check which loci are polymorphic, or alternatively to check wh...
/man/isPoly.Rd
no_license
thibautjombart/adegenet
R
false
false
1,168
rd
\name{isPoly-methods} \docType{methods} \alias{isPoly} \alias{isPoly-methods} \alias{isPoly,genind-method} \alias{isPoly,genpop-method} \title{ Assess polymorphism in genind/genpop objects } \description{ The simple function \code{isPoly} can be used to check which loci are polymorphic, or alternatively to check wh...
grades <- c( 94, 90, 92, 91, 91, 86, 89, 91, 91, 90, 90, 93, 87, 90, 91, 92, 89, 86, 89, 90, 88, 95, 91, 88, 89, 92, 87, 89, 95, 92, 85, 91, 85, 89, 88, 84, 85, 90, 90, 83) qqnorm(grades, datax = "TRUE") qqline(grades, datax = "TRUE")
/Chapter 6/Exercise 6.69.r
no_license
kmahoski/Statistical-Data-Analysis-in-R
R
false
false
240
r
grades <- c( 94, 90, 92, 91, 91, 86, 89, 91, 91, 90, 90, 93, 87, 90, 91, 92, 89, 86, 89, 90, 88, 95, 91, 88, 89, 92, 87, 89, 95, 92, 85, 91, 85, 89, 88, 84, 85, 90, 90, 83) qqnorm(grades, datax = "TRUE") qqline(grades, datax = "TRUE")
stmv__fft = function( p=NULL, dat=NULL, pa=NULL, nu=NULL, phi=NULL, varSpatial=NULL, varObs=NULL, eps=1e-9, ... ) { #\\ this is the core engine of stmv .. localised space (no-time) modelling interpolation #\\ note: time is not being modelled and treated independently #\\ .. you had better have enough data ...
/R/stmv__fft.R
permissive
jae0/stmv
R
false
false
14,632
r
stmv__fft = function( p=NULL, dat=NULL, pa=NULL, nu=NULL, phi=NULL, varSpatial=NULL, varObs=NULL, eps=1e-9, ... ) { #\\ this is the core engine of stmv .. localised space (no-time) modelling interpolation #\\ note: time is not being modelled and treated independently #\\ .. you had better have enough data ...
# From `dput(datos::frutas)` (245b4af) frutas <- c( "banana", "papaya", "uva", "ar\u00e1ndano", "frutilla", "mora", "pl\u00e1tano", "anan\u00e1", "pi\u00f1a", # FIXME "manzana", "pera", "sand\u00eda", "melocot\u00f3n", "mel\u00f3n", "damasco", "durazno", "frambuesa", "mango", "gu...
/data-raw/frutas.R
permissive
maurolepore/datos
R
false
false
457
r
# From `dput(datos::frutas)` (245b4af) frutas <- c( "banana", "papaya", "uva", "ar\u00e1ndano", "frutilla", "mora", "pl\u00e1tano", "anan\u00e1", "pi\u00f1a", # FIXME "manzana", "pera", "sand\u00eda", "melocot\u00f3n", "mel\u00f3n", "damasco", "durazno", "frambuesa", "mango", "gu...
# Author: Amalia Castro # Date: November 2013 # Dependencies: library(rasta) # Description: function to create a mean value cloud-free image composite # for RasterBrick or RasterStack objects of 9 bands. library(rasta) # Download and visualize the data data(taravao) plotRGB(x=taravao, 4,5,3) data(taravao2) plo...
/composite.R
no_license
amaliacastro/Applied-Geoscripting-Exercises
R
false
false
1,312
r
# Author: Amalia Castro # Date: November 2013 # Dependencies: library(rasta) # Description: function to create a mean value cloud-free image composite # for RasterBrick or RasterStack objects of 9 bands. library(rasta) # Download and visualize the data data(taravao) plotRGB(x=taravao, 4,5,3) data(taravao2) plo...
#work on two functions independently foo1 <- function(a = 14) { # Work to do, User1 - done return("DONE DONE") } foo2 <- function(x){ #Work to do User2 } foo3 <- function(x){ #foo3 , hello world, Done return("Hello World") }
/funs.R
no_license
NielsKrarup/GitTest
R
false
false
243
r
#work on two functions independently foo1 <- function(a = 14) { # Work to do, User1 - done return("DONE DONE") } foo2 <- function(x){ #Work to do User2 } foo3 <- function(x){ #foo3 , hello world, Done return("Hello World") }
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sts.R \name{sts_additive_state_space_model} \alias{sts_additive_state_space_model} \title{A state space model representing a sum of component state space models.} \usage{ sts_additive_state_space_model( component_ssms, constant_offset = 0...
/man/sts_additive_state_space_model.Rd
no_license
cran/tfprobability
R
false
true
7,622
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/sts.R \name{sts_additive_state_space_model} \alias{sts_additive_state_space_model} \title{A state space model representing a sum of component state space models.} \usage{ sts_additive_state_space_model( component_ssms, constant_offset = 0...
library(trajectories) ### Name: chimaps ### Title: Chimaps of tarjectory pattern. ### Aliases: chimaps ### Keywords: ~kwd1 ~kwd2 ### ** Examples X <- list() for(i in 1:10){ m <- matrix(c(0,10,0,10),nrow=2,byrow = TRUE) X[[i]] <- rTrack(bbox = m,transform = TRUE) } chimaps(X, timestamp = "180 secs",rank = 2)
/data/genthat_extracted_code/trajectories/examples/chimaps.Rd.R
no_license
surayaaramli/typeRrh
R
false
false
320
r
library(trajectories) ### Name: chimaps ### Title: Chimaps of tarjectory pattern. ### Aliases: chimaps ### Keywords: ~kwd1 ~kwd2 ### ** Examples X <- list() for(i in 1:10){ m <- matrix(c(0,10,0,10),nrow=2,byrow = TRUE) X[[i]] <- rTrack(bbox = m,transform = TRUE) } chimaps(X, timestamp = "180 secs",rank = 2)
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GKtauDataframe.R \name{GKtauDataframe} \alias{GKtauDataframe} \title{Compute Goodman and Kruskal's tau for a dataframe.} \usage{ GKtauDataframe(df, dgts = 3, includeNA = "ifany") } \arguments{ \item{df}{Dataframe from which to compute associa...
/man/GKtauDataframe.Rd
no_license
ronaldkpearson/gktau
R
false
true
1,834
rd
% Generated by roxygen2: do not edit by hand % Please edit documentation in R/GKtauDataframe.R \name{GKtauDataframe} \alias{GKtauDataframe} \title{Compute Goodman and Kruskal's tau for a dataframe.} \usage{ GKtauDataframe(df, dgts = 3, includeNA = "ifany") } \arguments{ \item{df}{Dataframe from which to compute associa...
# 在函数之外创建的对象是全局的(也适用于函数内部)。在函数之内创建的对象是局部的(仅仅适用于函数内部). # 局部对象在函数执行后被丢弃。只有那些通过return()(或使用<<-分配)传回的对象在函数执行之后可以继续使用. # 全局对象在函数之内可被访问(可读)但是不会改变(除非使用<<-). # 对象可以通过参数传递到函数中,但是不会被函数改变。传递的是对象的副本而不是变量本身. x <- 2 y <- 3 z <- 4 f <- function(w) { x <- w * y * z z <<- 2 assign("y", 1, pos = .GlobalEnv) return(x) } ...
/r/learning/core/function/scope.r
no_license
jk983294/math
R
false
false
895
r
# 在函数之外创建的对象是全局的(也适用于函数内部)。在函数之内创建的对象是局部的(仅仅适用于函数内部). # 局部对象在函数执行后被丢弃。只有那些通过return()(或使用<<-分配)传回的对象在函数执行之后可以继续使用. # 全局对象在函数之内可被访问(可读)但是不会改变(除非使用<<-). # 对象可以通过参数传递到函数中,但是不会被函数改变。传递的是对象的副本而不是变量本身. x <- 2 y <- 3 z <- 4 f <- function(w) { x <- w * y * z z <<- 2 assign("y", 1, pos = .GlobalEnv) return(x) } ...
#' Convert kansuji to Roman numbers #' #' Converts kansuji or zenkaku numbers to Roman numbers. Applicable only for kansuji that means an integer from 0 to 9999. Letters that don't mean numbers (including commas as decimal separators) are ignored. #' #' @param x kansuji to convert #' @export kansuji2roman <- function(x...
/R/kansuji2roman.R
permissive
fmsan51/jlubridate
R
false
false
2,532
r
#' Convert kansuji to Roman numbers #' #' Converts kansuji or zenkaku numbers to Roman numbers. Applicable only for kansuji that means an integer from 0 to 9999. Letters that don't mean numbers (including commas as decimal separators) are ignored. #' #' @param x kansuji to convert #' @export kansuji2roman <- function(x...
#Load libraries library(dplyr) library(magrittr) library(brms) ##Read in data # Dataset cold_DA <- read.csv("data/growth/processed/analysis/COLD_quangen_growth_DA.csv", stringsAsFactors = F) str(cold_DA) dim(cold_DA) #Format date and treatment cold_DA %<>% mutate(treatment = as.factor(treatment), ...
/Katana/brms_mod.3.cold.R
no_license
fontikar/ldeli_growth
R
false
false
1,424
r
#Load libraries library(dplyr) library(magrittr) library(brms) ##Read in data # Dataset cold_DA <- read.csv("data/growth/processed/analysis/COLD_quangen_growth_DA.csv", stringsAsFactors = F) str(cold_DA) dim(cold_DA) #Format date and treatment cold_DA %<>% mutate(treatment = as.factor(treatment), ...