Open VCF opened 5 years ago
What happens with the column that values are being calculated for, does it just get added to the rest of the data at the end, or do I have to make it beforehand, or does something else happen?
Did you try the example code?
Did it (i think)! For reference name of area and volume columns are: Area and Volume
Ok ... I'm looking at 1868df0 ... You need to do a few things:
1500
is coming from. Without explanation, this looks like a Fudge Factor./ 2
is coming from.Looking at commit 2093192 - You're putting in comments as if they were a discussion in a paper. That's not wrong, per se, but it's also not always the best approach. It's often better to break the comments into small, "digestable" bits. For that matter, it's often good to break your code into smaller bits - and in particular, anytime you find yourself re-typing the same code, you should probably "break out" the repeated bit into either a new variable, or in some cases its own function (but we won't work on functions here). Example:
## Bad
c1 <- x1 * 1.07 * 1.05
c2 <- x2 * 1.07 * 1.05
## Better
## We apply a 7% sales tax and a 5% commission for both purchases
c1 <- x1 * 1.07 * 1.05
c2 <- x2 * 1.07 * 1.05
## Best
markup <- 1.07 * 1.05 # 7% sale tax, 5% sales commission
## Calculate total costs of both purchases, with markup
c1 <- x1 * markup
c2 <- x2 * markup
Ok, here's some sample code:
I want you to look at what I've done above to make derived columns, and think about how you can use these methods to calculate some useful values for your pond.