search for: commonvar

Displaying 2 results from an estimated 2 matches for "commonvar".

Did you mean: commonvars
2008 Aug 28
2
Defining environments within functions
How can I define environments within a function so that they are visible to calls to a sub-function? I have defined an objective function, ProfileErr = function(params,...) which I would like to optimize using standard routines (optim, nlminb,....) but which contains auxiliary variables which need to be updated along with params. No optimization routine in R that I have found has facilities
2008 Aug 06
2
Merging two datasets
I am facing a problem in merging two datasets. I have given codes to the names which are common in both the datasets and also to those which are uncommon. When I gave gave the following command merge(df1,df2) only those rows and columns were merged which were having common codes. When I viewed the results, only common codes are seen and the remaining entries are not seen. Can anyone guide me