Skip to content

Commit

Permalink
Remove unique.formula.names() to avoid S3 confusion
Browse files Browse the repository at this point in the history
This isn't used and isn't exported.

See #375.
  • Loading branch information
joshuaulrich committed Mar 21, 2023
1 parent 1bdc78f commit 73c6c8e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions R/specifyModel.R
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,6 @@ function(formula,na.rm=TRUE) {
return(new.quantmod);
}

# used potentially for chartSeries parsing - where a model.frame is unecessary
`unique.formula.names` <-
function(x) {
tm <- attr(terms(x),'variables')
name.list <- lapply(tm, function(y) paste(make.names(y),collapse=''))[-1]
unlist(lapply(name.list, function(x) gsub('\\.+','.',x)))
}

`make.short.names` <-
function(x) {
gsub('\\.+','.',make.names(colnames(model.frame(x))))
Expand Down

0 comments on commit 73c6c8e

Please sign in to comment.