datacarpentry / NEON-R-Spatial-Vector-deprecated

Lessons that teach how to 1) open shapefiles in R, 2) use shapefiles to extract values from rasters in R NOTE: the published version of these lessons can be found here: http://neondataskills.org/tutorial-series/vector-data-series/
http://data-lessons.github.io/NEON-R-Spatial-Vector
Other
6 stars 6 forks source link

Naming objects - dash, period, underscores, camelcase ? #4

Closed lwasser closed 8 years ago

lwasser commented 8 years ago

Hi @tracykteal @jduckles what is the convention for naming objects in lessons. I see a combination of periods, dashes, underscores and camel case. It would be nice to have a standard for these lessons. Thank you!

jsta commented 8 years ago

I am a big fan of Richie Cotton's style guide @ http://4dpiecharts.com/r-code-style-guide/

lwasser commented 8 years ago

Wow - that's great! I love the idea of having a guide. We should use that!

Joe - also, i made some edits to the lessons to try to get them to flow. I moved plotting with attributes to the attributes section. I also added some challenges, etc. Lesson 03 needs a bit more work - i placed some notes in the file.

But if any changes that I made bother you, please let me know! The plotting issue is still up in the air a bit - we are having a discussion in the issues in the making pretty maps repo if you have thoughts on plot vs ggplot for final quality maps :)

Leah

Leah A. Wasser, Ph.D. Supervising Scientist Education / Data Products National Ecological Observatory Network (NEON)

Boulder, Colorado

For free tutorials and resources on working with spatio-temporal data: http://www.neondataskills.orghttp://www.neondataskills.org/

From: jsta notifications@github.com<mailto:notifications@github.com> Reply-To: data-lessons/NEON-R-Spatial-Vector reply@reply.github.com<mailto:reply@reply.github.com> Date: Tuesday, October 27, 2015 at 1:54 PM To: data-lessons/NEON-R-Spatial-Vector NEON-R-Spatial-Vector@noreply.github.com<mailto:NEON-R-Spatial-Vector@noreply.github.com> Cc: Leah Wasser lwasser@neoninc.org<mailto:lwasser@neoninc.org> Subject: Re: [NEON-R-Spatial-Vector] Naming objects - dash, period, underscores, camelcase ? (#4)

I am a big fan of Richie Cotton's style guide @ http://4dpiecharts.com/r-code-style-guide/ On Oct 27, 2015 3:42 PM, "Leah Wasser" notifications@github.com<mailto:notifications@github.com> wrote:

Hi @tracykteal https://github.com/tracykteal @jduckles https://github.com/jduckles what is the convention for naming objects in lessons. I see a combination of periods, dashes, underscores and camel case. It would be nice to have a standard for these lessons. Thank you!

Reply to this email directly or view it on GitHub https://github.com/data-lessons/NEON-R-Spatial-Vector/issues/4.

Reply to this email directly or view it on GitHubhttps://github.com/data-lessons/NEON-R-Spatial-Vector/issues/4#issuecomment-151624170.

jduckles commented 8 years ago

At swcarpentry we typically use underscores like -> this_is_my_variable

lwasser commented 8 years ago

that's good to know! Thank you @jduckles !! this also is inline with the style guide that @jsta mentioned. let's go with it!