Date conversion within unstructured workfiles

For questions regarding the import, export and manipulation of data in EViews, including graphing and basic statistics.

Moderators: EViews Gareth, EViews Steve, EViews Moderator, EViews Jason

adrian_d
Posts: 44
Joined: Wed Jan 29, 2014 6:08 am

Date conversion within unstructured workfiles

Postby adrian_d » Wed Feb 19, 2014 5:04 am

Hello,
I have an unstructured/undated workfile and there I have a series containing intraday date (not unique, there are rows with the same date). How can I create from this a series containg daily, not intraday, date? I tried things such as using series daily_date = @makedate(intraday_date, "ddmmyyyy") but it doesn't work. Please help! :-)

adrian

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Date conversion within unstructured workfiles

Postby EViews Gareth » Wed Feb 19, 2014 9:02 am

Post your workfile.

adrian_d
Posts: 44
Joined: Wed Jan 29, 2014 6:08 am

Re: Date conversion within unstructured workfiles

Postby adrian_d » Thu Feb 20, 2014 1:28 am

Post your workfile.
Ok, take a look please. The aim is to have daily data with sum of total_conversions series per day.
Attachments
p2c sample.wf1
(1.86 MiB) Downloaded 282 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13604
Joined: Tue Sep 16, 2008 5:38 pm

Re: Date conversion within unstructured workfiles

Postby EViews Gareth » Thu Feb 20, 2014 9:19 am

Something like:

Code: Select all

series date = @datefloor(activity_date_time, "DD") pagecreate(page=daily) d7 2014/01/01 2014/02/28 series date = @date copy(c=s) p2c\total_conversions daily\* @src date @dest date

adrian_d
Posts: 44
Joined: Wed Jan 29, 2014 6:08 am

Re: Date conversion within unstructured workfiles

Postby adrian_d » Fri Feb 21, 2014 2:36 am

Great idea with @datefloor, thank you! :)


Return to “Data Manipulation”

Who is online

Users browsing this forum: No registered users and 0 guests