daytoweek: Convert Daily data of a stock to Weekly data

Introduction

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

# Example
library(nser)
data(dailydata)
daytoweek(dailydata)