[R] runing .r file from C#

2007-08-21 Thread Alex MD
to just execute a .r file from C# code? Thank you very much, Alex -- Alexandru Maruseac BEST Bucharest E-mail: [EMAIL PROTECTED] Tel:+40 0722 329 083 www.BEST.eu.org www.BESTBc.pub.ro [[alternative HTML version deleted

Re: [R] runing .r file from C#

2007-08-21 Thread Alex MD
= E:/R/bin/; proc.StartInfo.Arguments = E:/R/bin/test.r; proc.StartInfo.UseShellExecute = true; proc.StartInfo.RedirectStandardOutput = false; proc.Start(); Thanks again for your help, good luck. Alex On 8/21/07, Prof Brian Ripley [EMAIL PROTECTED] wrote

[R] Problem Connecting to Oracle with R from Windows XP

2007-08-15 Thread Song, Alex
to the Oracle database using other client software like Toad, SQLPlus, or SQL Developer. Thank you very much. Alex Alex Song Data Management Specialist / Spécialiste en gestion des données National Forest Inventory / Inventaire forestier national Pacific Forestry Centre / Centre de

[R] clustering on Trinary data

2007-08-06 Thread Alex Tsoi
Dear all, I have a data matrix with 7 independent variables, and each of them is a trinary variable ( - 1, 0 , 1), and I would like to know what kinds of R package or method I should use to perform the clustering. Thanks for any comment or suggestion. -- Lam C. Tsoi (Alex) Medical University

[R] duplicate DATE at in lattice scale handled differently from base graphics OR lattice numeric scales

2007-07-30 Thread Alex Brown
-01)+c(2,4,4,6)), labels=list(letters[1:4] shows labels a, b, c Since this results in label c being placed at position 6, not 4, I feel this is a bug. -Alex Brown __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

[R] Help with Dates

2007-07-19 Thread Alex Park
and times but it seemed that strptime and POSIXct / POSIXlt are not what I need either. Can anybody help me? Regards Alex __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

[R] ANOVA: Does a Between-Subjects Factor belong in the Error Term?

2007-07-09 Thread Alex Baugh
effect of Sex. Thus, I'm fairly confident that option #3 is incorrect. Scenarios 1,2, and 3 yield different results in the aov summary. Thanks for your help! Alex -- Alexander T Baugh Institute for Neuroscience Univ. of Texas at Austin Austin, TX 78712 512.475.6164 [[alternative

[R] Using the object of character data type as the name of the slot

2007-06-21 Thread Alex Tsoi
matrix with the name The name of first slot However, I would like to know how could I utilize the object chara , and to use the characters it contains as the name of the slot of try1. I appreciate for any suggesion. Thanks. -- Lam C. Tsoi (Alex) Medical University of South Carolina

Re: [R] how to plot two graphics in one window

2007-06-15 Thread Alex Tsoi
I hope this could help: http://tolstoy.newcastle.edu.au/R/e2/help/07/02/11127.html Alex- On 6/15/07, Miguel Caro [EMAIL PROTECTED] wrote: Hello , Maybe this question you answered before, but i couldnt find something indicated in the mailing list. I wish to plot two graphics in one

[R] Problem Building on Solaris 8

2007-06-06 Thread Alex Restrepo
Hello: I am building R-2.5.0 on Solaris 8 with gcc version 3.3 and I am getting the following error. Could someone please help me with this? Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library '/mmrg/temp/R-2.5.0/library/stats/libs/stats.so':

[R] Calling C routine in anther package in C code (R_RegisterCCallable)

2007-06-01 Thread Alex Chen
shared library '/homes/ychen/Rlibs/dummy/libs/dummy.so': /homes/ychen/Rlibs/dummy/libs/dummy.so: undefined symbol: _Z19R_RegisterCCallablePcS_PFPvvE Error in library(dummy) : .First.lib failed for 'dummy' Can anyone help me out? Thanks! Alex [[alternative HTML version deleted

[R] problem with read.table

2007-05-22 Thread Alex Tsoi
for any suggestion. Thanks. Alex Tsoi- [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html

Re: [R] Running R function as a Batch process

2007-05-16 Thread Hanke, Alex
:\logout.txt Regards Alex -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of d. sarthi maheshwari Sent: May 16, 2007 8:29 AM To: r-help@stat.math.ethz.ch Subject: [R] Running R function as a Batch process Hi, I am struggling with using R CMD BATCH command

[R] problem with read.table( )

2007-05-10 Thread Alex Tsoi
] - data[1,1] b[1,1] 1 b[1,1] is 1 instead of the value IMAGE:131 I want Greatly Appreciate for any help Thanks, Alex- [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help

[R] Matrix column name

2007-05-01 Thread alex lam \(RI\)
[2,] 0.0804911 [3,] 0.0703796 Is there a way to force the column name to remain in such a case? Thanks, Alex sessionInfo() R version 2.4.1 (2006-12-18) i386-pc-mingw32 locale: LC_COLLATE=English_United Kingdom.1252;LC_CTYPE=English_United Kingdom.1252;LC_MONETARY=English_United Kingdom.1252

[R] tcl/tk printing to console is far too slow

2007-03-03 Thread Alex Couture-Beil
of a mutex - am I right? Any help to speed this up would be appreciated. Thanks, Alex Couture-Beil PS: I am running this test with R 2.4.1 on WinXP __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] How to sum one column in a data frame keyed on other columns

2006-12-13 Thread Alex Brown
Hi George I'm running ubuntu dapper badger with 2.4.0. add the line deb http://cran.R-project.org/bin/linux/ubuntu dapper/ to your /etc/apt/sources.list -Alex Brown On 13 Dec 2006, at 02:20, George Nachman wrote: Thanks, everyone, for the help! Bill: This looks like a really

Re: [R] missing factor levels in a lattice barchart panel cause unexpected failure

2006-12-12 Thread Alex Brown
causes the same error, with a different situation. Q = data.frame(X=c(NaN, 1), Y=factor(letters[1:2], letters[1:2])) barchart(~ X, Q, groups=Y) -Alex Brown panel.barchart.fixed = function (x, y, box.ratio = 1, horizontal = TRUE, origin = NULL, reference = TRUE, stack = FALSE, groups = NULL, col

[R] missing factor levels in a lattice barchart panel cause unexpected failure

2006-12-08 Thread Alex Brown
Z for different parameter Y where some Y are missing. alternative version: E = data.frame(X=c(1,2,3,4), Y=letters[c(1,2,1,2)], Z=letters[c (7,7,8,9)]); barchart(~ X | Z, E, groups=Y) I have updated to 2.4.0 and lattice 0.14-16 and the problem still exists. -Alex Brown

Re: [R] group by

2006-12-01 Thread Alex Brown
that, someone will be able to come up with a simple solution. -Alex Brown On 1 Dec 2006, at 15:22, Hans-Juergen Eickelmann wrote: Dear R-community, I started using R to control yield and output from different factories by production week. A typical example is below. LocationWeek

[R] segfault in RMySQL dbConnect error handling

2006-11-13 Thread Alex Brown
install with the following libraries: DBI_0.1-11.tar.gz RMySQL_0.5-10.tar.gz installed in a custom library location /export/downloads/R/packages (normal location seems to behave the same) note: it also failed on 2.3.0 on this machine --Alex Brown

Re: [R] Key colour problem with lattice plot

2006-10-25 Thread Alex Brown
On 23 Oct 2006, at 23:52, Deepayan Sarkar wrote: On 10/23/06, Alex Brown [EMAIL PROTECTED] wrote: Can anyone explain why the key is inverted versus the bar order? Because the key goes from top to bottom, while cartesian coordinates go from bottom to top. Neither can

Re: [R] Aggregate with multiple statistics?

2006-10-24 Thread Alex Brown
Try the summary function, which pretty much does exactly that. -Alex On 20 Oct 2006, at 23:44, Jonathan Greenberg wrote: Is there a way to calculate, say, the mean, min and max using aggregate using one line of code? Or do I need to call them separately (e.g. aggregate(...,mean

Re: [R] problem of using list element in for cycle

2006-10-24 Thread Alex Brown
$V4, data$V5) ... -Alex Brown On 24 Oct 2006, at 05:40, Hu Chen wrote: No, I am not concerning the cat. Sorry for my misleading. another example: I have a data frame. data$V4 returns: . [6936] P05796 P11096 P76174 P04475 P18775 [6941] P33225 P76387

Re: [R] Key colour problem with lattice plot

2006-10-23 Thread Alex Brown
formulae. I would have used the following formulation: ex2 = stack(example) ex3 = cbind(country=rep(rownames(example),2),ex2) barchart(country ~ values, ex3,group=ind, auto.key=TRUE) -Alex Brown On 22 Oct 2006, at 12:21, Geoff Russell wrote: Hi, I seem to have a key colour

Re: [R] Hi,about the png device

2006-10-23 Thread Alex Brown
+ imagemagick, although it does not come with the standard R distribution - you will have to get it from CRAN, and I don't personally think the output is as nice, so far (although it has the potential to be better). -Alex Brown On 23 Oct 2006, at 14:29, lidaof wrote: Hi, Thank you

Re: [R] Key colour problem with lattice plot

2006-10-23 Thread Alex Brown
very pleased to have the power of auto.key in lattice - it's the main reason why I stopped using the default plot function. -Alex Brown __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] nested if/else very slow, more efficient ways?

2006-10-23 Thread Alex Brown
the numbers 1 to 5 in the processed column in arithmetic processing, or are they just an enumeration of possible values? While you think about it, I direct your attention to the functions: sub factor -Alex On 23 Oct 2006, at 23:03, Kim Milferstedt wrote: Hello, in the data.frame

Re: [R] randomize a matrix

2006-10-20 Thread Alex Brown
, and show exactly what you mean by row and column sums? Does the order of row and column sums have to stay the same, ie: is 0 1 0 0 symmetric with 1 0 0 0 or not? -Alex Brown On 19 Oct 2006, at 20:49, Guenther, Cameron wrote: Hello

[R] Rug-like density plots on margins of figure

2006-10-19 Thread Alex Brown
similar * lattice - it has multiple graphs, but I think they may need to be homogeneous * plot + lines * plot + plot And here is the solution I am using at the moment, based upon layout. Can anyone suggest a better way to do this? -Alex Brown # some

Re: [R] Getting group size in a data frame

2006-10-19 Thread Alex Brown
, and then table(df2$factor) will tell you how many per group didn't die table(df2$factor[!is.na(df2$val1)] and names(measurecols) = measurecols lapply(measurecols, function(x)table(df2$factor[!is.na(df2[,x])])) will tell you for each measurement, how many of each group you got. -Alex On 19

Re: [R] creating bins for a plot

2006-10-19 Thread Alex Brown
) -Alex Brown On 18 Oct 2006, at 23:24, Jeffrey Stratford wrote: Hi. I'm trying to plot the ratio of used versus unused bird houses (coded 1 or 0) versus a continuous environmental gradient (proportion of urban cover [purban2]) that I would like to convert into bins (0 - 0.25, 0.26 - 0.5

Re: [R] write data to pdf

2006-10-19 Thread Alex Brown
One possible option is the sweave package, available on CRAN. This package allows you to generate reports including static text, inlined and pretty printed data frames, plots, etc. -Alex On 19 Oct 2006, at 15:57, Franco Mendolia wrote: Hi Alex! I'll try to explain. I am writing a tool

Re: [R] if statement error

2006-10-17 Thread Alex Brown
, it ignores all but the first element. see help() since if() in R is scalar (atomic) the is appropriate. The second ';' is syntactically correct in R and C, although optional in R. -Alex Out of interest, for a vector equivalent to if, see help(ifelse) Also, don't forget that return x

[R] tcltk crashes with bad color with text widget

2006-10-16 Thread Alex Couture-Beil
. This, however, does not happen on my FreeBSD machine, which displays an error similar to the one for tklabel and does not crash. Thanks for any help, Alex Couture-Beil __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] rarefy a matrix of counts

2006-10-13 Thread Alex Brown
) Error in sample(length(x), size, replace, prob) : cannot take a sample larger than the population when 'replace = FALSE' -Alex On 11 Oct 2006, at 15:10, Brian Frappier wrote: Hi Petr, Thanks for your response. I have data that looks like the following: sample 1

[R] bug: Editing function formals deletes the environment

2006-10-13 Thread Alex Brown
) Error in g(1) : object zappo not found # looks like formals strips the environment off stuff. anything I can do about this? -Alex Original question: I'm trying to change the behaviour of a package, to simplify the interface. I'd rather not change the package, although I could. There's a hidden

Re: [R] bug: Editing function formals deletes the environment

2006-10-13 Thread Alex Brown
Ah, it's fixed in 2.4.0. I'll work around it. -Alex On 13 Oct 2006, at 11:19, Alex Brown wrote: First, here's the specific bug I have. Later I'll say why I care. ls(zappo) Error in try(name) : object zappo not found # good. f = function(zappo) { function(y) zappo + y } g = f(1) g(1

Re: [R] multiply two matrixes with the different dimension column by column

2006-10-13 Thread Alex Brown
apply(Y, 2, function(y)list(y*X)) On 13 Oct 2006, at 12:33, Majid Iravani wrote: Dear all, I would like to multiply two matrixes with the different dimension column by column. Let make an example: If I have two matrixes X and Yas follow: X- matrix(1:12, nrow=4, ncol=3,

Re: [R] read.table() and scientific notation

2006-10-10 Thread Alex Brown
to shoot me down for hackery here :-) -Alex On 10 Oct 2006, at 11:43, January Weiner wrote: Dear all, I am having troubles importing values written as scientific notation using read.table(). I'm sure this is a frequent problem, as many people in my lab have this problem as well, so I'm sure

[R] Fwd: read.table() and scientific notation

2006-10-10 Thread Alex Brown
to double: (D-as.double(T$V3)) [1] 3e-08 1e+10NANA Warning message: NAs introduced by coercion # let's see which are bad: T[is.na(D),] V1 V2 V3 3 c 3 e-10 4 d 4 e+3 -Alex On 10 Oct 2006, at 12:17, January Weiner wrote: Oh, thanks, that was hint enough :-) I see it now

Re: [R] find weighted group mean

2006-10-10 Thread Alex Brown
: A 1 B 0 C 1 [1] 0.01102718 : A 1 B 1 C 1 [1] -0.5622041 -Alex On 10 Oct 2006, at 16:13, Young Cho wrote: HI, I am trying to figure out an efficient way to calculate group means and associate each entry

[R] qvalue

2006-10-02 Thread alex lam \(RI\)
5211 significant hits and can expect ~ 5 false postives. But my pi0 is 1. Does it mean that all my tests are true null and there are no significant results? Thanks for your help. Alex Alex Lam PhD student Department of Genetics and Genomics Roslin Institute

Re: [R] How to repeat vectors ?

2006-09-30 Thread Alex Brown
a22 -Alex On 30 Sep 2006, at 07:33, Tong Wang wrote: I just figured out a way to do this: rep.vec - function(X,n)return(t(array(rep(X,n),c (length(X),n Then,apply(MyMatrix, 2, rep.vec,2) Is there a better way ? Is there an internal function to repeat

Re: [R] problems with R and tckl/tk on Mac OS X

2006-09-29 Thread Alex Brown
the gui interface: http://cran.r-project.org/bin/macosx/R-2.3.1.dmg -Alex Brown On 29 Sep 2006, at 08:04, Ingo wrote: Dear R-help team, I am trying to run R on my Intel-based Mac. I have installed R, X11 and Tcl/TK (I thought), but the GUI doesn't run. My system administrator doesn't

[R] pdf and postscript sizes - change on each page?

2006-09-27 Thread Alex Brown
, this creates a new file - it does not append to the existing file. I would note that the quartz device has some resize capability, when you drag the window frame. -Alex __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

[R] Memory allocation

2006-09-07 Thread alex lam \(RI\)
the meaning of max-vsize, max-nsize and max-ppsize. Any help on how to increase the memory allocation on linux is much appreciated. Many thanks, Alex Alex Lam PhD student Department of Genetics and Genomics Roslin Institute (Edinburgh) Roslin Midlothian EH25 9PS

[R] Determine the data type of a function to an argument

2006-06-20 Thread Alex Restrepo
cat(arg1 is numeric) if (arg2 == character) cat(arg2 is a character) else cat(arg2 is a numeric) } value = calculate(arg1='222' arg2=333) Programatically, how can I determine if arg1 is a character and arg2 is numeric? Many Thanks: Alex

Re: [R] Custom Command to Generate SQL

2006-06-19 Thread Alex Restrepo
Hi Gabor: Thanks for the great example. I am an R newbie, so please forgive my question, but could you describe what the sub() function is doing in your example? Why is there an and in the first argument to the sub() function? Many Thanks: Alex From: Gabor Grothendieck [EMAIL PROTECTED

[R] Custom Command to Generate SQL

2006-06-18 Thread Alex Restrepo
: Select * from people where firstName = 'JOHN' and middleName = 'WILLIAMS' and lastName = 'FORD' Does anyone have a recommendation? Any ideas would be greatly appreciated. Alex __ R-help@stat.math.ethz.ch mailing list

[R] JGR :: Can't Run Graphics Demo

2006-06-08 Thread Alex Restrepo
is: 1.5.0_07-b03 Do I need to use a different version of Java? Does anyone have any recommendations/suggestions? Many Thanks In Advance: Alex __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

Re: [R] JGR :: Can't Run Graphics Demo

2006-06-08 Thread Alex Restrepo
help would be appreciated, Thanks: Alex From: ronggui [EMAIL PROTECTED] To: Alex Restrepo [EMAIL PROTECTED] CC: r-help@stat.math.ethz.ch Subject: Re: [R] JGR :: Can't Run Graphics Demo Date: Thu, 8 Jun 2006 21:47:07 +0800 Have you installed the following packages?They are javaGD,rJava

Re: [R] JGR :: Can't Run Graphics Demo

2006-06-08 Thread Alex Restrepo
I tried to create a pie chart in JGR, via the command: pie(rep(1, 24), col = rainbow(24), radius = 0.9) and I still get the following error: Error in JavaGD() : unable to start device JavaGD From: Alex Restrepo [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: r-help@stat.math.ethz.ch

[R] R SOAP Client Alternatives Recommendations

2006-05-20 Thread Alex Restrepo
Hello: Has anyone written a Java plugin for R which can talk to a SOAP Server? I have tried SSOAP and it seems like it is not a complete implementation of the SOAP standard. Are there any other alternatives which I can use to communicate to a SOAP Server from R? Can anyone provide any

[R] JGR (Java GUI) on Solaris

2006-05-11 Thread Alex Restrepo
recommendations. Many Thanks: Alex __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] Unix X-WIndows RGUI

2006-05-09 Thread Alex Restrepo
Hi: Could someone tell me if there is an X-Windows version of the RGUI ? Thanks: Alex __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] Checking Goodness of Fit With Kolmogorov-Smirnov

2006-04-28 Thread Alex Gutteridge
' function is there an analogous function for power law distributions - I couldn't find one. Thanks for any help in steering me in the right direction. Dr Alex Gutteridge Post-Doctoral Researcher Bioinformatics Center Institute for Chemical Research Kyoto University Gokasho, Uji, Kyoto 611-0011 Japan

[R] Multiple ablines

2006-04-07 Thread G. Alex Janevski
. Additionally, I have set the loop to one iteration and received the same error. I would greatly appreciate assistance. Thanks, Alex __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http

[R] hist function: freq=FALSE for standardised histograms

2006-04-05 Thread Alex Davies
c:\data.dat is a file with the numbers above it, one per line, and the first line containing the string StockReturns. Many thanks, Alex Davies [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch

Re: [R] hist function: freq=FALSE for standardised histograms

2006-04-05 Thread Alex Davies
working about 4 hours ago and have been trying to fix a non broken thing since then! Many thanks for your help and sorry for wastig your time, Alex On 05/04/06, Marco Geraci [EMAIL PROTECTED] wrote: Hi, how did you evaluate the total area? Here is a simple example ### set.seed(100) x - rnorm

[R] Boxplot Help for Neophyte

2006-02-20 Thread Alex Park
could not figure out how to get the labels myData1, myData2, and myData3 on the boxplot x-axis to denote which box was which (though I knew by looking). Can anybody help with this? I trawled through my downloaded R pdfs but could not find a way. Regards Alex Park

Re: [R] Question on big JPG plots in function warpping format

2006-02-10 Thread Alex
thanks, it works. best, Alex On Fri, 10 Feb 2006, Prof Brian Ripley wrote: Most likely this is FAQ 7.22. althogh how we are supposed to know what plotHeatTrellis does is beyond me. On Fri, 10 Feb 2006, [EMAIL PROTECTED] wrote: Hello: I have problems generating big JPG

[R] Rotate legends or other approaches to nice legend placement?

2005-07-04 Thread Alex Brown
is allocated beneath the graph for the legend 4) draw legend 5) allow user to call plot, correctly drawing the plot in the remaining frame? I have taken a look at this, but I am confused by the different units used by par(mar), legend(plot=F), and layout. -Alex Brown

[R] plot question

2005-07-02 Thread alex diaz
dear list: in the following plot: plot(rnorm(10),rnorm(10),xlab=year,ylab=expression (paste('M x'*10^{3},)),font.lab=2) font.lab=2, but xlab and ylab are different. I want both labels in the same way. help? a.d. - Email Enviado utilizando o

[R] Nolinear mixed-effects models (nlme)

2005-07-01 Thread Alex Bach
have the feeling it is not sufficient. Also, does anyone know whether the formulation of the fixed effects is correct?. Thank you very much, Alex [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https

[R] simplifying the code

2005-06-27 Thread alex diaz
dear list: I need help to achieve a simpler code to complete a task I'm performing. here is an example: dat-expand.grid(a=seq(1,5),b=seq(1000,1005)) I want to add a new column dat$c in that: t1-ifelse(dat$a==1dat$b==1001,1001,0) t2-ifelse(dat$a==2dat$b==1002,1001,0)

[R] simplifying the code

2005-06-27 Thread alex diaz
dear list: I made some corrections in the previous post that had some mistakes. I need help to achieve a simpler code to complete a task I'm performing. here is an example: dat-expand.grid(a=seq(1,4),b=seq(1001,1004)) #I want to add a new column dat$c in that:

Re: [R] simplifying the code

2005-06-27 Thread alex diaz
] [mailto:[EMAIL PROTECTED] On Behalf Of alex diaz Sent: June 27, 2005 4:54 PM To: r-help@stat.math.ethz.ch Subject: [R] simplifying the code dear list: I made some corrections in the previous post that had some mistakes. I need help to achieve a simpler code to complete a task

[R] aggregate?

2005-06-17 Thread alex diaz
Dear all: Here is my problem: Example data: dat-data.frame(x=rep(c(a,b,c,d),2),y=c(10:17)) If I wanted to aggregate each level of column dat$x I could use: aggregate(dat$y,list(x=dat$x),sum) But I just want to aggregate two levels (?c? and ?d?) to obtain a new level ?e? I am expecting

Re: [R] Error using newdata argument in survfit

2005-06-16 Thread Hanke, Alex
arguments Which is a nice change but still short of knowing what is going on. Regards Alex -Original Message- From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] Sent: June 15, 2005 4:24 PM To: Hanke, Alex Cc: 'r-help@stat.math.ethz.ch' Subject: Re: [R] Error using newdata argument

Re: [R] Error using newdata argument in survfit

2005-06-16 Thread Hanke, Alex
(Prior.f). Rather one should predefine the factor variable Prior.f-factor(Prior.f) and use that term in the model and then Thomas' solution works fine. Alex -Original Message- From: Thomas Lumley [mailto:[EMAIL PROTECTED] Sent: June 16, 2005 11:00 AM To: Hanke, Alex Cc: 'r-help

[R] Error using newdata argument in survfit

2005-06-15 Thread Hanke, Alex
=newdat) Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : variable lengths differ In addition: Warning message: 'newdata' had 2 rows but variable(s) found have 1878 rows Regards, Alex Alex Hanke Department of Fisheries and Oceans St. Andrews Biological

[R] Survfit,newdata and continuous time varying covariates

2005-06-14 Thread Hanke, Alex
estimated survival depends on alternative scenarios/profiles of a time varying covariate? Alex Hanke Department of Fisheries and Oceans St. Andrews Biological Station 531 Brandy Cove Road St. Andrews, NB Canada E5B 2L9 [[alternative HTML version deleted

[R] Estimate of baseline hazard in survival

2005-06-10 Thread Hanke, Alex
of cox.zph() for testing the proportionality of hazards assumption. Thanks Alex Alex Hanke Department of Fisheries and Oceans St. Andrews Biological Station 531 Brandy Cove Road St. Andrews, NB Canada E5B 2L9 [[alternative HTML version deleted

[R] multiple plots

2005-06-07 Thread alex diaz
, that is 60 graphs! I think I can use par(mfrow=c(8,8)), but I don’t know how to generate such number of plots in a parsimonious way. Can someone give me a hand please? alex - Email Enviado utilizando o serviço MegaMail

[R] Reading Numeric Data -- Trivial Question

2005-05-20 Thread Alex K
, but I get the same error when I try to plot as above. Can anyone help with this? Thank you in advance, Alex __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org

Re: [R] Reading Numeric Data -- Trivial Question

2005-05-20 Thread Alex K
On 5/20/05, Uwe Ligges [EMAIL PROTECTED] wrote: Alex K wrote: Hello, I am very new to R, and this is certainly and uber-newby question: I am trying to read a vector of numeric data that contains the log of daily DJI returns and simply plot a histogram of it. The data I

Re: [R] Reading Numeric Data -- Trivial Question

2005-05-20 Thread Alex K
, which is the number of entries. Thank you again for your reply, Alex __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] Installing sna package on MacOSX

2005-04-28 Thread Alex Bach
(???) Has anyone out there been able to install it successfully on a Mac? Thanks Alex __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] Problem installing packages and weird R site behaviour

2005-03-29 Thread Hanke, Alex
to the second. Is anyone else experiencing this behaviour and how do I restore normal behaviour? Regards Alex Problem 1 local({a - CRAN.packages() + install.packages(select.list(a[,1],,TRUE), .libPaths()[1], available=a, dependencies=TRUE)}) trying URL `http://cran.r-project.org/bin/windows/contrib

[R] Interval censoring in Survival analysis

2005-03-10 Thread AMOROS NAVARRO, ALEX
Hi, I would like to know if R programme allows doing different kinds of censoring in his last version. What kind of package should I use and is this censoring applicable to parametric and semi-parametric(Cox) models? Thanks, Àlex. __

Re: [R] Forward Stepwise regression based on partial F test

2005-02-24 Thread Alex
Robin, You may see leaps() (package leaps). It deals with all subsets regression considering several chosen criteria. beste Regards, Alex models -- Início da mensagem original --- De: [EMAIL PROTECTED] Para: Smit, Robin [EMAIL PROTECTED] Cc: r-help@stat.math.ethz.ch Data

[R] polynomials REML and ML in nlme

2005-02-01 Thread Alex
-effects specifications, they can't be compared directly by means of the log-likelihoods. Best Regards, Alex. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of dgoliche Sent: Tuesday, February 01, 2005 10:54 AM To: r-help@stat.math.ethz.ch

[R] string evaluation

2005-01-26 Thread Alex Sanchez
really can't find the instruction in the manuals (I would also appreciate to know where should I have looked at) Thanks for the help -- Dr. Alex Sánchez Departament d'Estadística U.B. Telf: 34 934021590 Fax: 34 93 4111733 e-mail : [EMAIL

[R] GLMM

2004-12-08 Thread Alex
Hi all, Could someone please tell me if we have to group data in the units with a command such factor() or groupedData() before using the functions glmmPQL or GLMM. I didn't do that and at first my results seem OK, but I'd like to solve this doubt. Thanks in advance, Alex

[R] Hexidecimal conversion

2004-12-02 Thread Hanke, Alex
dec-16*z.1+z.2 return(dec) } Alex Hanke Department of Fisheries and Oceans St. Andrews Biological Station 531 Brandy Cove Road St. Andrews, NB Canada E5B 2L9 [[alternative HTML version deleted]] __ [EMAIL

RE: [R] Hexidecimal conversion

2004-12-02 Thread Hanke, Alex
Thanks to Patrick Burns, Peter Wolf and Duncan Murdoch who all provided me with workable solutions to the hexidecimal conversion problem. They all work and basically differ in the number of bells and whistles. Alex -Original Message- From: Duncan Murdoch [mailto:[EMAIL PROTECTED] Sent

[R] glmmPQL

2004-11-30 Thread Alex
is to estimate only one mean for all groups (mean=0,6214472). I expected that this DF would equal 201, as I have 202 groups. Thanks in advance, Alex __ Acabe com aquelas janelinhas que pulam na sua tela. AntiPop-up

[R] Google for scientists: search engine

2004-11-30 Thread Hanke, Alex
A new way to search for documentation on your favourite science topic. http://scholar.google.com/ http://scholar.google.com/ Alex Hanke Department of Fisheries and Oceans St. Andrews Biological Station 531 Brandy Cove Road St. Andrews, NB Canada E5B 2L9 [[alternative HTML version

[R] RODBC and Table views

2004-11-22 Thread Hanke, Alex
but only the tables yield data. Do I need to recreate these views on the R side of the connection? Regards Alex Alex Hanke Department of Fisheries and Oceans St. Andrews Biological Station 531 Brandy Cove Road St. Andrews, NB Canada E5B 2L9 [[alternative HTML version deleted

[R] transitivity

2004-10-28 Thread alex pegucci
. Is there a vectorized solution to this? n can be quite large. Thanks in advance, Alex __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

RE: [R] isoMDS

2004-09-09 Thread Hanke, Alex
I get the following message: Error in isoMDS(tt) : zero or negative distance between objects 1 and 2 This makes sense since a and b are identical in their relationship to c to h. Drop row 1 and col 1 and you get isoMDS(tt[2:8,2:8]) initial value 14.971992 iter 5 value 8.027815 iter 10 value

RE: [R] kolmogorov-smirnov for discrete ordinal scale data

2004-09-09 Thread Hanke, Alex
for. If this sounds helpful let me know. Alex -Original Message- From: Gila Lithwick [mailto:[EMAIL PROTECTED] Sent: September 9, 2004 11:03 AM To: [EMAIL PROTECTED] Subject: [R] kolmogorov-smirnov for discrete ordinal scale data Hi, I was wondering whether there is an implementation

RE: [R] Skipping panels in Lattice

2004-09-09 Thread Hanke, Alex
I have the same problem. As far as I can see, the only thing you can do is : attach(df2) group=paste(facb,facc,sep= ) bwplot( dv ~ faca | factor(group)) Alex -Original Message- From: Leon Barmuta [mailto:[EMAIL PROTECTED] Sent: September 9, 2004 1:19 AM To: [EMAIL PROTECTED] Subject

RE: [R] isoMDS

2004-09-08 Thread Hanke, Alex
Distances cannot always be constructed from similarities. This can be done only if the matrix of similarities is nonnegative definite. With the nonnegative definite condition, and with the maximum similarity scaled so that s_ii=1, d_ik=(2*(1-s_ik))^-.5 Check out the vegan package. Alex

RE: [R] isoMDS

2004-09-08 Thread Hanke, Alex
Distances are often called disimilarities. -Original Message- From: Prof Brian Ripley [mailto:[EMAIL PROTECTED] Sent: September 8, 2004 11:58 AM To: Hanke, Alex Cc: 'Doran, Harold'; '[EMAIL PROTECTED]' Subject: RE: [R] isoMDS On Wed, 8 Sep 2004, Hanke, Alex wrote: Distances cannot

[R] Obtaining Least Square Means with lme (mixed models)

2004-08-31 Thread Alex Bach
! Alex __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

RE: [R] A question about external time-dependent covariates in co x model

2004-08-19 Thread Hanke, Alex
. In your example I see 3 in total. Also, I think that if end is proportional to your covariate you are incorporating a redundant time effect into the model. The time effect is in the baseline hazard. Alex -Original Message- From: Rui Song [mailto:[EMAIL PROTECTED] Sent: August 19, 2004 12:21 AM

[R] Clustering and the test for proportional hazards

2004-08-19 Thread Hanke, Alex
In this example there is strong evidence for non-proportional hazards for each of my covariates. By defining my strata differently I can remove the non-proportional hazards. A quick comment is appreciated. Alex [[alternative HTML version deleted]] __ [EMAIL

[R] Xtable method for coxph, bug?

2004-08-18 Thread Hanke, Alex
. How can I access the result of summary(coxph.object) so that I can create a matrix object for which there is an xtable method? Thanks Alex Alex Hanke Department of Fisheries and Oceans St. Andrews Biological Station 531 Brandy Cove Road St. Andrews, NB Canada E5B 2L9 [[alternative HTML

  1   2   >