Skip to content
Prev 3472 / 398500 Next

dataframe transposition

Thanks, but:
c("MCM",136),c("MDH",266),c("ML",27),c("SA",1)))
NULL

str is a really good tip though:
`data.frame':  6 obs. of  2 variables:
 $ authorisor: chr  "JMC" "LCA" "MCM" "MDH" "ML" "SA"
 $ count     : chr  "4" "259" "136" "266" "27" "1"
whereas on my transposed example:
JMC LCA MCM MDH  ML  SA
count 4   259 136 266 27  1
`data.frame':  1 obs. of  6 variables:
 $ JMC: Named chr "4  "
  ..- attr(*, "names")= chr "count"
 $ LCA: Named chr "259"
  ..- attr(*, "names")= chr "count"
 $ MCM: Named chr "136"
  ..- attr(*, "names")= chr "count"
 $ MDH: Named chr "266"
  ..- attr(*, "names")= chr "count"
 $ ML : Named chr "27 "
  ..- attr(*, "names")= chr "count"
 $ SA : Named chr "1  "
  ..- attr(*, "names")= chr "count"
I still don't understand what is going on and the theory of how to do
this sort of thing reliably.

Michael
On 13-Oct-99 Jan.Schelling at hydro.com wrote:
----------------------------------
E-Mail: Michael Lapsley <mlapsley at ndirect.co.uk>
Date: 13-Oct-99
Time: 09:51:59

This message was sent by XFMail
----------------------------------
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._