R언어 코드 질문있습니다. 값을 비교하려면 어떡해야하나요 왕초보라서요..

조회수 323회
bullishCandle = close >= open[1] and close[1] < open[1]  //and high >= high[1] and low <= low[1]
bearishCandle = close <= open[1] and close[1] > open[1]  //and high > high[1] and low < low[1]

aaaaa = (close >= open[1] and close[1] < open[1])[1] > (close >= open[1] and close[1] < open[1])
//Error message: Cannot call 'operator >' with argument 'expr0'='call 'operator SQBR' (series bool)'. An argument of 'series bool' type was used but a 'simple float' is expected.

왕왕왕왕왕초보라 이런질문을 올립니다..ㅠㅠ aaaaa가 성립되려면 어떻게해야하나요?

답변을 하려면 로그인이 필요합니다.

프로그래머스 커뮤니티는 개발자들을 위한 Q&A 서비스입니다. 로그인해야 답변을 작성하실 수 있습니다.

(ಠ_ಠ)
(ಠ‿ಠ)