Re: [R] Difference between times

2014-04-19 Thread Nicola Sturaro Sommacal
= as.POSIXct(2014-04-18 09.00, format=%Y-%m-%d %H.%M, tz = CET) dt1-dt2 Time difference of -2 hours Hope this helps, Rui Barradas Em 18-04-2014 17:13, Nicola Sturaro Sommacal escreveu: Hi. I am new to POSIX and I'd like to understand the reason of this difference. dt1 = as.POSIXct(2014

Re: [R] Difference between times

2014-04-19 Thread Nicola Sturaro Sommacal
I forgot: sysname release Linux 3.5.0-48-generic version #72-Ubuntu SMP Mon Mar 10 23:18:29 UTC 2014 2014-04-19 14:03 GMT+02:00 Nicola Sturaro Sommacal mailingl

[R] Difference between times

2014-04-18 Thread Nicola Sturaro Sommacal
Hi. I am new to POSIX and I'd like to understand the reason of this difference. dt1 = as.POSIXct(2014-03-29 09.00, format=%Y-%m-%d %H.%M) dt2 = as.POSIXct(2014-03-30 09.00, format=%Y-%m-%d %H.%M) dt2-dt1 dt1[1] 2014-03-29 09:00:00 CET dt2[1] 2014-03-30 09:00:00 CEST dt2-dt1 Time difference of

[R] Compile R package under Windows

2011-11-22 Thread Nicola Sturaro Sommacal
Hi. I need to compile an R package under Windows, to get a zip file. I can't used the web services, because it is avalaible only for the current version of R while I need of a package compiled with R 2.13.1. The package contain C code that requires the GSL C library. In your experience, what

[R] avoid s3 methods

2011-10-18 Thread Nicola Sturaro Sommacal
Hello everybody. My issue arise when I build a package with my functions. This package is for personal purposes only and it will not submitted to CRAN. Anyway, this may be an opportunity for myself to clear the S3 methods concept. I read the R manual and some books about R programming but they

Re: [R] avoid s3 methods

2011-10-18 Thread Nicola Sturaro Sommacal
Sturaro Sommacal wrote: Hello everybody. My issue arise when I build a package with my functions. This package is for personal purposes only and it will not submitted to CRAN. Anyway, this may be an opportunity for myself to clear the S3 methods concept. I read the R manual and some books

Re: [R] avoid s3 methods

2011-10-18 Thread Nicola Sturaro Sommacal
Thank you again. Nicola 2011/10/18 Uwe Ligges lig...@statistik.tu-dortmund.de On 18.10.2011 12:23, Nicola Sturaro Sommacal wrote: Thank you very much for your reply. You confirm what I suppose. Can you give me a reference of that you wrote? I need it for a report. Thanks again. PS

Re: [R] density() function: differences with S-PLUS

2010-11-04 Thread Nicola Sturaro Sommacal (Quantide srl)
] On Behalf Of Nicola Sturaro Sommacal (Quantide srl) Sent: Wednesday, November 03, 2010 3:34 AM To: Joshua Wiley Cc: r-help@r-project.org Subject: Re: [R] density() function: differences with S-PLUS Dear Joshua, first of all, thank you very much for reply. I hoped that someone

Re: [R] density() function: differences with S-PLUS

2010-11-03 Thread Nicola Sturaro Sommacal (Quantide srl)
, Josh On Tue, Nov 2, 2010 at 3:04 AM, Nicola Sturaro Sommacal (Quantide srl) mailingl...@sturaro.net wrote: Hello! Someone know what are the difference between R and S-PLUS in the density() function? For example, I would like to reply this simple S-PLUS code in R, but I don't

Re: [R] density() function: differences with S-PLUS

2010-11-03 Thread Nicola Sturaro Sommacal (Quantide srl)
multiple of 'width' if this is numeric. Which makes me wonder if this works for you (in R)? density(1:1000, width = 4) Cheers, Josh On Tue, Nov 2, 2010 at 3:04 AM, Nicola Sturaro Sommacal (Quantide srl) mailingl...@sturaro.net wrote: Hello

[R] smooth: differences between R and S-PLUS

2010-11-03 Thread Nicola Sturaro Sommacal (Quantide srl)
Hi! I am studying differences between R and S-PLUS smooth() functions. I know from the help that they worked differently, so I ask: - exist a package that permit to have the same results? - alternatively, someone know how can I obtain the same results in R, using a self made script? I know

[R] density() function: differences with S-PLUS

2010-11-02 Thread Nicola Sturaro Sommacal (Quantide srl)
Hello! Someone know what are the difference between R and S-PLUS in the density() function? For example, I would like to reply this simple S-PLUS code in R, but I don't understand which parameter I should modify to get the same results. S-PLUS CODE: density(1:1000, width = 4) R-CODE:

Re: [R] Table with different digit number

2010-09-29 Thread Nicola Sturaro Sommacal (Quantide srl)
for the HTML table, because HTML ignores multiple white spaces . Any suggestion? Thanks in advance, Nicola 2010/9/28 Henrique Dallazuanna www...@gmail.com Try this: df[1,] - as.character(df[1,]) On Tue, Sep 28, 2010 at 8:48 AM, Nicola Sturaro Sommacal (Quantide srl) mailingl...@sturaro.net

[R] Table with different digit number

2010-09-28 Thread Nicola Sturaro Sommacal (Quantide srl)
to transform to as.character, but cells result aligned to left and I don't like this solution. At the end of my work I need to export the table to HTML, so this can be do also with xtable package. Thanks in advance for your help. Nicola Sturaro Sommacal -- Quantide srl http://www.quantide.com

[R] Different decimal places in a matrix

2010-07-29 Thread Nicola Sturaro Sommacal
Hi! I have a ftable object in which some row contains integers and some other contains a percentage that I would like to show with two digits after the dot. I tried something like ftblP[index,] = as.character(round(ftblP[index, ], 2)) where the index vector contains the number of the rows

[R] Sum list elements

2010-07-27 Thread Nicola Sturaro Sommacal
Hi! I have a list of 24 elements, all of the same type (dataframe, for example). I am looking for an alternative to mylist[[1]] + mylist[[2]] + ... + mylist[[24]] to obtain the sum. Anyone can help me? Thanks in advance. Nicola S. [[alternative HTML version deleted]]

Re: [R] Read SAS data

2010-03-26 Thread Nicola Sturaro Sommacal
works. Thank you. -- Nicola Sturaro Sommacal Quantide srl http://www.quantide.com [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

[R] Read SAS data

2010-03-25 Thread Nicola Sturaro Sommacal
very much. -- Nicola Sturaro Sommacal Quantide srl http://www.quantide.com [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] Avoid overlap of labels in a scatterplot

2008-10-13 Thread Nicola Sturaro Sommacal
Felix Andrews ha scritto: thigmophobe.labels in the plotrix package tries to avoid label crashes, and Thank you, but I choosed There is also pointLabel() in the maptools package. This work fine. Thank you very much. Nicola __ R-help@r-project.org

[R] Avoid overlap of labels in a scatterplot

2008-10-12 Thread Nicola Sturaro Sommacal
Dear R users, I realise a scatterplot by plot(x,y) and I add the labels by text(x,y,labels,pos=1). How can I avoid, automatically, that labels overlap, like happen in SPSS? Thank you. Nicola Sturaro __ R-help@r-project.org mailing list