daytomonth: Convert Daily OHLC data of a stock to Monthly data

Introduction

Convert the Daily OHLC data of a stock to Monthly data. The dataframe should contain six columns named SYMBOL, OPEN, HIGH, LOW, CLOSE, DATE.

library(nser)
data(dailydata)
daytomonth(dailydata)