Closed rdstern closed 1 year ago
I thought you had fixed it, so that minimum, maximum, etc were given, and even shown as dates?
@rdstern the mean/min/max/median changes for dates and OFs are fixed here: #7465 - it is just yet to be merged
I still don't see a difference in the One Variable summarise - maybe they haven't been added in there yet. For ordered factors with one variable I still get:
or for dates:
So I wondered if perhaps the changes were added to the general dialogue. So I tried this:
And it gave me this error:
The commands that gave the error were:
summary_table <- data_book$summary_table(data_name="dodoma", columns_to_summarise="date", treat_columns_as_factor=FALSE, j=1, summaries=c("summary_mean", "summary_min", "summary_max", "p25", "p75", "summary_median"))
last_table <- (mmtable2::mmtable(data=summary_table, cells=value) + mmtable2::header_top_left(variable='summary-variable'))
data_book$add_table(table_name="last_table", table=last_table, data_name="dodoma")
data_book$get_tables(data_name="dodoma", table_name="last_table")
rm(list=c("last_table", "summary_table"))
@lilyclements this seems to work well in that it never crashes. But I thought it could now produce some summaries for (ordered) factors or dates? With the dodoma data the dates give the following results:
I thought you had fixed it, so that minimum, maximum, etc were given, and even shown as dates?
With the ordered factors in the diamonds data I had wondered whether the minimum and maximum might be given - and the n-distinct would give the number of levels?