Closed apatel9437 closed 6 years ago
Hi,
That is definitely a typo since the last major release. Table1() used to provide the original data set after providing the table but that caused more problems overall so we changed that to just return the table itself. I’ll update that in the GitHub documentation right now and hopefully get that submitted to CRAN over the next week since there’s a release coming up.
Thanks!
Tyson
From: apatel9437 notifications@github.com Reply-To: TysonStanley/furniture reply@reply.github.com Date: Monday, October 29, 2018 at 12:39 PM To: TysonStanley/furniture furniture@noreply.github.com Cc: Subscribed subscribed@noreply.github.com Subject: [TysonStanley/furniture] table1 documentation example with dplyr pipe not working? (#13)
Hi,
I was trying to use table1 from the furniture package, and tried to replicate the following example from the documentation:
df %>% table1(x, y, z, splitby = ~a) %>% summarise(count = n())
but it produced the following error:
Error in UseMethod("summarise") : no applicable method for 'summarise' applied to an object of class "table1"
Please let me know if this a typo in the documentation, and whether you are able to pass dplyr summary functions to table1. I've been messing around with it but it doesn't seem possible.
Thanks!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
Hi,
I was trying to use table1 from the furniture package, and tried to replicate the following example from the documentation:
df %>% table1(x, y, z, splitby = ~a) %>% summarise(count = n())
but it produced the following error:
Error in UseMethod("summarise") : no applicable method for 'summarise' applied to an object of class "table1"
Please let me know if this a typo in the documentation, and whether you are able to pass dplyr summary functions to table1. I've been messing around with it but it doesn't seem possible.
Thanks!