FAQ

# R>r-help>February 2001

## 187 discussions - 585 posts

• 24

#### [R] canonical correspondence analysis

Is there an R function that does canonical correspondence analysis. Can it be done using the VR function corresp()? If not, how hard it be to write R code to do it? I am a population biologist with ...
 Patrick FoleyFeb 16, 2001 at 9:53 pmFeb 26, 2001 at 3:03 pm
• 15

#### [R] How to read a text table? A bit of trouble with Using R - An Introduction

RTF is not what is meant by text. What I am writing is text. Your email is almost text (perhaps even legal). Look at the RTF file itself in an editor such as Emacs or (ugh) Notepad. I don't know if ...
 Jonathan BaronFeb 27, 2001 at 11:29 amMar 1, 2001 at 12:17 pm
• 14

#### [R] bug in step()?

Folks, There appears to be a bug(?) in step() when used to screen logistic models. The problem appears to be specific to 1.2.1 (or maybe also 1.2.0?), as the proper behavior was observed in earlier ...
 Chong GuFeb 16, 2001 at 5:09 pmFeb 17, 2001 at 6:02 pm
• 10

#### [R] testing for integer

Dear People, Consider the following fragment of R code choose <- function(n,r) { if( is.integer(n) && is.integer(r) && n 0 && r = 0 ) { .C("choose",as.double(n),as.double(r),comb = double(1))\$comb } ...
 Faheem MithaFeb 24, 2001 at 8:59 pmFeb 28, 2001 at 3:58 pm
• 10

#### [R] Rcmd

I'm running Windows NT4. Rcmd does not seen to read the command line. Rterm and other things work well. For example "Rcmd check --help" fails with the command interpreter trying to find a program or ...
 Bob WheelerFeb 18, 2001 at 9:26 pmFeb 19, 2001 at 10:59 am
• 10

#### [R] Removing "row.names"

I need to completely remove row.names from a dataframe. Are there other ways to remove them (and not anything else) besides: mydataframe<-data.frame(mydataframe, row.names=NULL) I realize that this ...
 Marc FeldesmanFeb 5, 2001 at 8:33 pmFeb 7, 2001 at 12:32 pm
• 9

#### [R] Newbie question: what are the advantages?

Hi - I?m a medical graduate student. I?m totally new to R, although I had heard of S before. I read it was GNU free software, and since I also use Linux, I decide to check it out. But I have some ...
 HziFeb 27, 2001 at 2:03 pmFeb 27, 2001 at 2:04 pm
• 9

#### [R] Goodness of fit to Poisson / NegBinomial

All, I have some data on parasites on apple leaves and want to do a goodness of fit test to a Poisson distribution. This seems to do it: mites <- c(rep(0,70), rep(1,38), rep(2,17), rep(3,10), ...
 Mark MyattFeb 7, 2001 at 9:14 amFeb 9, 2001 at 4:32 pm
• 7

#### [R] embedding R?

My apologies if this is a FAQ, I searched the mailing list archives before posting. Background: I am a long time user of SPlus, and a recent user of R. My work normally involves converting the raw ...
 Aaron J MackeyFeb 11, 2001 at 5:47 pmFeb 23, 2001 at 7:31 pm
• 7

#### [R] [newbie] Cox Baseline Hazard

Hello everybody. First of all, I would like to present myself. I'm a french student in public health and I like statistics though I'm not that good in mathematics (but I try to catch up). I've ...
 Meles MELESFeb 22, 2001 at 10:25 pmFeb 23, 2001 at 6:34 pm
• 7

#### [R] Setting elements in data frame

Hi all, I have a problem which I am biting my teeth into unsuccessfully: (x <- data.frame(S1=c("a","b","d","F"),N1=c(2,4,6,9),N2=c(6,NA,0,6))) S1 N1 N2 1 a 2 6 2 b 4 NA 3 d 6 0 4 F 9 6 S1 N1 N2 1 ...
 Christian HoffmannFeb 22, 2001 at 11:11 amFeb 22, 2001 at 3:30 pm
• 6

#### [R] Stuck in the Rd

Having almost written a Tcl program to convert S help to Rd format, I have one problem that I have failed to solve after reading 'R-exts'. Is there a tag something like '\item' that works in a ...
 Jim LemonFeb 23, 2001 at 10:56 amFeb 23, 2001 at 7:07 pm
• 6

#### [R] Rotated mtext

I seem to remember this coming up before, but I can't find it any messages I've saved or in the archives (searching by subject). I want to rotate mtext so that it's perpendicular to the right side. I ...
 S-LuppescuFeb 1, 2001 at 4:02 pmFeb 12, 2001 at 2:07 am
• 6

#### [R] Install from source

R -users -- I am new to R and trying to create Jim Lindsay's Nonlinear Regression and Repeated Measures libraries. I have tried R CMD INSTALL file.tgz R says... ERROR: cannot extract package from ...
 Daniel A. PowersFeb 8, 2001 at 10:23 pmFeb 9, 2001 at 5:32 pm
• 5

#### [R] self documenting workspaces, and the proper role of the dot

again I ask for some suggestions : I don't mind being told to RTFM as long as I get a few hints as to where to look <g suppose I want to document the set of functions and vectors that I have in a ...
 John AitchisonFeb 19, 2001 at 8:22 amFeb 27, 2001 at 9:51 am
• 5

#### [R] building packages in Windows under R 1.2.1

[OS: WinNT 4.0] Looks like this is not the only problem: Since R-1.2.0 I didn't installed packages from source in windows -- and I am sure, it worked for me with R-1.2.0. But it didn't work with ...
 Uwe LiggesFeb 26, 2001 at 8:54 amFeb 26, 2001 at 9:42 pm
• 5

#### [R] Specification of factors in tapply

After some fiddling around with the tapply command, I discovered that the factors (the INDEX argument) given to tapply must be specified in fastest-cycling first order. The following code shows how I ...
 RijnFeb 21, 2001 at 3:29 pmFeb 23, 2001 at 3:44 pm
• 5

#### [R] R with multiple processors

Hello. The laboratory where I work has the possibility to get a Sun machine with 12 processors. My question is: can R be used to implememt parallel algorithms which take into account the several ...
 Isabel CanetteFeb 15, 2001 at 1:57 amFeb 20, 2001 at 11:02 pm
• 5

#### [R] bandpass filters in R

Hi, does anybody have any ideas regarding the easiest and most efficient way of implementing a bandpass filter in R ? any help would be truly appreciated. cheers, Pat Johnston ...
 Pat JohnstonFeb 13, 2001 at 11:59 pmFeb 14, 2001 at 7:02 pm
• 5

#### [R] demo(tkttest) exits with error messages

I've just installed tcl version 8.3 for windows for use with rw1021, running on win95 (4.00.950). demo(tkttest) gives the following error messages. Loading required package: tcltk Error in ...
 Griffith FeeneyFeb 9, 2001 at 9:54 pmFeb 10, 2001 at 3:05 pm
• 5

#### [R] eps file not positioned properly in latex document

Dear People, I am trying to include a barplot (see code below), in a latex document. However, the plot appears in totally the wrong position. I know this is not an R question as such, but the eps ...
 Faheem MithaFeb 8, 2001 at 4:23 amFeb 8, 2001 at 4:37 pm
• 5

#### [R] zero inflated poisson and censored-continuous models

I wonder if there is a package that will estimate a Zero Inflated Poisson Model (ZIP), and also if there is a package that will estimate what is called the Tobit model: that is a combination of ...
 Georgina BermannFeb 7, 2001 at 4:06 pmFeb 8, 2001 at 9:06 am
• 5

#### [R] RWin 1.2.1: Can't access sample datasets, e.g. MASS

I'm pretty sure I'll feel like [more of] an idiot but... Using Rgui working in a fresh, blank directory. Loading required package: MASS [1] TRUE Warning message: ====== Data set cabbages' not found ...
 Peter denisevichFeb 6, 2001 at 12:07 amFeb 6, 2001 at 10:05 pm
• 5

#### [R] History

Hi, I upgraded to version 1.2.1 and now the up/down arrows for recalling commands no longer works. Is there a work around for this? platform sparc-sun-solaris2.7 arch sparc os solaris2.7 system ...
 Dermot MacSweeneyFeb 2, 2001 at 3:10 pmFeb 2, 2001 at 8:03 pm
• 4

#### [R] Post hoc tests

This is only partly an R question, but this seems a good place to ask. Like many, if not most, statistics programs, R has no post hoc tests for Kruskal Wallis or Friedman, and as far as I can make ...
 Graham SmithFeb 27, 2001 at 7:36 amMar 5, 2001 at 6:02 pm
• 4

#### [R] hclust question

Dear all, I have a question with regard to the use of hclust. I would like to be able to specify my own distance matrix instead of asking R to compute the distance matrix for me. It is ...
 Ranjan MaitraFeb 23, 2001 at 3:37 amFeb 23, 2001 at 3:03 pm
• 4

#### [R] wait for user input

I want to display a series of plots: display plot 1 wait for user input (keypress or mouse click) display plot 2 etc How to do it? Thanks for any help. (I have been using locator().) Bill Simpson ...
 Bill SimpsonFeb 20, 2001 at 9:04 amFeb 20, 2001 at 11:33 am
• 4

#### [R] Updated introductory text

All, I have updated my practical introduction to using R to analyse epidemiological data for the March 2001 Computer Software in Epidemiology course at the Nordic School of Public Health to include a ...
 Mark MyattFeb 15, 2001 at 2:03 pmFeb 19, 2001 at 10:14 am
• 4

#### No subject

Does anyone know if there is a function to do power calculation for Wilcoxon rank test in R. Thanks for your help. Marwan Khawaja Fafo Institute for Applied Social Science Borggt. 2B, P.O.Box 2947 ...
 Khawaja MarwanFeb 2, 2001 at 2:34 pmFeb 19, 2001 at 4:16 am
• 4

#### [R] deviance vs entropy

Hello, The question looks like simple. It's probably even stupid. But I spent several hours searching Internet, downloaded tons of papers, where deviance is mentioned and... And haven't found an ...
 RemoteAPLFeb 15, 2001 at 1:19 pmFeb 16, 2001 at 12:24 am
• 4

#### [R] Reading single precision floats from binary file

Dear all, I have a few files with binary data written by a C program a friend wrote. I allready have program to read these files, Thomas Lumley and Prof Brian D Ripley was kind enough to respond to a ...
 Kjetil KjernsmoFeb 15, 2001 at 4:04 pmFeb 15, 2001 at 7:19 pm
• 4

#### [R]package dependence

Hi, I want to create several packages, with package Aa depending on functions in package A. My directories with .r and .Rd are organized as follows ./A/man/*.Rd ./A/R/*.r ./Aa/man/*.Rd ./Aa/R/*.r ...
 Christian HoffmannFeb 15, 2001 at 8:47 amFeb 15, 2001 at 4:11 pm
• 4

#### [R] Scatterplot - symbols coded by factor

Hi - I would like to create a scatterplot with the symbols coded by a factor in each record. Is their a better way than what I have used below? I attempted to use the plot.factor, but cannot force it ...
 Matt PocernichFeb 10, 2001 at 4:05 amFeb 10, 2001 at 3:42 pm
• 4

#### [R] What is R?

Dear all there's something. that puzzles me about what R is :-) "R is available as Free Software under the terms of the Free Software Foundation's GNU General Public License in source code form." ...
 Diego KuonenFeb 8, 2001 at 7:01 pmFeb 9, 2001 at 12:57 pm
• 4

#### [R] barplots with pictex

Dear R People, I want to include a barplot corresponding to a simple discrete probability distribution in a LaTeX document. I decided to use the pictex driver. After a certain amount of messing ...
 Faheem MithaFeb 6, 2001 at 7:36 pmFeb 7, 2001 at 6:56 am
• 4

#### [R] callback environment for Tk buttons

Hi. I'm running into problems with using R functions as callback commands for buttons in Tk. The following Tcl/Tk script creates three buttons. If you press hello it prints hello world. If you press ...
 Thomas VogelsFeb 3, 2001 at 7:48 pmFeb 4, 2001 at 7:23 pm
• 4

#### [R] R problem

hello!! i'm starting with R and i have some big problems:when i try to take a notepad document (or word) i can't put it into R!!!! i tried : read.table("nameofmyfile.dat") but it doesn't work!!!!! my ...
 Erik BuryFeb 2, 2001 at 12:19 pmFeb 2, 2001 at 9:07 pm
• 3

#### [R] re: Spatial stats: R vs. Splus

Hello, Could someone tell me whether the spatial statistics module of Splus is worth the rather high price, or whether one could (with reasonable effort) carry out the same things using R and some of ...
 Kenneth NordstromFeb 28, 2001 at 2:50 pmMar 5, 2001 at 10:53 am
• 3

#### [R] append output to an existing file

Hi, I have a Word file "output.doc". Now I run "rterm --slave < script.r output.doc". It will overwrite all the data in "output.doc". How to keep the original data in "output.doc" and meanwhile ...
 Yu-Ling WuFeb 28, 2001 at 11:51 pmMar 1, 2001 at 12:16 pm
• 3

#### [R] output without labels and delimited by Tab

Hi, I have a set of data and when I run "summary(data)", I got the following output: dstuser dstmethod numaction Min. : 0.000 Min. : 0.000 Min. : 0.00 1st Qu.: 1.000 1st Qu.: 1.000 1st Qu.: 2.00 ...
 Yu-Ling WuFeb 26, 2001 at 7:22 pmFeb 27, 2001 at 3:24 am
• 3

#### [R] run R under DOS prompt

Hi, I have a xxx.R file. In order to run this file, I have to go to R, and type -- source("xxx.R"). Two questions: 1. How to run file xxx.R under DOS prompt instead of entering R environment? 2 ...
 Yu-Ling WuFeb 13, 2001 at 11:27 pmFeb 15, 2001 at 7:20 pm
• 3

#### [R] supsmu vs. ppr

I used the supersmoother function in the modreg package as follows: super <- supsmu(ilogemp,award) Then I decided that I might want additional explanatory variables (other than ilogemp) in my model ...
 David BeedeFeb 12, 2001 at 8:30 pmFeb 13, 2001 at 7:13 am
• 3

#### [R] RODBC and connection parameters

Hi! I'm using the RODBC packages for connecting R and a mysql database. To do this, i use the function odbcConnect(dsn,uid,pwd). Is it possible to read the connection paramters from the odbc.ini file ...
 Frank Gerrit ZoellnerFeb 12, 2001 at 2:31 pmFeb 12, 2001 at 8:32 pm
• 3

#### [R] Library MASS -- polr function

I seem to be able to extract everything but the t value and Std.error out of the summary function for polr. Category <- factor(rep(c(-1,0,1),2)) Freq<-c(2,4,4,3,3,4) Sample<-factor(rep(c("x","y"), ...
 Daniel YearsleyFeb 11, 2001 at 10:33 pmFeb 11, 2001 at 11:51 pm
• 3

#### [R] Test for multiple contrasts?

Hello, I've fitted a parametric survival model by where srmod.contr is the following matrix of contrasts: prep auto poll self home [1,] 1 1 1.0000000 0.0 0 [2,] -1 0 0.0000000 0.0 0 [3,] 0 -1 ...
 Kaspar PflugshauptFeb 8, 2001 at 1:52 pmFeb 10, 2001 at 2:07 am
• 3

#### [R] install R from RPM

Hi everybody ! I'm new to R (used to Matlab ...) and I 'd like to use R at home ... I've installed it from RPM package (R-base-1.2.1-2.i386.rpm) on a linux RedHat 7.0, succesfully ....however but ...
 Nicolas FauchereauFeb 9, 2001 at 9:04 amFeb 9, 2001 at 5:51 pm
• 3

#### [R] packages, help

Hi, Using help under help.start() is working fine (html) Q1: using ?solve results in the message "sh: ~/R/tmp/R4f32S1cfb: cannot open" displayed in the XEmacs buffer "help[R](solve)". BUT there ...
 Christian HoffmannFeb 5, 2001 at 3:57 pmFeb 6, 2001 at 4:51 pm
• 3

#### [R] Bar widths in barplots don't change

Is the width= parameter in barplot() supposed to work? I couldn't get it to work in my plot, and even in the example, data(VADeaths, package = "base") barplot(VADeaths, width=rep(0.1, 4)) the plot ...
 S-LuppescuFeb 5, 2001 at 4:40 pmFeb 5, 2001 at 5:33 pm
• 3

#### [R] summary() vs mean()

Forgive what may seem to be a trivial question/problem. Below is some simple R 1.2.1(Windows) code with output. Name Body.Weight Brain.Weight Red Fox :1 Min. : 3.0 Min. : 26.0 Pig :1 1st Qu.: 35.5 ...
 Marc R. FeldesmanFeb 1, 2001 at 3:14 amFeb 1, 2001 at 5:56 pm
• 3