Manipulating data extracted from WRDS

1 回表示 (過去 30 日間)
Omar Abdel Hamid
Omar Abdel Hamid 2019 年 8 月 6 日
編集済み: Dinesh Yadav 2019 年 8 月 9 日
Hello,
I am trying to manipulate data i extracted from WRDS! I have the monthly stock returns for 80 stocks and they are sorted by stock rather than date (the monthly returns for stock 1 for all the dates then the monthly stock returns for stock 2 etc.). how can i manipulate the csv file so that i have the returns for every month together?
thanks

回答 (1 件)

Dinesh Yadav
Dinesh Yadav 2019 年 8 月 9 日
編集済み: Dinesh Yadav 2019 年 8 月 9 日
I am providing link to the documentation of sort function in MATLAB below in which steps are shown how you can sort data by a specific rows, columns and date-time also. You can use the combination of sorting by date-time and sorting by columns to get your solution.

カテゴリ

Help Center および File ExchangeDates and Time についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by