Re: [R] how to combine data of several csv-files

2007-07-31 Thread 8rino-Luca Pantani
Hi Jim, that's exactly what I'm looking for. Thank you so much. I think, I should look for some further documentation on list handling. I think I will do the same... Thanks to Jim I learned textConnection and rowMeans. Jim, could you please go a step further and tell me how to

Re: [R] how to combine data of several csv-files

2007-07-30 Thread 8rino-Luca Pantani
[5]) mean(df.my$v2[6],df.my$v3[6],df.my$v4[6]) the same for v5, v6 and v7 further, I'm not sure how to avoid the list, because this is the result of the processing I did before... Ciao, Antje 8rino-Luca Pantani schrieb: I hope I see. Why not try the following, and avoid lists, which

[R] substituting dots in the names of the columns (sub, gsub, regexpr)

2007-07-26 Thread 8rino-Luca Pantani
Dear R users, I have the following two problems, related to the function sub, grep, regexpr and similia. The header of the file(s) I have to import is like this. c(y (m), BD (g/cm3), PR (Mpa), Ks (m/s), SP g./g., P (m3/m3), theta1 (g/g), theta2 (g/g), AWC (g/g)) To get rid of spaces and

[R] I: differences between R and S (reproducing a plot from a book )

2006-09-28 Thread 8rino-Luca Pantani
Dear R-Users, I'm currently studying the book Statistical model in S by Chambers J.M and Hastie T.J.. At page n 3 there's a plot showing the means of a variable at each of the levels of the factors of an experiment. I hope to be able to reproduce it here by ASCII art. B6 S

[R] I: a coloured band within each panel of a lattice bwplot

2004-11-05 Thread 8rino-Luca Pantani
Hi all, I would like to add to each panel of a bwplot a coloured central band, centered on the mean of the values, being its width +- 2% of the mean itself. I know how to add lines, i.e. something like bwplot(X ~ Y|FACTOR data=my.df, panel= function(x, y){ panel.bwplot(x,

[R] indexing within the function aggregate

2004-10-26 Thread 8rino-Luca Pantani
Hi all, I'm trying to work out the following problem, but I can't imagine how. I have the following (much reduced oversimplified) dataset My.df - cbind.data.frame(PPM=c(15.78, 15.81, 15.87, 15.83, 15.81, 15.84, 15.91, 15.90, 15.83, 15.81, 15.93, 15.83,

R: [R] removing observations

2004-08-13 Thread 8rino-Luca Pantani
by is perhaps what you looking for try to write ?by for help I have a panel data set (25 years) and I would like to break it up by year, and run a few tests. How is this done in R? In STATA it is quite simple (keep if year =1970). If someone could give me an example of how to do it for a

[R] Xemacs do not want to execute help.start() with R1.9.1

2004-08-11 Thread 8rino-Luca Pantani
Hi all, I 've just reinstalled from the scratch my Windows 2000 (Italian version) on a formatted HD, because I like to clean the environment from time to time (say once a year). I'm currently using XEmacs-21.4.13 and R (rw1091) and Xemacs is configured as described in

[R] (Lattice) How to improve the readability of a bwplot, i.e. separating groups somehow

2004-08-03 Thread 8rino-Luca Pantani
Hi all, first of all thanks for the answer to my previous question on lattice some time ago. In particular to Patrick Connolly for advices on netiquette (I hope this time I'm doing right) and to Deepayan Sarkar fro the help on lattice. Now, my nowaday problem. Please consider the following

[R] using perm.cond index.cond in lattice package

2004-07-05 Thread 8rino-Luca Pantani
Dear R users, this is my first question to the list. I hope it will be not a trivial one. My problem is to change the order in which the panel are plotted in a lattice/Trellis plot. I've read the S-plus Trellis Graphics user manual, in which there is a function called reorder.factor, that, as far