Re: [R] Execute Excel-Macro using R

2013-12-21 Thread Raghuraman Ramachandran
Try 'shell'? There must be a workaround to do this. On Fri, Dec 20, 2013 at 9:58 AM, R_Antony antony.akk...@ge.com wrote: Hi, How to execute ms-Excel Macro(*.xlsm) using R function ? I tried but not get. There are method to call from R function from Excel macro, but i need Excel macro to

Re: [R] by class...

2013-12-21 Thread John Kane
Nominate for a fortune. John Kane Kingston ON Canada -Original Message- From: jdnew...@dcn.davis.ca.us You seem to be falling prey to a common misconception that R is some monolithic tool, when in fact it is a herd of cats.

[R] Simplifying coxme models

2013-12-21 Thread David Gibbs
Hello all, I have some questions about specifying a coxme model and then simplifying it after reading the coxme documentation and posts here. The situation is this: I glued 4 pieces of small coral fragments onto small ceramic tiles, which I placed at 4 distances east and west of 10 large coral

Re: [R] Simplifying coxme models

2013-12-21 Thread Bert Gunter
As you seem to be wandering in the wilderness here, it sounds like you should really be seeking local statistical help that can provide a fuller 1-1 discussion, rather than posting on the internet. Alternatively, although you are working within R, your questions are primarily about statistical

Re: [R] Exporting R graphics into Word without losing graph quality

2013-12-21 Thread Shane McMahon
Sorry I'm a little late to the party on this one, but I thought I'd throw in my solution. I usually produce my plots with the svg device. Ex: plot(1:100,(1:100)^2) svg(filename=example.svg,height=3.83,width=3.83,pointsize=10) plot(1:100,(1:100)^2,xlab=x,ylab=expression(x^2)) dev.off() Word

[R] seq_len and loops

2013-12-21 Thread Göran Broström
I was recently reminded on this list that Using 1:ncol() is bad practice (seq_len is designed for that purpose) (Ripley) This triggers the following question: What is good practice for 2:ncol(x)? (This is not a joke; in a recursive situation it often makes sense to perform the calculation

[R] Possible to vary widths and/or heights of lattice panels?

2013-12-21 Thread Frank Harrell
Is it possible to vary the size of the panels in lattice within one page? The examine I have in mind is a 3 row by 2 column display where I vary the y-axis scales in a dot plot and there are only a few levels on the y-axis for one of the rows. I'd like to remove wasted space in that row.

Re: [R] seq_len and loops

2013-12-21 Thread Duncan Murdoch
On 13-12-21 5:57 PM, Göran Broström wrote: I was recently reminded on this list that Using 1:ncol() is bad practice (seq_len is designed for that purpose) (Ripley) This triggers the following question: What is good practice for 2:ncol(x)? (This is not a joke; in a recursive situation it often

Re: [R] seq_len and loops

2013-12-21 Thread Duncan Murdoch
On 13-12-21 6:50 PM, Duncan Murdoch wrote: On 13-12-21 5:57 PM, Göran Broström wrote: I was recently reminded on this list that Using 1:ncol() is bad practice (seq_len is designed for that purpose) (Ripley) This triggers the following question: What is good practice for 2:ncol(x)? (This is

Re: [R] Possible to vary widths and/or heights of lattice panels?

2013-12-21 Thread Richard M. Heiberger
library(latticeExtra) ?resizePanels On Sat, Dec 21, 2013 at 6:18 PM, Frank Harrell f.harr...@vanderbilt.edu wrote: Is it possible to vary the size of the panels in lattice within one page? The examine I have in mind is a 3 row by 2 column display where I vary the y-axis scales in a dot plot

Re: [R] seq_len and loops

2013-12-21 Thread Henrik Bengtsson
What about seq_len2 - function(length.out, from=1L) { seq(from=from, length.out=max(0L, length.out-from+1L)) } lapply(0:4, FUN=seq_len2, from=2L) [[1]] integer(0) [[2]] integer(0) [[3]] [1] 2 [[4]] [1] 2 3 [[5]] [1] 2 3 4 /Henrik On Sat, Dec 21, 2013 at 2:57 PM, Göran Broström

Re: [R] Possible to vary widths and/or heights of lattice panels?

2013-12-21 Thread Duncan Mackay
Hi Frank I am not sure what you need as there are various alternatives for starters ?latticeExtra::combineLimits see http://finzi.psych.upenn.edu/R/Rhelp02/archive/43612.html http://finzi.psych.upenn.edu/R/Rhelp02/archive/43626.html I tried to check that these were the correct urls but I do

Re: [R] plot different groups as factors

2013-12-21 Thread Duncan Mackay
Hi Luigi not sure of your code and dataset If you have rescaled your data so that they all go from 0-50, I rescaled your original dataset so that max was 50 and this works. All you need is to add a group and col argument stripplot(value~factor(time)|factor(dat$clas, levels =

[R] Unable to install RcppEigen package due to Rcpp dependency issues

2013-12-21 Thread Rewarp
Hi folks. I am trying to install RcppEigen, which depends on Rcpp. Here's what the terminal says: install.packages(RcppEigen) Installing package into ‘/home/rewarp/R/x86_64-pc-linux-gnu-library/3.0’ (as ‘lib’ is unspecified) trying URL