Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Column naming #5

Closed
fhalbritter opened this issue Apr 20, 2015 · 3 comments
Closed

Column naming #5

fhalbritter opened this issue Apr 20, 2015 · 3 comments

Comments

@fhalbritter
Copy link

I think you should re-think the names of some of the output columns:

  • why are the four cells of the contingency table called support, b, c, and d? why do they not appear together in the table order? --> consider renaming all columns with meaningful variables names or prefix them, e.g. by cont to make clear they're conceptually linked
  • you're using a mix of camelCase and hyphenated variables. ouch. userSet, dbSet, etc. vs. cell-type, data-source, etc.
  • for abbreviations that save only one symbol, I sometimes wonder whether it's really necessary to abbreviate them at all, e.g. rnkSup (rankSup, or even rankSupport (?)), maxRnk (maxRank), etc.
@nsheff
Copy link
Owner

nsheff commented Apr 20, 2015

Please make separate issues for separate complaints :)

support just has special significance, so it gets a special name, and a
special order. it's equivalent to "a". b/c/d are just there for
reference, and don't need to be prioritized in the order.

the variables have different styles because they come from different
places. I guess I will switch everything to camelCase, since it bothers
you so much.

The abbreviation is worth saving 1 character because these are
interactively explored in R, where space counts, and "rank" is repeated
5 times, so it saves me 5 width characters on a display output, which is
always limited by the column name. It seemed, and still seems, worth it
to me.

On 04/20/2015 03:17 PM, Florian Halbritter wrote:

I think you should re-think the names of some of the output columns:

  • why are the four cells of the contingency table called /support/,
    /b/, /c/, and /d/? why do they not appear together in the table
    order? --> consider renaming all columns with meaningful variables
    names or prefix them, e.g. by /cont/ to make clear they're
    conceptually linked
  • you're using a mix of camelCase and hyphenated variables. ouch.
    /userSet/, /dbSet/, etc. vs. cell-type, /data-source/, etc.
  • for abbreviations that save only one symbol, I sometimes wonder
    whether it's really necessary to abbreviate them at all, e.g.
    /rnkSup/ (/rankSup/, or even /rankSupport/ (?)), /maxRnk/
    (/maxRank/), etc.


Reply to this email directly or view it on GitHub
#5.

@fhalbritter
Copy link
Author

Ok, separate issues in future. Mind you, these are not "complaints", but rather suggestions.

I can think of very few cases where "b", "c", "d" make acceptable variable names.

Thank you. I understand they come from different places, but since you're in control of all places, why not standardize them? Or, if you choose to have different naming conventions for annotation files, and for within R, convert between them as necessary.

Righto. In that case I'd vote for going 100% teenager. usrSet, dbSet, dscr, pValLog, suprt, fName, ... I've just saved you another 15 characters or thereabout.

Just joking, ignore the last point.

@nsheff
Copy link
Owner

nsheff commented Apr 24, 2015

I propose that the case where c, b, and d correspond to variables in a statistical model) is exactly such a case where they are acceptable variable names.

@nsheff nsheff closed this as completed in eb49f37 Apr 24, 2015
nsheff pushed a commit that referenced this issue Apr 24, 2015
nsheff pushed a commit that referenced this issue Apr 24, 2015
I needed to redefine the colnames in the calc function.
nsheff pushed a commit that referenced this issue May 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants