[R] How to do a backward calculation for each record in a dataset
jrkrideau at inbox.com
Sun Feb 17 18:08:07 CET 2013
This sounds a bit too much like homework.
And in any case https://github.com/hadley/devtools/wiki/Reproducibility
Kingston ON Canada
> -----Original Message-----
> From: asltjoey.rsoft at gmail.com
> Sent: Sun, 17 Feb 2013 20:10:13 +0700
> To: r-help at r-project.org
> Subject: [R] How to do a backward calculation for each record in a
> Hi Experts,
> I have a dataset of 3 columns:
> customer.name product cost
> John Toothpaste 30
> Mike Toothpaste 45
> Peter Toothpaste 40
> And I have a function of cost whereby
> cost = 3.40 + (1.20 * no.of.orders^2)
> I want to do a backward calculation for each records (each customer) to
> find his no.of.orders and create a new column named "no.of.orders" in
> dataset but I don't know how to do.
> Please help me.
> Thank you everyone,
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!
More information about the R-help