[R] surface interpolating 3d

2009-04-23 Thread calpeda
Hi all, When you want to draw a surface with a mathematics program you need of two vectors x and y and a matrix z. Then you plot the surface. For example: x=[1 2 3]; y=[5 6 7]; z=[1 2 3 4 5 6 7 8 9]; For my applications I have a 3 vectors x, y, z, that are the coordinates x, y, and z of poin

[R] re ad.table

2009-04-06 Thread calpeda
Hi, I ve been searching a lot in internet..but I can t find a solution Attached, you find a file. I need for each (Materiale, tpdv, UM) to find sum,avg and count My idea was to aggregate for the 3 parameters ..but I don t know how to get the numeric value (SUM,COUNT,AVG) I need. Can you help me? t

[R] SUM,COUNT,AVG

2009-04-06 Thread calpeda
Hi, I ve been searching a lot in internet..but I can t find a solution Attached, you find a file. I need for each (Materiale, tpdv, UM) to find sum,avg and count My idea was to aggregate for the 3 parameters ..but I don t know how to get the numeric value (SUM,COUNT,AVG) I need. Can you help me? t

Re: [R] list substring

2009-04-01 Thread calpeda
I was suggested to use x = data.frame(string = c( "x1", "x2", "x3")) x apply(x,1,substr,1,4) and it's worked good! Thank you all Wacek Kusnierczyk wrote: > > calpeda wrote: >> thank you, >> but I m importing data from a tx

Re: [R] list substring

2009-04-01 Thread calpeda
thank you, but I m importing data from a txt file and I have a matrix of n*1 The function str seems to work only from 1*n Wacek Kusnierczyk wrote: > > calpeda wrote: >> hi >> I ve a list of item x = ( "x1" >>

[R] list substring

2009-04-01 Thread calpeda
hi I ve a list of item x = ( "x1" "x2" "x3") I need to extract a new vector y = ( "", "", "" ) I mean, for e