UM-R-for-EnvSci-Registered-Student / General-Discussion

Public repo for general discussion about the course and assignments
1 stars 0 forks source link

Code re-use and citation question #17

Closed aguttormson closed 3 years ago

aguttormson commented 3 years ago

Do we need to cite sources if we use StackOverflow or some other resource for information on how to use certain functions, but don't directly take chunks of code?

For example, I was looking into how to create a subset of rows from a table by only including rows which have column values which appear in a second table of values. I looked it up on StackOverflow and found this response to a similar question. Is it ok to incorporate the ideas and functions presented in the solution -- in this case using filter() and %in% -- without citing? Or is it better to just play it safe and include a reference to that thread?

peperg commented 3 years ago

Hi @aguttormson,

No, if you are just reviewing a function documentation, or get inspiration from a post you don't need to cite that. Only if you directly copy-paste a section of code.

I hope that clarifies it.

Pepe

aguttormson commented 3 years ago

Thanks!