[R] searching a vector

2004-04-30 Thread Arend P. van der Veen
Hi, I have a integer vector x that contains a unique set of numbers: x <- c(1,2,4,6,8,10,12) Is there a simple test I can use to determine if an integer such as 6 is contained in x ? Thanks in advance for any help, Arend __ [EMAIL PROTECTED] maili

[R] GNOME 2.6 and R 1.8.1

2004-04-17 Thread Arend P. van der Veen
Hi, I use R 1.8.1 (R PROJECT) on FreeBSD 4.9 P5 with GNOME 2.6.0. When I install R it cannot find GNOME. It does successfully find X11 and tcltk. It complains that it can not find: gnome-config gnomeConf.sh When I run R from GNOME the graphic windows do not have any title bars and R termina

[R] RMySQL under FreeBSD 4.8 - is solution acceptable ????

2004-03-12 Thread Arend P. van der Veen
Hi, I had been having problems with RMySQL 0.5-3 under FreeBSD 4.8. I think I have found a work around but wanted to see if anybody had any comments. This may also be applicable to OS X. The error I got was: > library(RMySQL) Error in dyn.load(x, as.logical(local), as.logical(now)) : u

[R] RODBC

2004-03-01 Thread Arend P. van der Veen
Hi, I have installed RODBC on FreeBSD 4.9 and I am using the PostgreSQL ODBC Driver that is distributed with unixODBC 2.2.8. I can access ODBC Data Sources from Open Office so I think that everything is properly installed. When I installed RODBC I had to set export LIBS=-L/usr/local/lib so tha

[R] RMySQL Not Loading

2004-02-29 Thread Arend P. van der Veen
Hi, I am having a problem getting RMySQL to run under FreeBSD 4.9. I am using R 1.8.1 with latest patches, MySQL 4.0.17 and RMySQL_0.03.tar.gz. Everything does appear to compile properly. However when I access the library I get the following error: > library(RMySQL) Error in dyn.load(x, as.log

Re: [R] Vector Assignments

2003-12-03 Thread Arend P. van der Veen
AIL PROTECTED]> > To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > Cc: <[EMAIL PROTECTED]> > Subject: Re: [R] Vector Assignments > > > > > > Just some small refinements/corrections: > > colours <- c("red", "blue", "

[R] Vector Assignments

2003-12-01 Thread Arend P. van der Veen
Hi, I have simple R question. I have a vector x that contains real numbers. I would like to create another vector col that is the same length of x such that: if x[i] < 250 then col[i] = "red" else if x[i] < 500 then col[i] = "blue" else if x[i] < 750 then col[i] = "green" else col[i] = "black

Re: [R] Compile Packages under Windows and CHM

2003-11-20 Thread Arend P. van der Veen
Adding hhc.exe to my path did the trick. I saw hhc and assumed that was associated with the contents file and not the HTML Help Workshop. Thanks again, Arend van der Veen On Thu, 2003-11-20 at 09:38, Uwe Ligges wrote: > Arend P. van der Veen wrote: > > > Hi, > > > >

[R] Compile Packages under Windows and CHM

2003-11-20 Thread Arend P. van der Veen
Hi, I have been developing a small package. It install under RedHat Linux 9.0 without a problem. However, I have a small problem under Windows XP. I am using R-1.8.0 on both systems and HTML Help Workshop 4.74.8702.0 on Windows XP. I created the package under Linux. When I try to install the

[R] RMySQL for Windows

2003-11-20 Thread Arend P. van der Veen
Hi all, I have been reviewing previous messages about installing RMySQL under windows. My configuration is WinXP, MySQL 4.0.14-max-debug and R 1.8.0. I have been able install RMySQL. However, I do have a question: When I type >library(RMySQL) I get the following: Warning message: D

[R] Histogram

2003-11-18 Thread Arend P. van der Veen
Hi, I have what should be a simple question. I would like to generate a histogram of x <- c("a","b","c","b","c","c") where the first bar to be labeled 'c' with height 3, second bar to be labeled 'b' with height 2 and third bar to be labeled 'a' with height 1. This should be an easy task in R b

Re: [R] \preformatted and $

2003-11-18 Thread Arend P. van der Veen
I will use that as a work around. \details{ some text \preformatted{ [my-section] user = apv host = 127.0.0.1 } some more text } If anybody knows if this bug is corrected in the patch please let me know. Thanks, Arend On Tue, 2003-11-18 at 04:40, Uwe Ligges wrote: > On 17 Nov 2003, Arend P.

[R] \preformatted and $

2003-11-17 Thread Arend P. van der Veen
Hi, I have been developing a package in R and have been working on documentation. I have a \details function that contains the following: \details{ some text \preformatted{ [my-section] user = apv host = 127.0.0.1 } } When I run R CMD check I get an error while checking the manual. If I re

Re: [R] RMySQL & couldn't find function ".valueClassTest"

2003-11-12 Thread Arend P. van der Veen
n a > separate RPM, if you used RPMs, something like > MySQL-client-4.0.16-0.i386.rpm. > > On 12 Nov 2003, Arend P. van der Veen wrote: > > > I have been having trouble installing RMySQL under Redhat Linux 9.0. I > > am using R 1.8.0 and MySQL 4.0.13. MySQL is install

[R] RMySQL

2003-11-12 Thread Arend P. van der Veen
HI, I have been having trouble installing RMySQL under Redhat Linux 9.0. I am using R 1.8.0 and MySQL 4.0.13. MySQL is install in /opt/mysql. I try to install RMySQL using configure-args to specify the path of mysql but it does not work. Does any body have any suggestions. Thanks, Arend van d

[R] RMySQL for Windows

2003-11-06 Thread Arend P. van der Veen
Hi, I have been using RMySQL under linux. Does anybody know what is involved in compiling it for Windows? There is not a binary version available. Thanks, Arend __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

[R] Generic Function

2003-11-03 Thread Arend P. van der Veen
Hi, How to I write a generate function that is "specific to the class of the argument itself" ? For example, I created a data.frame that contains results of an analysis. I would like to write a special plot function with the following usage plot(data.frame) I have been looking through the do

[R] Scheme and R

2003-10-22 Thread Arend P. van der Veen
I have been using a product called rpy to allow me to access R from Python. I was wondering if anybody know if a similar product for Scheme. Thanks, Arend __ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-help

[R] Custom Device

2003-10-21 Thread Arend P. van der Veen
Hi, Can anyone point in the direction of how to write a custom output device in R. I currently generate output using PS and JPEG but need to produce output in our own vector graphics language. Thanks in advance, Arend van der Veen __ [EMAIL PROTECTED]