[R] Transformations in Tidyverse (renaming and ordering columns)
jdnewm|| @end|ng |rom dcn@d@v|@@c@@u@
Mon Oct 22 23:17:57 CEST 2018
If you are willing to work in the context of LaTeX output then perhaps you will find the "tables" package useful. However, while you think you have communicated clearly enough regarding what you want to accomplish, I do not, so either someone else will intuit what you want or you will create a mock-up of what you want your output to look like to remove the guesswork.
On October 22, 2018 1:57:55 PM PDT, Joel Maxuel <j.maxuel using gmail.com> wrote:
>Thanks for the input, however it does not seem we are on the same
>wavelength. Maybe I should have distilled my example down even further
>solidify context, although given what I was trying to accomplish I
>it is all in context.
>At this point I am not concerned about presenting multiple sections
>(agreed, looping will be important) - my emphasis right now is to
>just one piece in a manner that makes sense. As a result, I am finding
>that using `spread` to convert the flat data into a "crosstab" does
>The flat data has (IMO - at least the wider version I have locally) all
>info needed to allow a sort to be enforced, and any miscellaneous data
>that section, without having to customize each section individually (in
>essence, allow for looping). With regard to sorting, in the past hour
>so I have tried the `seq` parameter (after changing `key` to the
>column) in `spread`, as well as the `arrange` function after `spread`
>neither are helpful.
>I have considered a leading character in the headings to force a sort,
>something to trim it from the final output, but I am not fond of that
>solution. Also, having the section heading outside the table to me
>like a waste of space. With 13 proposed sections in the end (120 to
>observations), having that all in only two pages may already be a
Sent from my phone. Please excuse my brevity.
More information about the R-help