IDEMSInternational / R-Instat

A statistics software package powered by R
http://r-instat.org/
GNU General Public License v3.0
38 stars 102 forks source link

Is the latest version of One Variable > Summarise > Customised installed? #7910

Closed rdstern closed 1 year ago

rdstern commented 1 year ago

@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: image

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?

image

lilyclements commented 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

rdstern commented 1 year ago

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: image

or for dates: image

So I wondered if perhaps the changes were added to the general dialogue. So I tried this:

image And it gave me this error:

image 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"))