If I have a data frame of option prices such as
mydata = read.csv("optionprices.csv")
print(mydata)
Symbol Price Volume
AAPL 100 20
AAPL 105 40
AMZN 300 30
AMZN 305 60
How can I can around extracting data to create another data frame where mydata$Symbol == "AAPL"? So that my new data frame is
Symbol Price Volume
AAPL 100 20
AAPL 105 40