Re: [R] R CMD INSTALL -l /path/to/library packagename

2005-09-13 Thread Gabor Grothendieck
I don't use Linux but perhaps you should check what environment variables you have defined and also if you have anything in your *.site files, if you have them, that could cause that. On 9/13/05, McClatchie, Sam (PIRSA-SARDI) [EMAIL PROTECTED] wrote: Background: OS: Linux Mandrake 10.1

Re: [R] Running DOS command prompt from R 2.0.1 Windows?

2005-09-13 Thread Thomas Petzoldt
Mr Toby Daniel Ahrens wrote: I am trying to use R (windows version 2.0.1) to manage runs of a program that is run from a DOS command prompt. Is R able to call a DOS prompt? I am hoping that there is something analogous to the spawn command in IDL, but I can't see to find any help in the R

[R] Collineariy Diagnostics

2005-09-13 Thread Antoine de Bary
Hi, and thanks for your help in order to do collinearity analysis I downloaded the perturb package. I run a lm (regression) and on that the ³calldiag² commad to get condition numbers but i get the following message: the variable XY with modus ³numeric² was not found (it does the same with all

[R] Floating-point arithmetic

2005-09-13 Thread Ted Harding
Hi Folks, A recent exchange on the 'octave' list led to the following paper being cited, which I had not met before: What Every Computer Scientist Should Know About Floating-Point Arithmetic, by David Goldberg, originally published in the March, 1991 issue of Computing Surveys. PDF and

Re: [R] Document clustering for R

2005-09-13 Thread Christian Hennig
If you are able to implement the computation of the distance matrix, you can use methods such as pam, agnes and hclust, which operate on dissimilarity matrices of any kind. You may also perform a multidimensional scaling with isoMDS, sammon or cmdscale and use any clustering algorithm for n*p data

Re: [R] remedial stats education

2005-09-13 Thread Joshua N Pritikin
Everybody, thanks for your suggestions. I am planning to order at least these two: Peter Dalgaard _Introductory Statistics with R_ Andrew Gelman _Bayesian Data Analysis_ Also, while stumbling around amazon.com, I found this book: Statistical Reasoning in Psychology and Education, 4th

Re: [R] Document clustering for R

2005-09-13 Thread David Ruau
Hi, We discovered that the package amap contain a distance calculation function call Dist which can calculate the distance according to a method call pearson which is in fact the not centered Pearson which seems to be the cosine distance. Could you tell me what do you think on that? Best

Re: [R] Collineariy Diagnostics

2005-09-13 Thread Sundar Dorai-Raj
Antoine de Bary wrote: Hi, and thanks for your help in order to do collinearity analysis I downloaded the perturb package. I run a lm (regression) and on that the ³calldiag² commad to get condition numbers but i get the following message: the variable XY with modus ³numeric² was not found

Re: [R] Collineariy Diagnostics

2005-09-13 Thread John Fox
Dear Sundar and Antoine, In addition, the vif function in the car package will calculate generalized variance inflation factors. Regards, John John Fox Department of Sociology McMaster University Hamilton, Ontario Canada L8S 4M4 905-525-9140x23604

[R] How to erase objects

2005-09-13 Thread v . schlecht
Hi, I admit that I rather carelessly built lots of large objects and therefore ran out of memory. Most objects, which I have at the moment are now unnecessary, but it would take a lot of time to recreate the last few ones from scratch. So I would like to erase (get rid of) selected objects in

[R] VB and R

2005-09-13 Thread Wensui Liu
Dear Listers, Is there any good paper about how to use R together with VB? Thank you so much! -- WenSui Liu (http://statcompute.blogspot.com) Senior Decision Support Analyst Cincinnati Children Hospital Medical Center [[alternative HTML version deleted]]

Re: [R] How to erase objects

2005-09-13 Thread Luis Ridao Cruz
?rm [EMAIL PROTECTED] 13/09/2005 12:08:55 Hi, I admit that I rather carelessly built lots of large objects and therefore ran out of memory. Most objects, which I have at the moment are now unnecessary, but it would take a lot of time to recreate the last few ones from scratch. So I would

Re: [R] VB and R

2005-09-13 Thread Tuszynski, Jaroslaw W.
I belive R, which is platform independent, does not work with any platform specific software or languages, like Visual Basic. Can you write your code by passing information through input/output files (CSV HML might be good formats)? Jarek Tuszynski SAIC -Original Message- From: [EMAIL

Re: [R] How to erase objects

2005-09-13 Thread Martin Lam
# to see the objects that are currently in memory objects() # to remove everything rm(list = ls()) HTH, Martin --- Luis Ridao Cruz [EMAIL PROTECTED] wrote: ?rm [EMAIL PROTECTED] 13/09/2005 12:08:55 Hi, I admit that I rather carelessly built lots of large objects and therefore ran

Re: [R] VB and R

2005-09-13 Thread Roger Bivand
On Tue, 13 Sep 2005, Tuszynski, Jaroslaw W. wrote: I belive R, which is platform independent, does not work with any platform specific software or languages, like Visual Basic. Can you write your code by passing information through input/output files (CSV HML might be good formats)? R can

Re: [R] How to erase objects

2005-09-13 Thread Adaikalavan Ramasamy
You can also use ls() which is alias of objects(). One way is to remove unwanted objects by hand rm(a,b,c,d) Another way is to save the required objects, remove everything and then load the saved objects. save(x,y,z, file=out.rda, compress=TRUE) rm( list=ls() ) load(out.rda) The second

Re: [R] VB and R

2005-09-13 Thread Duncan Murdoch
On 9/13/2005 7:38 AM, Tuszynski, Jaroslaw W. wrote: I belive R, which is platform independent, does not work with any platform specific software or languages, like Visual Basic. That's not true at all. R works with many platform specific packages. I think Roger Bivand's answer covers the

Re: [R] VB and R

2005-09-13 Thread Gabor Grothendieck
On 9/13/05, Wensui Liu [EMAIL PROTECTED] wrote: Dear Listers, Is there any good paper about how to use R together with VB? I assume you are looking to write a VB GUI with an R backend. You might want to look at the R GUIs page and its mailing list to see what other people are doing in that

Re: [R] VB and R

2005-09-13 Thread Philippe Grosjean
Hello, You can look at SciViews-R (http://www.sciviews.org/Sciviews-R). It is written in VB6. source code is available. Best, Philippe Grosjean ..°})) ) ) ) ) ) ( ( ( ( (Prof. Philippe Grosjean ) ) ) ) ) ( ( ( ( (Numerical Ecology

Re: [R] Document clustering for R

2005-09-13 Thread Jari Oksanen
On Mon, 2005-09-12 at 12:47 -0700, Raymond K Pon wrote: I'm working on a project related to document clustering. I know that R has clustering algorithms such as clara, but only supports two distance metrics: euclidian and manhattan, which are not very useful for clustering documents. I was

[R] if() command

2005-09-13 Thread Carlos Maurício Cardeal Mendes
Hi everyone ! Could you please help me with this problem ? I´ve trying to write a code that assign to a variable the content from another, but all I´ve got is a message error. For example: if (age =10) {group == 1} else if (age 10 age = 20) {group == 2} else {group == 3} Syntax error Or

Re: [R] if() command

2005-09-13 Thread Sundar Dorai-Raj
Carlos Maurício Cardeal Mendes wrote: Hi everyone ! Could you please help me with this problem ? I´ve trying to write a code that assign to a variable the content from another, but all I´ve got is a message error. For example: if (age =10) {group == 1} else if (age 10 age = 20)

Re: [R] Document clustering for R

2005-09-13 Thread Christian Hennig
On Tue, 13 Sep 2005, Jari Oksanen wrote: On Mon, 2005-09-12 at 12:47 -0700, Raymond K Pon wrote: I'm working on a project related to document clustering. I know that R has clustering algorithms such as clara, but only supports two distance metrics: euclidian and manhattan, which are not

[R] plot glmmPQL

2005-09-13 Thread Marc Bernard
Dear All, Is there any function to plot the probability of success (wrt to time) for a glmmPQL object? I can do it with curve but I wonder if there is an efficient way ... Thank you, Bernard - [[alternative HTML version deleted]]

Re: [R] if() command

2005-09-13 Thread vincent
not enough parenthesis hih __ 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] trouble with reading data from excel

2005-09-13 Thread Petr Pikal
Hi On 12 Sep 2005 at 15:23, Wensui Liu wrote: Sloan, You don't need to save xls as csv. Actually, R reads data in excel very well. Following code is cutted from my blog and HTH. library(RODBC); ### # 1. READ DATA FROM EXCEL INTO

[R] [EMAIL PROTECTED]: Remedial stats]

2005-09-13 Thread Joshua N Pritikin
It seems like the Bayesian folks like to hide. Hey, I just want to get the job done whether using frequency or Bayesian stats. Can anybody suggest a good introduction to Bayesian Analysis? - Forwarded message from Ken Beath [EMAIL PROTECTED] - To: Joshua N Pritikin [EMAIL PROTECTED]

Re: [R] if() command

2005-09-13 Thread Petr Pikal
__ 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] Floating-point arithmetic

2005-09-13 Thread Thomas Lumley
On Tue, 13 Sep 2005, [EMAIL PROTECTED] wrote: A recent exchange on the 'octave' list led to the following paper being cited, which I had not met before: What Every Computer Scientist Should Know About Floating-Point Arithmetic, by David Goldberg, snip So I'm writing to bring it to the

Re: [R] if() command

2005-09-13 Thread Petr Pikal
Hallo On 13 Sep 2005 at 10:29, Carlos Maurício Cardeal Mende wrote: Hi everyone ! Could you please help me with this problem ? I´ve trying to write a code that assign to a variable the content from another, but all I´ve got is a message error. For example: if (age =10)

Re: [R] if() command

2005-09-13 Thread Huntsinger, Reid
First, == is logical comparison, so if you want to create a variable based on both age and group you can do that. However, it looks like you want to define the variable group, so you want to use - or = for that. Second, if you're typing this at a command prompt, you need to make sure you tell R

[R] Any S-plus/R doc or manual for SAS user out there?

2005-09-13 Thread paul king
Dear list, I am looking for an Splus or R doc / manual for SAS user. Thank you in advance. PK __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

[R] where is eda library (Prof. Ripley's Exploratory Data Analysis Library)

2005-09-13 Thread S.O. Nyangoma
Hi I want to install eda library. Where can I download it? I use R version 2.1.0 on Linux. Thanks. Stephen. - Original Message - From: Luis Ridao Cruz [EMAIL PROTECTED] Date: Tuesday, September 13, 2005 1:32 pm Subject: Re: [R] How to erase objects ?rm [EMAIL PROTECTED]

[R] multiple comparisons for proportions

2005-09-13 Thread Chris Buddenhagen
Dear all I am still fishing for help on this theme. In Zar 1999 page 563-565 he describes a Tukey-type multiple comparison for testing among proportions. It involves comparisons of ranked proportions transformed to degrees. In the following pages there are a couple of similar comparisons.

Re: [R] where is eda library (Prof. Ripley's Exploratory Data Analysis Library)

2005-09-13 Thread ernesto
S.O. Nyangoma wrote: Hi I want to install eda library. Where can I download it? I use R version 2.1.0 on Linux. Thanks. Stephen. library(eda) Warning message: package 'eda' has been merged into 'stats' EJ __ R-help@stat.math.ethz.ch mailing

[R] Reading data from a serial port

2005-09-13 Thread vittorio
I need to read data from from a medical appliance via the serial port. This medical appliance produces streams of set data at regular intervals. What commands, packages are available for this purpose? Vittorio __ R-help@stat.math.ethz.ch mailing list

Re: [R] where is eda library (Prof. Ripley's Exploratory Data Analysis Library)

2005-09-13 Thread Uwe Ligges
S.O. Nyangoma wrote: Hi I want to install eda library. Where can I download it? I use R version 2.1.0 on Linux. What about typing library(eda) Warning message: package 'eda' has been merged into 'stats' Now we see immediately that we alreeady have access to the functions that *were*

Re: [R] where is eda library (Prof. Ripley's Exploratory Data Analysis Library)

2005-09-13 Thread Sundar Dorai-Raj
Three things: 1. Please do not hit the reply button to an unrelated topic and change the subject. As the signature tells you, PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html; 2. You are looking for the eda *package* and not a *library*. 3. Since eda is not on

Re: [R] best way to fit a model

2005-09-13 Thread Ronaldo Reis-Jr.
Em Sex 09 Set 2005 15:25, Achim Zeileis escreveu: On Fri, 9 Sep 2005 14:55:04 -0300 Ronaldo Reis-Jr. wrote: Hi, I have some data that have this behaviour: |*** |* | * |* | * | What is the best and simpler way to

Re: [R] Reading data from a serial port

2005-09-13 Thread Greg Snow
I don't know of a specific package, but there is support for various connections in R. look for help on connections by typing: ?connection There is also a section in the R Data Import/Export document on connections. You will probably use a fifo or a pipe. Good luck, Greg Snow, Ph.D.

Re: [R] [S] Any S-plus/R doc or manual for SAS user out there?

2005-09-13 Thread Frank E Harrell Jr
paul king wrote: Dear list, I am looking for an Splus or R doc / manual for SAS user. Thank you in advance. PK Somewhat helpful in that regard: http://biostat.mc.vanderbilt.edu/twiki/pub/Main/RS/sintro.pdf -- Frank E Harrell Jr Professor and Chair School of Medicine

Re: [R] Floating-point arithmetic

2005-09-13 Thread Ted Harding
On 13-Sep-05 Thomas Lumley wrote: On Tue, 13 Sep 2005, [EMAIL PROTECTED] wrote: A recent exchange on the 'octave' list led to the following paper being cited, which I had not met before: What Every Computer Scientist Should Know About Floating-Point Arithmetic, by David Goldberg, snip

Re: [R] best way to fit a model

2005-09-13 Thread Achim Zeileis
On Tue, 13 Sep 2005 13:24:02 -0300 Ronaldo Reis-Jr. wrote: Em Sex 09 Set 2005 15:25, Achim Zeileis escreveu: On Fri, 9 Sep 2005 14:55:04 -0300 Ronaldo Reis-Jr. wrote: Hi, I have some data that have this behaviour: |*** |* | * |* |

[R] what OS

2005-09-13 Thread Omar Lakkis
How can I determine whT OS I am running under? if WINDOWS do this if LINUX do that __ 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] what OS

2005-09-13 Thread Sundar Dorai-Raj
Omar Lakkis wrote: How can I determine whT OS I am running under? if WINDOWS do this if LINUX do that Hi, Omar, Look at version$os. # windows version$os [1] mingw32 # linux version$os [1] linux-gnu HTH, --sundar __

Re: [R] what OS

2005-09-13 Thread Berton Gunter
?.Platform -- Bert Gunter Genentech Non-Clinical Statistics South San Francisco, CA The business of the statistician is to catalyze the scientific learning process. - George E. P. Box -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Omar Lakkis

Re: [R] what OS

2005-09-13 Thread Cuvelier Etienne
Try this Sys.info()[sysname] Etienne - Original Message - From: Omar Lakkis [EMAIL PROTECTED] To: r-help@stat.math.ethz.ch Sent: Tuesday, September 13, 2005 8:29 PM Subject: [R] what OS How can I determine whT OS I am running under? if WINDOWS do this if LINUX do that

Re: [R] what OS

2005-09-13 Thread Austin, Matt
.Platform$OS.type -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Omar Lakkis Sent: Tuesday, September 13, 2005 11:30 AM To: r-help@stat.math.ethz.ch Subject: [R] what OS How can I determine whT OS I am running under? if WINDOWS do this if

Re: [R] what OS

2005-09-13 Thread Huntsinger, Reid
.Platform contains this and more. Reid Huntsinger -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Omar Lakkis Sent: Tuesday, September 13, 2005 2:30 PM To: r-help@stat.math.ethz.ch Subject: [R] what OS How can I determine whT OS I am running under? if

Re: [R] what OS

2005-09-13 Thread Liaw, Andy
From: Sundar Dorai-Raj Omar Lakkis wrote: How can I determine whT OS I am running under? if WINDOWS do this if LINUX do that Hi, Omar, Look at version$os. # windows version$os [1] mingw32 # linux version$os [1] linux-gnu Or see ?.Platform. Andy HTH,

[R] is library loaded

2005-09-13 Thread Omar Lakkis
Is there a way to test if a library has been loaded? is.loaded does not give me what I want, I am looking to say: if loaded(Rdbi) dbSendQuery(conn, q) if loaded(RODBC) sqlQuery(conn, q) I need this to support both unix and windows platforms as I could not find a windows distribution for

[R] coxph.detail() does not work

2005-09-13 Thread Zhen Zhang
Hello everyone, I tried to use coxph.detail() to get the hazard function. But a warning messge always returns to me, even in the example provided by its help document: ?coxph.detail fit - coxph(Surv(futime,fustat) ~ age + rx + ecog.ps, ovarian, x=TRUE) fitd - coxph.detail(fit) Warning

Re: [R] Reading data from a serial port

2005-09-13 Thread Ted Harding
On 13-Sep-05 vittorio wrote: I need to read data from from a medical appliance via the serial port. This medical appliance produces streams of set data at regular intervals. What commands, packages are available for this purpose? Vittorio Have a look at ?scan. You will have to do several

Re: [R] Floating-point arithmetic

2005-09-13 Thread Ted Harding
On 13-Sep-05 Ted Harding wrote: [..] Except, perhaps, from people (like me) who had not read that FAQ -- and who knows what legions these may be? ;) Ted. Apologies that people may have received two copies of the above message. When I first sent it there was a bounce on the grounds that

[R] inconsistant decimal marker with write.table

2005-09-13 Thread Denis Chabot
Hi, My problem does not happen all the time, nor with all files I save to csv format. I can send my test file (format rda or csv) to whoever would like to replicate (and hopefully explain) my problem. In short, I have a dataset with mostly numerical variables. One of my variable is called

Re: [R] coxph.detail() does not work

2005-09-13 Thread Thomas Lumley
On Tue, 13 Sep 2005, Zhen Zhang wrote: Hello everyone, I tried to use coxph.detail() to get the hazard function. But a warning messge always returns to me, even in the example provided by its help document: ?coxph.detail fit - coxph(Surv(futime,fustat) ~ age + rx + ecog.ps, ovarian,

Re: [R] is library loaded

2005-09-13 Thread John Fox
Dear Omar, The following function tests whether a package is in the search path (with the package name given in quotes): packageLoaded - function(name) 0 != length(grep(paste(^package:, name, $, sep=), search())) I hope this helps, John John Fox Department of

Re: [R] what OS

2005-09-13 Thread Uwe Ligges
Liaw, Andy wrote: From: Sundar Dorai-Raj Omar Lakkis wrote: How can I determine whT OS I am running under? if WINDOWS do this if LINUX do that Hi, Omar, Look at version$os. # windows version$os [1] mingw32 # linux version$os [1] linux-gnu Or see ?.Platform. Yes, please

[R] Anyone have any code for importing data from NAMCS?

2005-09-13 Thread David L. Van Brunt, Ph.D.
The National Ambulatory and Medical Care Survey is a free data set from the CDC that I'd like to analyze using the Survey package in R. Before I dive in, though, it occurred to me that someone may already have gone to the trouble of writing code that will bring in the data and assign the

Re: [R] is library loaded

2005-09-13 Thread Robert Gentleman
Hi, Almost surely this is a bad name. With the advent of name spaces it is important to distinguish between loading and attaching. This function tests for attached packages. To test for loaded packages we already have loadedNamespaces. Best wishes, Robert John Fox wrote: Dear Omar,

[R] logistic regression with nominal predictors

2005-09-13 Thread Ramón Casero Cañas
(Sorry for obvious mistakes, as I am quite a newby with no Statistics background). My question is going to be what is the gain of logistic regression over odds ratios when none of the input variables is continuous. My experiment: Outcome: ordinal scale, ``quality'' (QUA=1,2,3) Predictors:

Re: [R] Reading data from a serial port

2005-09-13 Thread vittorio
Alle 21:26, martedì 13 settembre 2005, Ted Harding ha scritto: ... Have a look at ?scan. You will have to do several things which depend on your hardware setup, your operating system, the behaviour of your medical applicance, and how you want to handle the data

Re: [R] is library loaded

2005-09-13 Thread John Fox
Dear Robert, packageLoaded() may well be a bad name but loadedNamespaces() won't detect a package without a namespace. It therefore seemed safe to me to check the path, which would include both packages with and without namespaces. With respect to loading and attaching, I thought that library()

[R] package Spcmdr

2005-09-13 Thread Larry Layne
In the R Console (ver 2.1.1) I typed the command help(ppinit) and received the error message: Error in help.search(ppinit) : could not find package 'Spcmdr' After typing library(spatial) I could get help on the ppinit function. However, I have tried in vain to find any information on the

Re: [R] package Spcmdr

2005-09-13 Thread Duncan Murdoch
Larry Layne wrote: In the R Console (ver 2.1.1) I typed the command help(ppinit) and received the error message: Error in help.search(ppinit) : could not find package 'Spcmdr' That sounds like a local installation problem. Perhaps you had a package with that name installed at some point,

Re: [R] package Spcmdr

2005-09-13 Thread Larry Layne
Thank you very much for the quick response! As far as I know I did not install the Spcmdr explicitly. When I installed R ver 2.1.1, I uninstalled the previous version of R and deleted the R directory and all directories under R in C:\Program Files. (BTW, I am using the windows binaries of R).

Re: [R] package Spcmdr

2005-09-13 Thread Duncan Murdoch
Larry Layne wrote: Thank you very much for the quick response! As far as I know I did not install the Spcmdr explicitly. When I installed R ver 2.1.1, I uninstalled the previous version of R and deleted the R directory and all directories under R in C:\Program Files. (BTW, I am using the

Re: [R] package Spcmdr

2005-09-13 Thread Larry Layne
That sounds like you have a messed up your R_HOME/library directory. There's apparently a subdirectory called Spcmdr, with a file named DESCRIPTION in it, but it's not a correctly installed R package. No idea how it would have got there. Yes there is and now I remember putting it there,

[R] mvpart: 'weights' argument

2005-09-13 Thread Simone Vantini
Hallo dear R-users! Does anyone know if it's possible to use the weights argument (available in rpart() ) in mvpart() function too?Thanks a lot Simone Vantini -- Simone Vantini MOX (Modelling and Scientific Computing) Dipartimento di Matematica F. Brioschi Politecnico di Milano P.za Leonardo da

Re: [R] package Spcmdr

2005-09-13 Thread Duncan Murdoch
Larry Layne wrote: That sounds like you have a messed up your R_HOME/library directory. There's apparently a subdirectory called Spcmdr, with a file named DESCRIPTION in it, but it's not a correctly installed R package. No idea how it would have got there. Yes there is and now I remember

Re: [R] Reading data from a serial port

2005-09-13 Thread Ted Harding
On 13-Sep-05 vittorio wrote: Alle 21:26, martedì 13 settembre 2005, Ted Harding ha scritto: ... Have a look at ?scan. You will have to do several things which depend on your hardware setup, your operating system, the behaviour of your medical applicance, and

[R] R CMD INSTALL -l /path/to/library packagename/ fixed

2005-09-13 Thread McClatchie, Sam (PIRSA-SARDI)
Background: OS: Linux Mandrake 10.1 release: R 2.1.1 editor: GNU Emacs 21.3.2 front-end: ESS 5.2.3 - Colleagues The environment variables checked with Sys.getenv() all appeared to be in the right place. The easy fix was to copy /usr/lib/R into /usr/local/lib/R

[R] matrix calculation?

2005-09-13 Thread Cunningham Kerry
Hi, I am wondering if anybody has a simpler solution to calculate the following: ma a b [1,] 1 4 [2,] 2 3 [3,] 3 2 [4,] 4 5 pa [,1] [,2] [,3] [,4] a1234 b4325 diag(ma%*%pa) [1] 17 13 13 41 I only want to calculate the product of the row of the first

Re: [R] is library loaded

2005-09-13 Thread Seth Falcon
On 13 Sep 2005, [EMAIL PROTECTED] wrote: packageLoaded() may well be a bad name but loadedNamespaces() won't detect a package without a namespace. Right, that's a problem. It therefore seemed safe to me to check the path, which would include both packages with and without namespaces. With

Re: [R] matrix calculation?

2005-09-13 Thread Gabor Grothendieck
Try this: rowSums(ma * t(pa)) On 9/13/05, Cunningham Kerry [EMAIL PROTECTED] wrote: Hi, I am wondering if anybody has a simpler solution to calculate the following: ma a b [1,] 1 4 [2,] 2 3 [3,] 3 2 [4,] 4 5 pa [,1] [,2] [,3] [,4] a1234 b432