[R] Read SAS data

2010-03-25 Thread Nicola Sturaro Sommacal
can you provide an alternative way to import SAS data directly from R? Thank you very much. -- Nicola Sturaro Sommacal Quantide srl http://www.quantide.com [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat

Re: [R] Read SAS data

2010-03-26 Thread Nicola Sturaro Sommacal
. 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://www.R

[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

Re: [R] Difference between times

2014-04-19 Thread Nicola Sturaro Sommacal
gt;> 1: In strptime(x, format, tz = tz) : unknown timezone 'CEST' >> 2: In as.POSIXct.POSIXlt(as.POSIXlt(x, tz, ...), tz, ...) : >>unknown timezone 'CEST' >> > dt2 = as.POSIXct("2014-04-18 09.00", format="%Y-%m-%d %H.%M", tz = &g

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

[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]]

[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 contain

[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 is

[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 ar

Re: [R] avoid s3 methods

2011-10-18 Thread Nicola Sturaro Sommacal
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: sorry Uwe for the previous reply, not to the list. 2011/10/18 Uwe Ligges > > > On 18.10.2011 10:37, Nicola Sturaro Somma

Re: [R] avoid s3 methods

2011-10-18 Thread Nicola Sturaro Sommacal
Thank you again. Nicola 2011/10/18 Uwe Ligges > > > 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. >> >

[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 https://stat.e

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.or

[R] Table with different digit number

2010-09-28 Thread Nicola Sturaro Sommacal (Quantide srl)
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.quantid

Re: [R] Table with different digit number

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

[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: density(1:

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

2010-11-03 Thread Nicola Sturaro Sommacal (Quantide srl)
> 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) > wrote: > > Hello! > > > > Som

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

2010-11-03 Thread Nicola Sturaro Sommacal (Quantide srl)
t; > > Dear Nicola, > > > > > > There are undoubtedly people here who are familiar with > > both S+ and R, > > > but they may not always be around or get to every question. In that > > > case there are (at least) two good options for you: > > &

[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 that

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

2010-11-04 Thread Nicola Sturaro Sommacal (Quantide srl)
-- > > From: r-help-boun...@r-project.org > > [mailto:r-help-boun...@r-project.org] 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] dens