Re: [R] Sorting text docs based on document meta values in tm()

2009-08-11 Thread Shad Thomas
Hi Kelvin, I'm new to R and tm myself, however here is a way that you can sort your corpus. Please keep in mind that there may be a more efficient approach -- but this will get the job done. Basically, there are three steps (in pseudo code): 1. Extract the meta data for Age into a list 2. Sor

[R] Sorting text docs based on document meta values in tm()

2009-08-10 Thread Kelvin Lam
Hi all, I wonder if there's any way to reshuffle the text collection by the document meta values. For instance, if I have 5 documents that correspond to the following meta data: MetaID Sex Age 0 M38 0 M46 0 F 24 0 F 49 0 F 33 Can I re