Re: [R] how to solve a min problem

2007-07-04 Thread domenico pestalozzi
Graves domenico pestalozzi wrote: I know it's possible to solve max e min problems by using these functions: nlm, optimize, optim but I don't know how to use them (...if possible...) to solve this problem. I have a personal function called b_func(S) where S is an input array (1

[R] how to solve a min problem

2007-07-02 Thread domenico pestalozzi
I know it's possible to solve max e min problems by using these functions: nlm, optimize, optim but I don't know how to use them (...if possible...) to solve this problem. I have a personal function called b_func(S) where S is an input array (1 X n) and I'd like: minimize mean(S) with 0

[R] defining function into another function

2007-01-26 Thread domenico pestalozzi
If I define my function that includes others internal functions, how can I define the parameter's functions? That is: myfunc-function(y){... func.int1- function(x){ sum(x}} func.int2-function(z){funct.int1(z)^2} . } Is it possible to use func.int1 into

[R] how to change the dataframe labels' ?

2007-01-24 Thread domenico pestalozzi
I import a dataframe composed by 2 variables and 14000 cases. Now I need the labels of the cases sorted by the second variable V2, but if I sort the dataframe according to the second variable: mydataframe- mydataframe[order(mydataframe$V2),] I notice that the labels are always the same (that is,

[R] memory limits in R loading a dataset and using the package tree

2007-01-04 Thread domenico pestalozzi
I think the question is discussed in other thread, but I don't exactly find what I want . I'm working in Windows XP with 2GB of memory and a Pentium 4 - 3.00Ghx. I have the necessity of working with large dataset, generally from 300,000 records to 800,000 (according to the project), and about 300