Skip to content

Commit

Permalink
Use && and || in if statements
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaulrich committed Nov 29, 2023
1 parent d152a3f commit 82acc42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/EMV.R
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ function(HL, volume, n=9, maType, vol.divisor=10000, ...) {

# Arms' Ease of Movement Value

if( missing(HL) | missing(volume) )
if( missing(HL) || missing(volume) )
stop("High-Low matrix (HL) and volume vector must be specified.")

HL <- try.xts(HL, error=as.matrix)
Expand Down
2 changes: 1 addition & 1 deletion R/WebData.R
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ function(symbol, start, end, freq="daily", type="price", adjust=TRUE, quiet=FALS
interval <- intervals[freq]
type <- match.arg( type, c("price","split") )
if(type!="price") {
if(freq!="daily" & !quiet)
if(freq!="daily" && !quiet)
message("Only freq=\"daily\" data available for type=\"split\".\n",
"Setting freq=\"daily\"...")
}
Expand Down

0 comments on commit 82acc42

Please sign in to comment.