Re: [R] simple problems

From: Domenico Vistocco <>
Date: Thu, 06 Dec 2007 22:49:22 +0100

marciarr wrote:
> Hello R users,
> I have been looking through Help files and Nabble list for the answers for
> these simple questions, but it seems to be fruitless.
> 1- in a data frame with two columns, x and y, how do I get the corresponding
> value of x to, let's say, the minimum value of the y column (min (data$y)) ?
> 2- how do I solve a simple equation? Considering the equation y= exp(-x)^12,
> I would like to find the values of x for, for example, y=0.01, so
> exp(-x)^12=0.01. How do I do that using R?
I know there is solve for linear equations, but I do not know if there is a generic solver for other equations.
You could implement it using a numerical approach (perhaps it is yet in some package).

domenico mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 06 Dec 2007 - 22:12:56 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 06 Dec 2007 - 22:30:17 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.