search for: nice_names

Displaying 3 results from an estimated 3 matches for "nice_names".

Did you mean: nice_name
2023 May 06
1
Change DEFAULTDEPARSE to DEFAULTDEPARSE | SHOWATTRIBUTES ?
The deparse options used by default by 'deparse' and 'dput' are c("keepNA", "keepInteger", "niceNames", "showAttributes") but Defn.h still has #define DEFAULTDEPARSE 1089 /* KEEPINTEGER | KEEPNA | NICE_NAMES, used for calls */ i.e., with the SHOWATTRIBUTES bit turned off. Is that on purpose? Note that this leads to weird things like: > (expr <- call("is.matrix", matrix(1:4, 2L, 2L))) is.matrix(1:4) > eval(expr) [1] TRUE which can confuse anyone not paying clo...
2007 Jun 28
23
DRYing link_to with a symbol
Hi, I just put in a patch that allows you to DRY up this: <%= link_to @company.name, @company %> to this: <%= link_to :name, @company %> The symbol indicates the method to be called on the object passed in the link_to options. http://dev.rubyonrails.org/ticket/8789 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the
2018 Mar 25
0
R-devel Digest, Vol 181, Issue 22
...p. Naming depends on whether ? arguments are named and on some optional arguments. Here is an example. args(df_stats) ## function (formula, data, ..., drop = TRUE, fargs = list(), sep = "_", ## format = c("wide", "long"), groups = NULL, long_names = TRUE, ## nice_names = FALSE, na.action = "na.warn") df_stats(Sepal.Length ~ Species, data = iris, mean, sd, R = range, Q = quantile) ## Species mean_Sepal.Length sd_Sepal.Length R_1 R_2 Q_0% Q_25% Q_50% Q_75% Q_100% ## 1 setosa 5.006 0.3524897 4.3 5.8 4.3 4.800 5.0 5.2 5.8...