Hello Artem,

I can just give you a pointer to a possible solution. I assume, that you
have a string of this form:
"20100501,125201,23.52,20100501,125205,23.62" and so on.
So you will need to split this string. First you should split this string
for every datepoint, I don't get It why my R-solution doesn't work, but in
JAVA you could use this : ",(?=\d{8})" as a regular expression to split your
string. My approach in R would be

str <- "20100501,125201,23.52,20100501,125205,23.62"
strsplit(str, ",(?=[[:digit:]]{8})")

but I just get an error, that my regexp is wrong. (the java solution
works...) Maybe you can see a possible solution for your problem now. If
not, please try to solve the problem in the R-snippet and than we can
proceed

regards,

Konrad Hoppe
www.konrad-hoppe.com

-----Ursprüngliche Nachricht-----
Von: r-sig-finance-bounces@stat.math.ethz.ch
[mailto:r-sig-finance-bounces@stat.math.ethz.ch] Im Auftrag von Artem
Simonov
Gesendet: Mittwoch, 7. Juli 2010 23:07
An: r-sig-finance@stat.math.ethz.ch
Betreff: [R-SIG-Finance] Split by date

Hello All!
 I have a file with quotes for 3 months (data format: <DATE>(yyyymmdd), 
<TIME>(hhmmss), <CLOSE>). I'm trying to get each day in a single array 
and analyze it separately. Could you please tell me how to solve this 
problem?
 Thanks in advance for your answer!

Artem Simonov, Russia, Perm.

_______________________________________________
R-SIG-Finance@stat.math.ethz.ch mailing list

-- Subscriber-posting only. If you want to post, subscribe first.
-- Also note that this is not the r-help list where general R questions
should go.

	[[alternative HTML version deleted]]

