[R] conversion from SAS

2005-07-28 Thread alessandro carletti
Hi, I wonder if anybody could help me in converting this easy SAS program into R. (I'm still trying to do that!) PROC IMPORT OUT= WORK.CHLA_italian DATAFILE= C:\Documents and Settings\carleal\My Documents\REBECCA\stat\sas\Allnutrients.xls DBMS=EXCEL2000 REPLACE;

[R] using for loop

2005-08-05 Thread alessandro carletti
Hi everybody, how can I create a loop for plotting parameters for each level of a variable, for example: NAME temperature depth aaa 23 -1 aaa 22 -2 aaa 24 -1 bbb 23 -4 bbb 23 -1 aaa 22 -1 bbb 22

[R] selecting outliers

2005-08-08 Thread alessandro carletti
Hi everybody, I'd like to know if there's an easy way for extracting outliers record from a dataset, in order to perform further analysis on them. Thanks Alessandro __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] vector vs array

2005-08-08 Thread alessandro carletti
Hi! OK, I'm trying to select some useful outliers from my dataset: I defined 11 treshold values (1 for each level of a variable (sampling site) as follows: tresholds-function(x) { tapply(x,mm$NAME,FUN=mean ,simplify = T, na.rm=T)-med tapply(x,mm$NAME,FUN=sd ,simplify = T, na.rm=T)-standev

[R] more on vector vs array

2005-08-09 Thread alessandro carletti
Ok, thanks, I'll try with a simplier example: I have a vector with 4 levels dataframe 1 station temp aaa12 aaa13 bbb12 bbb20 aaa23 bbb21 ccc30 ccc18 ddd15 aaa11 ddd15 ddd10 and a thresholds

[R] date format

2005-08-10 Thread alessandro carletti
Hi, I have a problem with a vector (x) containing dates in format -mm (I'm working with monthly means): how can I convert it in date format, so that I can plot it recognising trends for my variables? class(x) says: factor Thanks Alex __

[R] select previous date

2005-08-18 Thread alessandro carletti
Hi everybody, could anyone help me in finding a way for selecting from a dataframe each row that comes before another that matches a condition? EXAMPLE: df raw.number name date temp 1aaa 2001-04-15 15 2aaa 2001-01-15 12 3aaa 2001-03-15 13

[R] tie diagrams

2005-08-29 Thread alessandro carletti
Hi everybody, can anyone help me in finding informations about tie diagrams? (And how to get such graphics with R). Thanks Alessandro Carletti __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

[R] irregular time series

2006-03-14 Thread alessandro carletti
Hi everybody, I'm currently working with time series: do you know if there's something like stl(package stats, seasonal decomposition of time series by loess) working also with objects of class irts? Thanks Alessandro __ R-help@stat.math.ethz.ch

[R] date format

2005-04-27 Thread alessandro carletti
Hi, I'm trying to convert a vector containing dates in character format (dd/mm/yy): mdy.date (from date package) seems to be able to do that, but it returns to me a vector containing julian dates... but negative! for example: 16/12/03 is converted into -20470 it is because R recognizes year

[R] Multiple regression

2005-05-02 Thread alessandro carletti
Hi, what package could I install to best perform a Multiple Linear Regression (and what for PCA)? Thanks Alessandro Carletti __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http

[R] selecting maximum values

2005-05-04 Thread alessandro carletti
Sorry for disturbing you with another newbie question! I have a data frame about coastal waters quality parameters: for some parameters (e.g. NH3) I have only 1 observation for each sampling station and each sampling date, while in other cases (chlorophyll) I have 1 obs for each meter-depth for

[R] clustering

2005-10-28 Thread alessandro carletti
Hi everybody, I'm performing a cluster analysis (pkg cluster) on a dataset which includes 15 variables: is there a way to know how much each variable weighs on the final clustering output? Thanks Alessandro __ R-help@stat.math.ethz.ch mailing list

[R] modify boxplot

2005-11-21 Thread alessandro carletti
Hi everybody, I'm trying to modify the boxplot just to set the upper whisker to the 90 percentile value, but I still couldn't find the solution. Can anyone help me? Thanks Alessandro Carletti __ R-help@stat.math.ethz.ch mailing list https