[R] XML parameters to Column Headers for importing into a dataset

From: ajay ohri <ohri2007_at_gmail.com>
Date: Thu, 12 Jun 2008 14:41:58 +0530

Dear List,

Do you know any way I can convert XML parameters into column headers. My data is in a csv file with each row containing a xml form of data , and multiple parameters (

<param1> data_val1 </param2> , <param2> data_val2 </param2> )

I want to convert it so each row caters to one record and each parameter becomes a different column.

                  param1           param2
Row1           data_val1       data_val2

What is the most efficient way for doing this. Apologize for the duplicate email , but this is an emergency with loads of files for me !!!




        [[alternative HTML version deleted]]

R-help_at_r-project.org mailing list
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. Received on Thu 12 Jun 2008 - 10:46:05 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 12 Jun 2008 - 17:30:42 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive