I have solar-geophysical data e.g as blow:
YEAR DOY HR IMF SW SSN Dst f10.7
2012 214 0 3.4 403. 132 -9 154.6
2012 214 1 3.7 388. 132 -10 154.6
2012 214 2 3.7 383. 132 -10 154.6
2012 214 3 3.7 391. 132 -9 154.6
2012 214 4 4.2 399. 132 -7 154.6
2012 214 5 4.1 411. 132 -6 154.6
2012 214 6 4.0 407. 132 -6 154.6
2012 214 7 4.2 404. 132 -4 154.6
2012 214 8 4.3 405. 132 -6 154.6
2012 214 9 4.4 409. 132 -6 154.6
2012 214 10 4.4 401. 132 -6 154.6
2012 214 11 4.5 385. 132 -7 154.6
2012 214 12 4.7 377. 132 -8 154.6
2012 214 13 4.7 382. 132 -6 154.6
2012 214 14 4.3 396. 132 -4 154.6
2012 214 15 4.1 384. 132 -2 154.6
2012 214 16 4.0 382. 132 -1 154.6
2012 214 17 3.9 397. 132 0 154.6
2012 214 18 3.8 390. 132 1 154.6
2012 214 19 4.2 400. 132 2 154.6
2012 214 20 4.6 408. 132 1 154.6
2012 214 21 4.8 401. 132 -3 154.6
2012 214 22 4.9 395. 132 -5 154.6
2012 214 23 5.0 386. 132 -1 154.6
2012 215 0 5.0 377. 143 -1 138.6
2012 215 1 4.9 384. 143 -2 138.6
2012 215 2 4.9 390. 143 -4 138.6
2012 215 3 4.9 372. 143 -6 138.6
2012 215 4 5.1 371. 143 -4 138.6
I want to process it to be of the format as shown below
y m d hr imf sws ssn Dst f10.7
2012-08-01 10 3.4 403. 132 -9 154.6
2012-08-01 12 3.7 388. 132 -10 154.6
2012-08-01 15 3.7 383. 132 -10 154.6
2012-08-01 17 3.7 391. 132 -9 154.6
I want to request an R code to accomplish this task. Thanks for your time.
*Jibrin Adejoh Alhassan (Ph.D)*
Department of Physics and Astronomy,
University of Nigeria, Nsukka
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.