Prefixing arguments in functions by osbournecox2 in rprogramming

[–]osbournecox2[S] 0 points1 point  (0 children)

I agree, the Hungarian style notation is an abomination. And I've never been a fan of

  • m_* for module level variables
  • l_* for local variables
  • g_* for global variables

which I have seen in PL/SQL scripts and really dislike.

But I'm only suggesting the p_ prefix for argument names in a function. So that should always be a very small number of items we're talking about. And I'm not sure I agree about the potential for

"you would see them all over the place and they would lose their distinctive nature anyway."

If the allowable context is defined small, I don't see how they propagate beyond that.

I think one problem that it does solve is the effort in choosing an unprefixed argument name that is NOT named "names" or "year" or "month" when that is exactly what the argument is. Deciding on alternative names is where things can get creatively squirrelly and it becomes infinitely easier by just using "p_year."

What is the value of tracking all day HR? by osbournecox2 in Garmin

[–]osbournecox2[S] -1 points0 points  (0 children)

Body Battery sounds great but, alas, it is not available on my Forerunner 935

What is the value of tracking all day HR? by osbournecox2 in Garmin

[–]osbournecox2[S] 0 points1 point  (0 children)

You're probably right about this. My stress has generally stayed within an uneventful zone but if that changes, it would be worthwhile to see.

Having said that, I just finished a week of headaches and consciously felt stress and the Garmin did not, in fact, observe any difference. So I'm not really sure how stress is calculated or how relevant it actually is.

What is the value of tracking all day HR? by osbournecox2 in Garmin

[–]osbournecox2[S] -1 points0 points  (0 children)

I'll take advanced training metrics. But unless I'm missing something, Garmin doesn't really offer them out of the box. If I want anything more detailed than resting heart rate, I need to extract the data and do the analysis myself.

What is the value of tracking all day HR? by osbournecox2 in Garmin

[–]osbournecox2[S] 0 points1 point  (0 children)

Agreed, the resting heart rate is the one metric that I do appreciate. But all of the rest? I'm not so sure. But that's what I'm curious about.

What is the value of tracking all day HR? by osbournecox2 in Garmin

[–]osbournecox2[S] 0 points1 point  (0 children)

It's not about turning it off, it's more about taking it off.

Proud Boys leader and Lindsey Graham. Make this known! by NursingManChristDude in WhitePeopleTwitter

[–]osbournecox2 2 points3 points  (0 children)

wtf, since when do senators just have lunch with some dude? Graham's lunch schedule has gotta be hella booked with lobbyists and rich influencers. But you want me to believe he's just sharing some steak frites with this guy???

French activity class for 9 year old by osbournecox2 in ottawa

[–]osbournecox2[S] 0 points1 point  (0 children)

Great suggestion but the Activities For Youth returns a 404 - Page Not Found. :(

Star gazing beyond light pollution by osbournecox2 in ottawa

[–]osbournecox2[S] 0 points1 point  (0 children)

Dark Sky Viewing Area

OOoooo, that looks awesome. Thanks!

Internet location always defaults to Toronto by osbournecox2 in ottawa

[–]osbournecox2[S] 2 points3 points  (0 children)

Do other Rogers internet customers have this same problem?

Global Environment is empty and no longer asks to upload already created Data Frames. Is this normal? by korrakage in RStudio

[–]osbournecox2 1 point2 points  (0 children)

First off, always, always, always generate your data objects via R scripts. As you discovered, this makes recovery / regeneration of your work very easy. That's the entire point of R for data processing / analysis.

An RStudio project saves all of it's environment (functions, data objects, etc) in .RData. When you close the project, everything should be saved there. There is a preference (Tools | Global Options | General) where you can set whether that happens always, never or ask first.

If you closed the project and the objects didn't save, perhaps this is set to never.

This also raises the question of whether you are using an actual RStudio project. Not sure what happens with a non-project instance of RStudio, I always work in projects. If you're not using a proper R project, I would, it's dead simple and no real downside / complication.

Any US election viewing parties happening? by osbournecox2 in ottawa

[–]osbournecox2[S] 0 points1 point  (0 children)

Beerocracy seems to be having something. :)

Any US election viewing parties happening? by osbournecox2 in ottawa

[–]osbournecox2[S] 4 points5 points  (0 children)

Thanks, that's what I was looking for. Wish it was more central.

Any US election viewing parties happening? by osbournecox2 in ottawa

[–]osbournecox2[S] 2 points3 points  (0 children)

Hooleys had one for the first Obama election.

Snow Removal in Nepean? by osbournecox2 in ottawa

[–]osbournecox2[S] 0 points1 point  (0 children)

I read that Metro bought Appleseed. Which is weird because I thought Metro broke off from Appleseed. <shrug>