[R] Transformation of variables in double integral in order to evaluate it in R

2012-02-21 Thread hahania
I am wondering if i got this thing right I have a function of two variables ( lambda and nu) and three hyperparameters(a,b,c) library(compoisson) # function for finding inverse of k invk <- function(x,a=1,b=1,c=1){ if (b/c<=log(factorial(floor(a/c)))+(a/c-floor(a/c))*log(floor(a/c)+1)) sto

Re: [R] Transformation of Variables

2009-02-16 Thread jim holtman
It would be useful to have some sample input data and then what you expect as output. You can always convert the characters to factors and then use the integer values assigned. On Mon, Feb 16, 2009 at 2:00 AM, Arup wrote: > > I have a data frame in R where all the variables are character in nat

Re: [R] Transformation of Variables

2009-02-16 Thread David Winsemius
There are a series of coercion functions, all beginning with "as." which are designed to return (when possible) objects of specified types. Since you offer three examples, only one of which I recognize as a valid R type, I am wondering what R text you have been using? -- David Winsemius O

[R] Transformation of Variables

2009-02-15 Thread Arup
I have a data frame in R where all the variables are character in nature. kindly let know how I can transform these character variable into say "numeric","Categorical","continuous" etc.Please provide me with the proper syntax. Thank you in advance. -- View this message in context: http://www.