Dear r-help group I have a text file which is a data dump of a pdf form as given below.. I want it to be converted into a data frame with field name as column names and the field value as the row value for each field. I might have different pdf forms with different field name value pairs to process. so the script should not require reference to specific field names in the extraction of data frame. Where the field value for a given field is empty or where Field Value doesn't appear.. the dataframe can record them as NA against that field name column Will someone know how to get this accomplished using R? Regards VP --- FieldType: Choice FieldName: P1 FieldFlags: 4849664 FieldValue: P1 FieldValueDefault: P1 FieldJustification: Left FieldStateOption: FieldStateOption: P1 --- FieldType: Choice FieldName: P2 FieldFlags: 4849664 FieldValue: FieldValueDefault: P2 FieldJustification: Left FieldStateOption: FieldStateOption: P2 --- FieldType: Choice FieldName: P3 FieldFlags: 4849664 FieldValue: FieldValueDefault: P3 FieldJustification: Left FieldStateOption: FieldStateOption: P3 --- FieldType: Choice FieldName: P4 FieldFlags: 4849664 FieldValue: P2 FieldValueDefault: P2 FieldJustification: Left FieldStateOption: FieldStateOption: P2 --- FieldType: Choice FieldName: P5 FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: P5 --- FieldType: Choice FieldName: P6 FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: P6 --- FieldType: Choice FieldName: P7 FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: P7 --- FieldType: Choice FieldName: P8 FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: P8 --- FieldType: Choice FieldName: P1IDS FieldFlags: 4849664 FieldValue: 2 FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P1PDS FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P1IIU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P1PIU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P1IPU FieldFlags: 4849664 FieldValue: 3 FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P1PPU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P2IDS FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P2IIU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P2PIU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P2IPU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P2PPU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P3IDS FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P3IIU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P2PDS FieldFlags: 71958528 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P3PDS FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P3PIU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P3IPU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P3PPU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P4IDS FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P4PDS FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P4IIU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P4PIU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P4IPU FieldFlags: 4849664 FieldValue: 5 FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P4PPU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P5IDS FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P5PDS FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P5IIU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P5PIU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P5IPU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P5PPU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P6IDS FieldFlags: 4849664 FieldValue: FieldValueDefault: 5 FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P6PDS FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P6IIU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P6PIU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P6IPU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P6PPU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P7IDS FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P7PDS FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P7IIU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P7PIU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P7IPU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P7PPU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P8IDS FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P8PDS FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P8IIU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P8PIU FieldFlags: 4849664 FieldValue: FieldValueDefault: 3 FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P8IPU FieldFlags: 4849664 FieldValue: FieldValueDefault: 2 FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P8PPU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P9IDS FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P11IDS FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P10IDS FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P12IDS FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P10PDS FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P12PDS FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P10IIU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P12IIU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P10PIU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P12PIU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P10IPU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P12IPU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P10PPU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P12PPU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P9PPU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P11PPU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P9IPU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P11IPU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P9PIU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P11PIU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P9IIU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P11IIU FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P9PDS FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P11PDS FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: 1 FieldStateOption: 2 FieldStateOption: 3 FieldStateOption: 4 FieldStateOption: 5 --- FieldType: Choice FieldName: P9 FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: P9 --- FieldType: Choice FieldName: P11 FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: P9 --- FieldType: Choice FieldName: P10 FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: P10 --- FieldType: Choice FieldName: P12 FieldFlags: 4849664 FieldValue: FieldValueDefault: FieldJustification: Left FieldStateOption: FieldStateOption: P10 --- FieldType: Choice FieldName: DD FieldFlags: 4849664 FieldValue: 02 FieldValueDefault: 03 FieldJustification: Left FieldStateOption: FieldStateOption: 01 FieldStateOption: 02 FieldStateOption: 03 FieldStateOption: 04 FieldStateOption: 05 FieldStateOption: 06 FieldStateOption: 07 FieldStateOption: 08 FieldStateOption: 09 FieldStateOption: 10 FieldStateOption: 11 FieldStateOption: 12 FieldStateOption: 13 FieldStateOption: 14 FieldStateOption: 15 FieldStateOption: 16 FieldStateOption: 17 FieldStateOption: 18 FieldStateOption: 19 FieldStateOption: 20 FieldStateOption: 21 FieldStateOption: 22 FieldStateOption: 23 FieldStateOption: 24 FieldStateOption: 25 FieldStateOption: 26 FieldStateOption: 27 FieldStateOption: 28 FieldStateOption: 29 FieldStateOption: 30 FieldStateOption: 31 --- FieldType: Choice FieldName: YY FieldFlags: 4849664 FieldValue: 17 FieldValueDefault: 18 FieldJustification: Left FieldStateOption: 15 FieldStateOption: 16 FieldStateOption: 17 FieldStateOption: 18 FieldStateOption: 19 FieldStateOption: 20 FieldStateOption: 21 FieldStateOption: 22 FieldStateOption: 23 FieldStateOption: 24 FieldStateOption: 25 --- FieldType: Choice FieldName: MM FieldFlags: 4325376 FieldValue: Jan FieldValueDefault: Dec FieldJustification: Left FieldStateOption: FieldStateOption: Apr FieldStateOption: Aug FieldStateOption: Dec FieldStateOption: Feb FieldStateOption: Jan FieldStateOption: July FieldStateOption: Jun FieldStateOption: Mar FieldStateOption: May FieldStateOption: Nov FieldStateOption: Oct FieldStateOption: Sep --- FieldType: Text FieldName: Remark FieldFlags: 4096 FieldJustification: Left FieldMaxLength: 50 --- FieldType: Text FieldName: StudyID FieldFlags: 0 FieldValue: vijayan FieldJustification: Left --- FieldType: Text FieldName: SubjID FieldFlags: 0 FieldValue: 89841 FieldJustification: Left --- FieldType: Text FieldName: SubjName FieldFlags: 0 FieldJustification: Left --- FieldType: Button FieldName: Button1 FieldFlags: 65536 FieldJustification: Left [[alternative HTML version deleted]]
Hi Vijayan, You have a bit of a problem with repeated field names. While you can mangle the field names to do something like this, I don't see how you are going to make sense of multiple "FieldStateOption" fields. The strategy I would take is to collect all of the field names and then set up rows with the unique field names, but the multiple field names will make a mess of that. Jim On Sun, Mar 12, 2017 at 2:13 AM, Vijayan Padmanabhan <padmanabhan.vijayan at gmail.com> wrote:> Dear r-help group > I have a text file which is a data dump of a pdf form as given below.. > I want it to be converted into a data frame with field name as column names > and the field value as the row value for each field. > I might have different pdf forms with different field name value pairs to > process. so the script should not require reference to specific field names > in the extraction of data frame. > Where the field value for a given field is empty or where Field Value > doesn't appear.. the dataframe can record them as NA against that field > name column > > Will someone know how to get this accomplished using R? > > > Regards > VP > > --- > FieldType: Choice > FieldName: P1 > FieldFlags: 4849664 > FieldValue: P1 > FieldValueDefault: P1 > FieldJustification: Left > FieldStateOption: > FieldStateOption: P1 > --- > FieldType: Choice > FieldName: P2 > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: P2 > FieldJustification: Left > FieldStateOption: > FieldStateOption: P2 > --- > FieldType: Choice > FieldName: P3 > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: P3 > FieldJustification: Left > FieldStateOption: > FieldStateOption: P3 > --- > FieldType: Choice > FieldName: P4 > FieldFlags: 4849664 > FieldValue: P2 > FieldValueDefault: P2 > FieldJustification: Left > FieldStateOption: > FieldStateOption: P2 > --- > FieldType: Choice > FieldName: P5 > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: P5 > --- > FieldType: Choice > FieldName: P6 > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: P6 > --- > FieldType: Choice > FieldName: P7 > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: P7 > --- > FieldType: Choice > FieldName: P8 > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: P8 > --- > FieldType: Choice > FieldName: P1IDS > FieldFlags: 4849664 > FieldValue: 2 > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P1PDS > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P1IIU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P1PIU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P1IPU > FieldFlags: 4849664 > FieldValue: 3 > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P1PPU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P2IDS > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P2IIU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P2PIU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P2IPU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P2PPU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P3IDS > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P3IIU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P2PDS > FieldFlags: 71958528 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P3PDS > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P3PIU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P3IPU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P3PPU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P4IDS > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P4PDS > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P4IIU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P4PIU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P4IPU > FieldFlags: 4849664 > FieldValue: 5 > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P4PPU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P5IDS > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P5PDS > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P5IIU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P5PIU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P5IPU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P5PPU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P6IDS > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: 5 > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P6PDS > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P6IIU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P6PIU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P6IPU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P6PPU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P7IDS > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P7PDS > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P7IIU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P7PIU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P7IPU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P7PPU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P8IDS > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P8PDS > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P8IIU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P8PIU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: 3 > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P8IPU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: 2 > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P8PPU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P9IDS > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P11IDS > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P10IDS > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P12IDS > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P10PDS > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P12PDS > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P10IIU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P12IIU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P10PIU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P12PIU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P10IPU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P12IPU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P10PPU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P12PPU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P9PPU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P11PPU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P9IPU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P11IPU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P9PIU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P11PIU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P9IIU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P11IIU > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P9PDS > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P11PDS > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: 1 > FieldStateOption: 2 > FieldStateOption: 3 > FieldStateOption: 4 > FieldStateOption: 5 > --- > FieldType: Choice > FieldName: P9 > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: P9 > --- > FieldType: Choice > FieldName: P11 > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: P9 > --- > FieldType: Choice > FieldName: P10 > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: P10 > --- > FieldType: Choice > FieldName: P12 > FieldFlags: 4849664 > FieldValue: > FieldValueDefault: > FieldJustification: Left > FieldStateOption: > FieldStateOption: P10 > --- > FieldType: Choice > FieldName: DD > FieldFlags: 4849664 > FieldValue: 02 > FieldValueDefault: 03 > FieldJustification: Left > FieldStateOption: > FieldStateOption: 01 > FieldStateOption: 02 > FieldStateOption: 03 > FieldStateOption: 04 > FieldStateOption: 05 > FieldStateOption: 06 > FieldStateOption: 07 > FieldStateOption: 08 > FieldStateOption: 09 > FieldStateOption: 10 > FieldStateOption: 11 > FieldStateOption: 12 > FieldStateOption: 13 > FieldStateOption: 14 > FieldStateOption: 15 > FieldStateOption: 16 > FieldStateOption: 17 > FieldStateOption: 18 > FieldStateOption: 19 > FieldStateOption: 20 > FieldStateOption: 21 > FieldStateOption: 22 > FieldStateOption: 23 > FieldStateOption: 24 > FieldStateOption: 25 > FieldStateOption: 26 > FieldStateOption: 27 > FieldStateOption: 28 > FieldStateOption: 29 > FieldStateOption: 30 > FieldStateOption: 31 > --- > FieldType: Choice > FieldName: YY > FieldFlags: 4849664 > FieldValue: 17 > FieldValueDefault: 18 > FieldJustification: Left > FieldStateOption: 15 > FieldStateOption: 16 > FieldStateOption: 17 > FieldStateOption: 18 > FieldStateOption: 19 > FieldStateOption: 20 > FieldStateOption: 21 > FieldStateOption: 22 > FieldStateOption: 23 > FieldStateOption: 24 > FieldStateOption: 25 > --- > FieldType: Choice > FieldName: MM > FieldFlags: 4325376 > FieldValue: Jan > FieldValueDefault: Dec > FieldJustification: Left > FieldStateOption: > FieldStateOption: Apr > FieldStateOption: Aug > FieldStateOption: Dec > FieldStateOption: Feb > FieldStateOption: Jan > FieldStateOption: July > FieldStateOption: Jun > FieldStateOption: Mar > FieldStateOption: May > FieldStateOption: Nov > FieldStateOption: Oct > FieldStateOption: Sep > --- > FieldType: Text > FieldName: Remark > FieldFlags: 4096 > FieldJustification: Left > FieldMaxLength: 50 > --- > FieldType: Text > FieldName: StudyID > FieldFlags: 0 > FieldValue: vijayan > FieldJustification: Left > --- > FieldType: Text > FieldName: SubjID > FieldFlags: 0 > FieldValue: 89841 > FieldJustification: Left > --- > FieldType: Text > FieldName: SubjName > FieldFlags: 0 > FieldJustification: Left > --- > FieldType: Button > FieldName: Button1 > FieldFlags: 65536 > FieldJustification: Left > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org 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.
I imagine that the FieldStateOption is irrelevant, so you might be able to create a data.frame like this: library(tidyr) fl <- readLines("pdf_dump.txt") fl <- grep("FieldStateOption", fl, value = TRUE, invert = TRUE) field_number <- vector(mode = "integer", length = length(fl)) tmpid <- 0 for(i in seq_along(1:length(fl))){ if(fl[i] == "---"){ tmpid <- tmpid + 1 } field_number[i] <- tmpid } data.frame(field_number, file_line = fl) %>% subset(file_line != "---") %>% separate(file_line,into = c("field_name", "field_value")) %>% spread(key = "field_name", value = "field_value") The field_number is there to make each row in the final data.frame unique (without it, `spread` complains) HTH, Ulrik On Mon, 13 Mar 2017 at 09:28 Jim Lemon <drjimlemon at gmail.com> wrote:> Hi Vijayan, > You have a bit of a problem with repeated field names. While you can > mangle the field names to do something like this, I don't see how you > are going to make sense of multiple "FieldStateOption" fields. The > strategy I would take is to collect all of the field names and then > set up rows with the unique field names, but the multiple field names > will make a mess of that. > > Jim > > > On Sun, Mar 12, 2017 at 2:13 AM, Vijayan Padmanabhan > <padmanabhan.vijayan at gmail.com> wrote: > > Dear r-help group > > I have a text file which is a data dump of a pdf form as given below.. > > I want it to be converted into a data frame with field name as column > names > > and the field value as the row value for each field. > > I might have different pdf forms with different field name value pairs to > > process. so the script should not require reference to specific field > names > > in the extraction of data frame. > > Where the field value for a given field is empty or where Field Value > > doesn't appear.. the dataframe can record them as NA against that field > > name column > > > > Will someone know how to get this accomplished using R? > > > > > > Regards > > VP > > > > --- > > FieldType: Choice > > FieldName: P1 > > FieldFlags: 4849664 > > FieldValue: P1 > > FieldValueDefault: P1 > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: P1 > > --- > > FieldType: Choice > > FieldName: P2 > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: P2 > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: P2 > > --- > > FieldType: Choice > > FieldName: P3 > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: P3 > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: P3 > > --- > > FieldType: Choice > > FieldName: P4 > > FieldFlags: 4849664 > > FieldValue: P2 > > FieldValueDefault: P2 > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: P2 > > --- > > FieldType: Choice > > FieldName: P5 > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: P5 > > --- > > FieldType: Choice > > FieldName: P6 > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: P6 > > --- > > FieldType: Choice > > FieldName: P7 > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: P7 > > --- > > FieldType: Choice > > FieldName: P8 > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: P8 > > --- > > FieldType: Choice > > FieldName: P1IDS > > FieldFlags: 4849664 > > FieldValue: 2 > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P1PDS > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P1IIU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P1PIU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P1IPU > > FieldFlags: 4849664 > > FieldValue: 3 > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P1PPU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P2IDS > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P2IIU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P2PIU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P2IPU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P2PPU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P3IDS > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P3IIU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P2PDS > > FieldFlags: 71958528 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P3PDS > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P3PIU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P3IPU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P3PPU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P4IDS > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P4PDS > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P4IIU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P4PIU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P4IPU > > FieldFlags: 4849664 > > FieldValue: 5 > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P4PPU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P5IDS > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P5PDS > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P5IIU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P5PIU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P5IPU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P5PPU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P6IDS > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: 5 > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P6PDS > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P6IIU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P6PIU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P6IPU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P6PPU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P7IDS > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P7PDS > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P7IIU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P7PIU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P7IPU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P7PPU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P8IDS > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P8PDS > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P8IIU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P8PIU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: 3 > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P8IPU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: 2 > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P8PPU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P9IDS > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P11IDS > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P10IDS > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P12IDS > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P10PDS > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P12PDS > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P10IIU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P12IIU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P10PIU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P12PIU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P10IPU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P12IPU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P10PPU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P12PPU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P9PPU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P11PPU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P9IPU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P11IPU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P9PIU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P11PIU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P9IIU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P11IIU > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P9PDS > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P11PDS > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 1 > > FieldStateOption: 2 > > FieldStateOption: 3 > > FieldStateOption: 4 > > FieldStateOption: 5 > > --- > > FieldType: Choice > > FieldName: P9 > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: P9 > > --- > > FieldType: Choice > > FieldName: P11 > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: P9 > > --- > > FieldType: Choice > > FieldName: P10 > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: P10 > > --- > > FieldType: Choice > > FieldName: P12 > > FieldFlags: 4849664 > > FieldValue: > > FieldValueDefault: > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: P10 > > --- > > FieldType: Choice > > FieldName: DD > > FieldFlags: 4849664 > > FieldValue: 02 > > FieldValueDefault: 03 > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: 01 > > FieldStateOption: 02 > > FieldStateOption: 03 > > FieldStateOption: 04 > > FieldStateOption: 05 > > FieldStateOption: 06 > > FieldStateOption: 07 > > FieldStateOption: 08 > > FieldStateOption: 09 > > FieldStateOption: 10 > > FieldStateOption: 11 > > FieldStateOption: 12 > > FieldStateOption: 13 > > FieldStateOption: 14 > > FieldStateOption: 15 > > FieldStateOption: 16 > > FieldStateOption: 17 > > FieldStateOption: 18 > > FieldStateOption: 19 > > FieldStateOption: 20 > > FieldStateOption: 21 > > FieldStateOption: 22 > > FieldStateOption: 23 > > FieldStateOption: 24 > > FieldStateOption: 25 > > FieldStateOption: 26 > > FieldStateOption: 27 > > FieldStateOption: 28 > > FieldStateOption: 29 > > FieldStateOption: 30 > > FieldStateOption: 31 > > --- > > FieldType: Choice > > FieldName: YY > > FieldFlags: 4849664 > > FieldValue: 17 > > FieldValueDefault: 18 > > FieldJustification: Left > > FieldStateOption: 15 > > FieldStateOption: 16 > > FieldStateOption: 17 > > FieldStateOption: 18 > > FieldStateOption: 19 > > FieldStateOption: 20 > > FieldStateOption: 21 > > FieldStateOption: 22 > > FieldStateOption: 23 > > FieldStateOption: 24 > > FieldStateOption: 25 > > --- > > FieldType: Choice > > FieldName: MM > > FieldFlags: 4325376 > > FieldValue: Jan > > FieldValueDefault: Dec > > FieldJustification: Left > > FieldStateOption: > > FieldStateOption: Apr > > FieldStateOption: Aug > > FieldStateOption: Dec > > FieldStateOption: Feb > > FieldStateOption: Jan > > FieldStateOption: July > > FieldStateOption: Jun > > FieldStateOption: Mar > > FieldStateOption: May > > FieldStateOption: Nov > > FieldStateOption: Oct > > FieldStateOption: Sep > > --- > > FieldType: Text > > FieldName: Remark > > FieldFlags: 4096 > > FieldJustification: Left > > FieldMaxLength: 50 > > --- > > FieldType: Text > > FieldName: StudyID > > FieldFlags: 0 > > FieldValue: vijayan > > FieldJustification: Left > > --- > > FieldType: Text > > FieldName: SubjID > > FieldFlags: 0 > > FieldValue: 89841 > > FieldJustification: Left > > --- > > FieldType: Text > > FieldName: SubjName > > FieldFlags: 0 > > FieldJustification: Left > > --- > > FieldType: Button > > FieldName: Button1 > > FieldFlags: 65536 > > FieldJustification: Left > > > > [[alternative HTML version deleted]] > > > > ______________________________________________ > > R-help at r-project.org 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. > > ______________________________________________ > R-help at r-project.org 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. >[[alternative HTML version deleted]]