As Burt and Jeff stated that there is an infinite set of solutions. If you are interested in a particular solution, such as getting 15.0078, you can easily achieve that by trial and error; that is fix 1 or 2 variables and change the the rest till you get the desired solution. I tried that and came up with the same solution as you listed. if you are interested in a set of solutions within a tolerance, then that will be a different story.
HTH EK On Fri, Dec 8, 2017 at 1:37 AM, Benjamin Sabatini <sunsca...@hotmail.com> wrote: > Hi, > > I'm trying to find a way to determine what multiples of the combination of > three or more numbers equals a forth number. > > So, if I had a number set like: > > c(13.4689, 12.85212, 17.05071) > > What combination and multiples of these numbers would average to 15.0078? > (so, something that would tell me x, y, and z in (x*13.4689 + y*12.85212+ > z*17.05071) / x+y+z) = 15.0078 > > I think this is doable with aggregate? > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/ > posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.