Re: [R] print table on plot

2012-04-27 Thread statquant2
Thank you all.
addtable2plot seem to be the best solution visually speaking.

++

--
View this message in context: 
http://r.789695.n4.nabble.com/print-table-on-plot-tp4589804p4591958.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] print table on plot

2012-04-26 Thread statquant2
Hello,
I would like to be able to plot an array on a plot, something like:
|arg1  | arg2 | arg3
val1| 0.9| 1.1| 2.4
val2| 0.33  | 0.23 | -1.4
val3| hello| stop | test
I know Rwave is good to report but don't want to use it.

? Is there a package that allow quick and dirty plot of dataframes like this
?

Thanks a lot

--
View this message in context: 
http://r.789695.n4.nabble.com/print-table-on-plot-tp4589804p4589804.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] print table on plot

2012-04-26 Thread statquant2
Hello,
ok for xtable, but how will I print the latex code generated in a plot ?

Cheers

--
View this message in context: 
http://r.789695.n4.nabble.com/print-table-on-plot-tp4589804p4590407.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] multiple density plot

2012-03-16 Thread statquant2
Hello I am looking for a special plot.

Let's suppose I have *100 days and 
  *each day I have a (1D)
distribution of the same variable.

I would like to plot 
*dates on x axis and 
*one distribution per date on the y axe. Do you know a way of doing it ?
Cheers



--
View this message in context: 
http://r.789695.n4.nabble.com/multiple-density-plot-tp4478196p4478196.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Rscript example

2012-03-01 Thread statquant2
Hi there,
I am trying to find an example how to use Rscript
Let's suppose I want to pass 3 arguments (I don't want [options] and -e
[expressions] as described in help) 

*on the command line
myRscript.R -arg1=value1 -arg2=value2 -arg3=value3

*In the script
#! /path/to/Rscript
args = commandArgs(TRUE);

From what I see args is just a string, do I do things correctly ?

--
View this message in context: 
http://r.789695.n4.nabble.com/Rscript-example-tp4436130p4436130.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Rscript example

2012-03-01 Thread statquant2
Hey Petr,
ok I was thinking that R would handle the split by itself.
I guess using eval we can even make arg1=val1 being executed by R.

Ok tx

Colin

--
View this message in context: 
http://r.789695.n4.nabble.com/Rscript-example-tp4436130p4437659.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Sorting strings

2012-02-20 Thread statquant2
Hi all, I am having difficulties to understand how R sort strings:

If I do
R) sort(c(X.,X0B))
[1] X.  X0B

So for me, as far as lexicographic order is concerned I can add whatever to
the end, the order will remain the same, but :
R) sort(c(X.Z,X0B.Z))
[1] X0B.Z X.Z

Can somebody give me a trick for the order to become lexicographic ?  



--
View this message in context: 
http://r.789695.n4.nabble.com/Sorting-strings-tp4403696p4403696.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Sorting strings

2012-02-20 Thread statquant2
Ok so it changed from 2.12.2 to 2.14.1 ??
Can somebody tell me how to modify my sort or whatever to get the save
resilt that I would get in 2.14.1 ?

Cheers

--
View this message in context: 
http://r.789695.n4.nabble.com/Sorting-strings-tp4403696p4403858.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Sorting strings

2012-02-20 Thread statquant2
I did, but this does not give the answer to my question...
Anybody knows how to tweack the behaviour of sort or how to do ?

--
View this message in context: 
http://r.789695.n4.nabble.com/Sorting-strings-tp4403696p4404091.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Sorting strings

2012-02-20 Thread statquant2
Ok I have :

R) str(R.Version())
List of 13
 $ platform  : chr x86_64-unknown-linux-gnu
 $ arch  : chr x86_64
 $ os: chr linux-gnu
 $ system: chr x86_64, linux-gnu
 $ status: chr 
 $ major : chr 2
 $ minor : chr 12.2
 $ year  : chr 2011
 $ month : chr 02
 $ day   : chr 25
 $ svn rev   : chr 54585
 $ language  : chr R
 $ version.string: chr R version 2.12.2 (2011-02-25)

R) sort(c(X.,X0B))
[1] X.  X0B
R) sort(c(X.Z,X0B.Z))
[1] X0B.Z X.Z  

I am using a linux redHat 
$ uname -a
Linux 2.6.18-238.9.1.el5 #1 SMP Fri Mar 18 12:42:39 EDT 2011 x86_64 x86_64
x86_64 GNU/Linux


--
View this message in context: 
http://r.789695.n4.nabble.com/Sorting-strings-tp4403696p4404298.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Sorting strings

2012-02-20 Thread statquant2
NICE DDE
It solves my problem !
Awesome stuff

--
View this message in context: 
http://r.789695.n4.nabble.com/Sorting-strings-tp4403696p4404424.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Cointegration critical value tables

2012-01-16 Thread statquant2
Hello all,
I am looking for complete table of critical values for cointegration unit
root test as given in
Engle and Yoo [ 1987]
Ouliaris et al. [1989]
MacKinnon [1991]

I usually find 1-5-10% values but no complete table.

Would anybody have a source or monte-carlo code implementing this?
Regards

--
View this message in context: 
http://r.789695.n4.nabble.com/Cointegration-critical-value-tables-tp4299986p4299986.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] simulating stable VAR process

2012-01-13 Thread statquant2
Hello Paul 
Thanks for the answer but my point is not how to simulate a VAR(p) process
and check that it is stable.
My question is more how can I generate a VAR(p) such that I already know
that it is stable.

We know a condition that assure that it is stable (see first message) but
this is not a condition on coefficients etc...
What I want is 
generate say a 1000 random VAR(3) processes over say 500 time periods that
will be STABLE (meaning If I run stability() all will pass the test)

When I try to do that it seems that none of the VAR I am generating pass
this test, so I assume that the class of stable VAR(p) is very small
compared to the whole VAR(p) process.



--
View this message in context: 
http://r.789695.n4.nabble.com/simulating-stable-VAR-process-tp4261177p4291835.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] access/row access/col access

2012-01-13 Thread statquant2
Hello,
I have a data.frame and I want to transfor it in a list of rows or columns.
I can do apply(myDataFrame,MARGIN=1,FUN=???)

I remember that there is a function which mean return or access column ...
something like :: or ], or [,
I can't remember can somebody refresh my memory?

--
View this message in context: 
http://r.789695.n4.nabble.com/access-row-access-col-access-tp4292531p4292531.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] simulating stable VAR process

2012-01-04 Thread statquant2
Hello all,
I looking at package dse or vars or mAr
I know how to simulate a VAR(p) process, my problem is that most of those
processes are unstable (not weakly stationary).
Do anybody know how to generate a random VAR (or VARMA even better) process
that is weakly stationary?

Thanks

--
View this message in context: 
http://r.789695.n4.nabble.com/simulating-stable-VAR-process-tp4261177p4261177.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] simulating stable VAR process

2012-01-04 Thread statquant2
More specifically.
I know that a condition for a VAR(p) process to be stable (weakly
stationary)  is that the companion form of the equation (see AWESOME Pfaff
book analysis of integrated and cointegrated time series in R) as
eigenvalues of modulus 1.

My problem is that I want to generate such processes...

When I try to generate random VAR(p) processes they seems to explode
(clearly they are not weakly stationary...)
Is there a way somebody know?

--
View this message in context: 
http://r.789695.n4.nabble.com/simulating-stable-VAR-process-tp4261177p4261210.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] generic argument passing to plot function

2011-09-28 Thread statquant2
Hello I am trying to write a function that would plot timeseries easily...
I aim at plotting two time-series on 2 different y axis sharing the same
x-axis

I succeded in doing so: 
plotTimeSerie(x,y,y2,[a lot of other args]){
...
plot()
axis.POSIXct(side=1) #here I build the x-axis 
points() #here I plot the first time serie related to y-axis
...
axis(side=2,[some args])
text(side=2,text=,[some args]) #here I build the y-left axis and annotate
with text
...
points() #here I plot the first time serie related to y-right axis
axis(side=4,[some args])
text(side=2,text=,[some args]) #here I build the y-right axis and annotate
with text

}

My problem is that I would like the user to be able to specify any
parameters he wishes for the axis/points functions.
How can I make plotTimeSerie handling any parameters and pass them into the
specified functions (points,axis...)?

--
View this message in context: 
http://r.789695.n4.nabble.com/generic-argument-passing-to-plot-function-tp3851599p3851599.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] moving xlabels in lattice

2010-11-25 Thread statquant2

Dear R users,

I am trying to move the xlab string on my xyplot, without success, I would
like it to shifted down, would one of you know a way ?

Thanks for reading
Colin
-- 
View this message in context: 
http://r.789695.n4.nabble.com/moving-xlabels-in-lattice-tp3059092p3059092.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] shifting down ylab in a plot

2010-11-24 Thread statquant2

I found it is mgp
-- 
View this message in context: 
http://r.789695.n4.nabble.com/shifting-down-ylab-in-a-plot-tp3057071p3057075.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] shifting down ylab in a plot

2010-11-24 Thread statquant2

Hi guys,
I am trying to shift down the ylab of my plot but can't find how to do it.
I tried to tune mar but it enable more room for the labels to be displayed
but it does not move to ylab as I would like.

Is there a way with par  to shift down my ylab ??

Cheers
-- 
View this message in context: 
http://r.789695.n4.nabble.com/shifting-down-ylab-in-a-plot-tp3057071p3057071.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] shifting down ylab in a plot

2010-11-24 Thread statquant2

No in fact this is not working as all main,xlab,ylab are shited if mgp is
changed
Any help ?
-- 
View this message in context: 
http://r.789695.n4.nabble.com/shifting-down-ylab-in-a-plot-tp3057071p3057081.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] shifting down ylab in a plot

2010-11-24 Thread statquant2

thanks Phillip for the trick.
However I am a bit surprised that something as trivial as this is not
accessible via par options...
If somebody know how to do it with par ... or anything from graphics would
be nice to know

Cheers
-- 
View this message in context: 
http://r.789695.n4.nabble.com/shifting-down-ylab-in-a-plot-tp3057071p3057766.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] X11 and pdf differences

2010-11-05 Thread statquant2

Hi guys,
I have the following problem : when plooting using the X11() device, the
output I get is different from the output I get when I use pdf().
For instance the title font size in a pdf seems to be proportionnaly bigger
that in a x11...
 
I tryed to set pdf.options() egal to x11.options(), but it didn't work, do
one of you have an idea how to deal with this ?

Thanks for reading
Cheers 
-- 
View this message in context: 
http://r.789695.n4.nabble.com/X11-and-pdf-differences-tp3028649p3028649.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Milliseconds and Time object

2010-10-22 Thread statquant2

Yes it was what I was after ... sorry should have looked again.
Thanks
-- 
View this message in context: 
http://r.789695.n4.nabble.com/Milliseconds-and-Time-object-tp3001570p3006817.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Milliseconds and Time object

2010-10-19 Thread statquant2

Hello all,
my question for today is the following :

I have 
1. a date (in a string but straightforward to convert to any format)
2. the time as the number of milliseconds elapsed since hour 00:00:00.000 of
this date.

My question is :
1. Is there a in built function that can give me the date+time (as POSIX
object for instance) from what I have ?
-- 
View this message in context: 
http://r.789695.n4.nabble.com/Milliseconds-and-Time-object-tp3001570p3001570.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] efficient equivalent to read.csv / write.csv

2010-09-28 Thread statquant2

Hi, after testing 
R) system.time(read.csv(myfile.csv))
   user  system elapsed
  1.126   0.038   1.177

R) system.time(read.csv.sql(myfile.csv))
   user  system elapsed
  1.405   0.025   1.439
Warning messages:
1: closing unused connection 4 ()
2: closing unused connection 3 ()

It seems that the function is less efficient that the base one ... so ...
-- 
View this message in context: 
http://r.789695.n4.nabble.com/efficient-equivalent-to-read-csv-write-csv-tp2714325p2717585.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] efficient equivalent to read.csv / write.csv

2010-09-28 Thread statquant2

Hello all,
the test I provided was just to pinpoint that for loading once a big csv
file with read.csv was quicker than read.csv.sql... I have already
optimized my calls to read.csv for my particular problem, but is a simple
call to read.csv was quicker than read.csv.sql I doubt that specifying args
would invert the reult a lot...

May be I should outline my problem :

I am working on a powerful machine with 32Go or 64Go of RAM, so loading file
and keeping them in memory is not really an issue.
Those files (let's say 100) are shared by many and are flat csv files (this
to say that modify them is out of question).
Those files have lots of rows and between 10 and 20 colums, string and
numeric...

I basically need to be able to load these files to quicker possible and then
I will keep those data frame in memory... 
So :
Should I write my own C++ function and call it from R ?
Or is there a R way of improving drastically read.csv ?

Thanks a lot
-- 
View this message in context: 
http://r.789695.n4.nabble.com/efficient-equivalent-to-read-csv-write-csv-tp2714325p2717937.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] efficient equivalent to read.csv / write.csv

2010-09-27 Thread statquant2

thank you very much for this sql package, the thing is that thoses table I
read are loaded into memory once and for all, and then we work with the
data.frames...
Do you think then that this is going to be quicker (as I would have thougth
that building the SQL DB from the flat file would already be a long
process...)?
For the RData file it is not possible as those files are shared to them into
RData, on the write side the file writte are read by other apps so the csv
format can't be changed.

Looking forward to read from you
Thanks
-- 
View this message in context: 
http://r.789695.n4.nabble.com/efficient-equivalent-to-read-csv-write-csv-tp2714325p2715275.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Good documentation about Sweave

2010-09-27 Thread statquant2

Thank you all for those great links, I will look at those.
Thanks again

Colin
-- 
View this message in context: 
http://r.789695.n4.nabble.com/Good-documentation-about-Sweave-tp2714326p2715280.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Good documentation about Sweave

2010-09-26 Thread statquant2

Hello,
I am looking for a good and detailed documentation about Sweave... but can't
find anything more that 15 pages asking Google...
Any hint on that point ?

Cheers 
Colin
-- 
View this message in context: 
http://r.789695.n4.nabble.com/Good-documentation-about-Sweave-tp2714326p2714326.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] efficient equivalent to read.csv / write.csv

2010-09-26 Thread statquant2

Hello everyone,
I currently run R code that have to read 100 or more large csv files (= 100
Mo), and usually write csv too.
My collegues and I like R very much but are a little bit ashtonished by how
slow those functions are. We have looked on every argument of those
functions and if specifying some parameters help a bit, this is still too
slow.
I am sure a lot of people have the same problem so I thought one of you
would know a trick or a package that would help speeding this up a lot.

(we work on LINUX Red Hat R 2.10.0 but I guess this is of no use for this
pb)

Thanks for reading this.
Have a nice week end
-- 
View this message in context: 
http://r.789695.n4.nabble.com/efficient-equivalent-to-read-csv-write-csv-tp2714325p2714325.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] apply union function vectorially

2010-09-25 Thread statquant2

Yes
Thank you very much, NICE ONE.
Do you have some interesting references about R (I do know some common books
but may be you have some nice hidden books I have never heard about...
)
-- 
View this message in context: 
http://r.789695.n4.nabble.com/apply-union-function-vectorially-tp2550162p2704852.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] apply union function vectorially

2010-09-23 Thread statquant2

Thank you very much, this solve the problem, but more generally is there a
function that allow to apply a function to a list of object, applying
recursively the function to each answer...

mathematically for a 2 argument function f(u,v) you would like a function g
doing 
g(u1,u2,u3,u4,u5) =f(f(f(f(u1,u2),u3),u4),u5)

Thanks if you can help
-- 
View this message in context: 
http://r.789695.n4.nabble.com/apply-union-function-vectorially-tp2550162p2551536.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Problem with ggplot2 - Boxplot

2010-09-22 Thread statquant2

Hi, are you sure you have the same version R + packages version on both ?

-- 
View this message in context: 
http://r.789695.n4.nabble.com/Problem-with-ggplot2-Boxplot-tp2549970p2549997.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] apply union function vectorially

2010-09-22 Thread statquant2

Hello everybody,
I have a list.array which is a list containing arrays, lets say 
list.array= list( c(1,2,3),c(5,6,7),c(1,4,6,7,8) );
I would like to apply the union function to those 3 vectors to get the union
of the three : [1,2,3,4,5,6,7,8]
I tried do.call(what=union,args=list.array) but this is not working...

Do you have a non loop solution for this ?

Regards
-- 
View this message in context: 
http://r.789695.n4.nabble.com/apply-union-function-vectorially-tp2550162p2550162.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.