FAQ

# R>r-help>October 2001

## 205 discussions - 657 posts

• 16

#### [R] about the char _

Dear all, I don't know the historical reason why the char '_' was defined in the R language grammar as a synonyme of the assignment <-, anyway the R documentation dosen't recommand its usage. Well, ...
 FanOct 4, 2001 at 11:23 pmOct 6, 2001 at 5:30 pm
• 15

#### No subject

Dear All - I tried to install R-1.3.1 on a Ultrasparc 10 running Solaris 2.7. I have followed the directions in the INSTALL file exactly, but R refuses to create the file R.bin. I also had someone ...
 Monnie McGeeOct 1, 2001 at 9:26 pmOct 26, 2001 at 6:23 pm
• 15

#### [R] printing out tables to a file using cat...

Hi, all. I'd like to print out a table to a file (I'm using cat(...,file="foobar")). the problem is, cat doesn't print out the headings for the table (making the table hard to interpret!). For ...
 Greg TraftonOct 4, 2001 at 6:35 pmOct 8, 2001 at 2:39 pm
• 12

#### [R] easy graphic question

Hi! How do I specify a filled point in a scatterplot? Their size? plot(x,y) just gives "empty" points like "o". I want a full black point. TIA -- myriam ...
 Myriam AbramsonOct 24, 2001 at 3:04 amOct 26, 2001 at 5:31 pm
• 12

#### [R] R 1.3.1 on OS9.1?

Dear List, After my laptop was stolen I (eventually) replaced it with a G4 laptop running Mac OS 9.1 . This also meant I updated to the current Mac binary 1.3.1. This is pretty wonderful except for ...
 G.JanacekOct 11, 2001 at 4:05 pmOct 15, 2001 at 4:12 pm
• 11

#### [R] Defining time series objects

Hi All, I am new to R, having used S-plus a number of years back. I would like to set up a time series object for forecasting, with data collected daily between 5th April 2001 and 16th September ...
 Mark ScarrOct 31, 2001 at 12:47 amNov 30, 2001 at 6:35 pm
• 11

#### [R] optimal windows R machine

For some mysterious reason I do not believe this was delivered to the list. Sorry if it turns out to be a duplicate.---Bob I have the happy task of purchasing a new windows desktop PC. I have a ...
 Bob PorterOct 16, 2001 at 6:25 pmOct 18, 2001 at 5:06 pm
• 11

#### [R] Several R vs S-Plus issues

Hi, all, I've been converting code from S-Plus ("S" for short) to R for a few weeks. Here are some differences I've found, aside from the big well-known ones (scoping, models, data storage) and the ...
 David BrahmOct 3, 2001 at 3:35 pmOct 4, 2001 at 3:29 pm
• 9

#### [R] maps in R (fwd)

Here is the answer to an old question of mine, regarding maps in R Hope this help. claudia ---------- Forwarded message ---------- Date: Mon, 25 Jun 2001 13:48:05 -0400 From: Kieran Healy <kjhealy at ...
 Claudia TebaldiOct 31, 2001 at 9:36 pmNov 6, 2001 at 5:57 pm
• 9

#### [R] seg fault with mclust

Howdy, I'm experiencing a segmentation fault when trying to load mclust.so from mclust-1.1-4. I'm using R-1.3.1 on RedHat 6.2, and gcc --version reports "egcs-2.91.66". Any ideas? -Andy Package ...
 Andy JacobsonOct 31, 2001 at 6:06 pmNov 5, 2001 at 11:19 am
• 9

#### [R] Two questions

Greetings, I have two questions that I could not answer from the documentation. A - ecdf and confidence intervals : Is there a (simple) way to generate confidence intervals (95%) for a ecdf? B - ...
 Christian BlouinOct 22, 2001 at 4:45 pmOct 23, 2001 at 12:52 pm
• 8

#### [R] zeros in table() output in version 1.3.1

Are the following differences in table() output between versions 1.3.0 and 1.3.1 a feature, a bug or a problem with my implementation? (I am running under Solaris 2.7 SPARC, built using the Sun C and ...
 Steve ShiboskiOct 23, 2001 at 7:18 pmOct 29, 2001 at 4:31 pm
• 8

#### [R] How change the size of persp() axis labels?

Hi, I have been using the persp() function to plot species response surfaces based on GAMs (using package mgcv). Everything works fine, except that I have a slight problem when it comes to producing ...
 Gavin SimpsonOct 24, 2001 at 9:30 amOct 25, 2001 at 7:49 pm
• 8

Hi all, Appologies for the rather basic IO question but I am rather new to R... Migrated from IDL/Matlab recently. I have a rather simple Fortran control file (sigh...) that I am trying to parse and ...
 Randall SkeltonOct 17, 2001 at 11:05 amOct 18, 2001 at 11:45 am
• 8

#### [R] bug in paste?

Dear all, I have strange problems with paste. Actually I suggest it is a bug (I send a associated bug report for some days ago too). I have a vector ce0, a character vector m and I paste them ...
 Ott ToometOct 9, 2001 at 11:09 amOct 10, 2001 at 7:45 pm
• 8

#### [R] .Fortran()

I am trying to call some Fortran subroutines using .Fortran(). These subroutines have arguments of type 'character', 'real', 'integer', and 'integer*2'. Is it impossible to call subroutines expecting ...
 John Bjornar BremnesOct 8, 2001 at 2:25 pmOct 10, 2001 at 2:07 pm
• 7

#### [R] Weird feature when creating function lists with apply

Hi R-fellows, can anyone explain this weird feature? I am trying to create a list of functions with apply, and it appears that there is something strange going on when the function evaluates the ...
 Uffe Høgsbro ThygesenOct 10, 2001 at 9:13 amOct 10, 2001 at 2:22 pm
• 7

#### [R] Accessing just the value of an object but not the attributes

I have the feeling that this is a dumb question but oh well ... When I have an object x with several attributes, y <- x will make a copy of x with all the attributes included. What if I just want y ...
 Johann PetrakOct 2, 2001 at 3:08 pmOct 6, 2001 at 2:36 pm
• 7

#### [R] plot of Bernoulli data

I have some Bernoulli data something like this: x<-sort(runif(100,1,20)) p<-pnorm(x,10,3) y<-as.numeric(runif(x)<p) plot(x,y) lines(x,p) This plot is not very satisfactory because the ogive does not ...
 Bill SimpsonOct 2, 2001 at 9:23 amOct 4, 2001 at 4:19 pm
• 6

#### [R] removing duplicated rows from a data.frame

Dear all, Sorry for the simplicity of the question, but how does one go about removing duplicated rows in a data.frame? I'm looking for a quick and simple solution, as my data.frames are relatively ...
 Gary CollinsOct 31, 2001 at 10:07 amNov 5, 2001 at 10:47 am
• 6

#### [R] Applicability of "Programming with Data" Text

Hello, Before I consider purchasing it, can someone comment on the general applicability of John Chambers' book titled "Programming with Data" for R programming. I am currently using R-1.3.1 with the ...
 Randall SkeltonOct 31, 2001 at 7:30 pmNov 4, 2001 at 2:51 pm
• 6

#### [R] Help with 'get.hist.quote' on tseries

Hi ALL: I am trying to use get.help.quote from library(tseries). I tried to run the example from help(get.hist.quote) but R complained. Here is the command I used and the response: ibm <- ...
 Dr. Andrew CriswellOct 29, 2001 at 2:36 amOct 30, 2001 at 6:38 pm
• 6

#### [R] Assignment of structures on a given environment

Hi, In order to avoid deep copies by passing large arguments to functions or returning values, I'm trying to do the assignment of variables in a given environment. The problem is when I try to assign ...
 Rita RibeiroOct 16, 2001 at 2:02 pmOct 17, 2001 at 1:41 pm
• 6

#### [R] Ordered factors and DBMS

Is there any way of preserving order of ordered factors when storing a table in PostgreSQL? I have been using PostgreSQL and the RPgSQL package to store a large table with answers such as "Strong ...
 F. TusellOct 4, 2001 at 3:38 pmOct 5, 2001 at 2:47 am
• 5

#### [R] shared libraries on FreeBSD 4.*

I've used R for a couple of years on FreeBSD with few problems. Recently, a couple of the contributed packages seem to have difficulty finding symbols in the shared libraries. Currently, I'm running ...
 Loren mccarterOct 31, 2001 at 4:22 pmNov 2, 2001 at 5:07 pm
• 5

#### [R] generating a gamma random variable

Dear R People, This question has nothing to do with R directly, but it is a simulation question. I need to generate a random variable distributed as gamma(\alpha,\beta), with the additional proviso ...
 Faheem MithaOct 21, 2001 at 5:50 amOct 24, 2001 at 2:36 pm
• 5

#### [R] OT: compare several graphs

Hi all, this is OT, but maybe someone can give me a clue. I've got data from eye tracker experiments (750 data points). These figures show how the data lock like Y axes display velocity, x axes ...
 Sven GarbadeOct 22, 2001 at 10:17 amOct 23, 2001 at 8:21 am
• 5

#### [R] How to comment out multiple lines in R source code?

Hi, Is there a way to comment out multiple lines at once in R source code like C language's /* */ struct? This is quite useful when one is testing different sections of a source code. Thanks, ...
 Jonathan_liOct 10, 2001 at 6:43 pmOct 11, 2001 at 5:11 pm
• 4

#### [R] memory

Dear List I would like to apply kriging (using sgeostat or fields package) The result I got is as follows: 95,052,192 In other words. R should be able to allocate the vector of 41Mb!!!! What is the ...
 Geert AartsOct 30, 2001 at 8:06 pmOct 31, 2001 at 8:41 am
• 4

#### [R] Cross-compilers versus windows compilers (was optimal win dows R machine)

Good morning, May I ask a naive follow up to this? Having now been granted limited rights to use R-windows on a work PC, I wish to set up my home PC to support compiling packages and so on. I ...
 Paul HewsonOct 19, 2001 at 7:05 amOct 22, 2001 at 8:03 pm
• 4

#### [R] two way ANOVA with unequal sample sizes

Hi, I am trying a two way anova with unequal sample sizes but results are not as expected: I take the example from Applied Linear Statistical Models (Neter et al. pp889-897, 1996) growth rate gender ...
 Julien claudeOct 16, 2001 at 7:33 pmOct 16, 2001 at 11:42 pm
• 4

#### [R] Underscores and Fortran code

This might more properly be filed as a bug report, but ... I came upon the following problem while trying to dyn.load a library of Fortran code into R. I'm running RedHat 7.1 on a Pentium III laptop, ...
 Brett PresnellOct 11, 2001 at 8:48 pmOct 12, 2001 at 2:28 pm
• 4

#### [R] tcl/tk & Windows2000?

Hello, i have some problems to run tcltk/R on with Win2000. With Win98 i have no problems !? When i do this in R, i get no message-error & tcl/tk is really here ! ...
 C. SchulzOct 4, 2001 at 10:18 amOct 4, 2001 at 10:12 pm
• 3

#### [R] cluster

Hi, I have the graph below: The numbers are points in coordinates (simplified graph). I need make a cluster analysis of this for identify groups and make a graph with this groups under circle. In R ...
 Ronaldo Reis Jr.Oct 29, 2001 at 11:32 amNov 2, 2001 at 8:35 am
• 3

#### [R] Quick question!

Thanks very much to all who answered my question yesterday on loops. Just a further quick question: If I have this: for(i in 1:n) { subset <- data[which(data\$id==i),] which returns the rows where I ...
 Isabel JonesOct 31, 2001 at 12:37 pmOct 31, 2001 at 2:56 pm
• 3

#### [R] Large data sets in R

As a new user of R, I'm wondering what the maximum matrix size is in R? I have a large data set consisting of 9000 people and want to be able to create large matrices involving these. Is R suitable ...
 Laura GrossOct 29, 2001 at 12:47 pmOct 29, 2001 at 4:26 pm
• 3

#### [R] question about anova() output

Hello, I am getting output from anova() and summary(aov()) that depends on the order of the factors in the fitted model object, and this has me baffled. I see this dependency with the data.frame ...
 Robert BurrowsOct 26, 2001 at 9:07 pmOct 27, 2001 at 1:24 am
• 3

#### [R] Parsing of HTML files in R

Is there any package similar to the XML package that is able to "extract" relevant information from HTML files. Namely, I'm interested in obtained data that is represented as a HTML table, into some ...
 Luis TorgoOct 23, 2001 at 4:05 pmOct 26, 2001 at 2:56 pm
• 3

#### [R] lowess C code

Hi, I understand that the core of lowess() function is written in C. Is the C source code available and if yes, how can I get to it? I want to write a multidimensional extension of lowess() if you ...
 PawelOct 23, 2001 at 10:00 pmOct 25, 2001 at 4:38 pm
• 3

#### [R] Rows function in nlme package

The Rows function which is called from plot.compareFits in the nlme package is not found. Error in plot.compareFits(compareFits(coef(bp.model3), coef(bp.model3M))) : couldn't find function "Rows" Can ...
 Ross DarnellOct 23, 2001 at 5:29 amOct 24, 2001 at 3:14 pm
• 3

#### [R] tapply problem

Hello everybody. I have a question that has stumped me and the usual "apply" tricks don't seem to work. I run a course where each student's performance is marked by one or more assessors. I have a ...
 Robin HankinOct 18, 2001 at 3:21 amOct 24, 2001 at 9:00 am
• 3

#### [R] Type III sums of squares.

Peter Dalgaard writes (in response to a question about 2-way ANOVA with imbalance): People keep saying this --- very vehemently --- and it is NOT TRUE. Point 1 --- imbalance is really irrelevant ...
 Rolf TurnerOct 17, 2001 at 4:16 amOct 21, 2001 at 1:14 pm
• 3

#### Ultimate Linux Box (was RE: [R] optimal windows R machine)

Well, maybe this is sort of related... Eric Raymond has written an article for the Linux Journal on how to build an Ultimate Linux Box. You can find the whole thing at ...
 Liaw, AndyOct 18, 2001 at 7:29 pmOct 19, 2001 at 9:48 pm
• 3

#### [R] Rcmd SHLIB in rw1031 (R for Win)

Thanks for the answers on readme.packages. I have installed Rw1031 from SetupR.exe including the option for compiling source files and, following directions in www.stats.ox.ac.ul/pub/Rtools, have ...
 Agustin LoboOct 18, 2001 at 5:30 pmOct 19, 2001 at 8:56 am
• 3

#### [R] R script

Is there some way run an R script from the command line? Can I put a line at the top of the file like I would for a bash or perl script? For example, a such a script (test.r) might look like ...
 Clark ChristensenOct 18, 2001 at 8:01 pmOct 19, 2001 at 8:07 am
• 3

Hello all, I am 2 days old in compiling and installing R-1.3.1 and having all kinds of problems with one particular package named "Matrix_0.3-15.tar.gz" Where should I start? OK! I have successfully ...
 Leslie_BranchOct 17, 2001 at 2:53 pmOct 17, 2001 at 4:32 pm
• 3

#### [R] summary.glm objects

Dear R-list members, I´m trying to run a S-plus source (diag.norm) from http://www.ime.usp.br/~giapaula/programas.html in R I´m having problems in the following lines: lms <- summary(fit.model) # ...
 AolintoOct 16, 2001 at 11:30 amOct 16, 2001 at 5:11 pm
• 3

#### [R] help me

Hy, I have dowloaded the R-version for Windows. I would want to plot different pictures on the same device, but I am not able to do it (i.e I would like make 2 qqplot on the same graphic). Can you ...
 D TarfanelliOct 16, 2001 at 9:39 amOct 16, 2001 at 2:12 pm
• 3

#### [R] recursive functions and global variables

Hi, I am trying to write a recursive routine which passes some variables through the function calls but also refers to some global variables. I need the global variables because they are very big (n ...
 David A RichmondOct 14, 2001 at 5:44 pmOct 15, 2001 at 10:18 am
• 3

#### [R] Unlisting while preserving object types?

Hi A toy example is probably the least ambiguous way of explaining what I'm trying to do. Length Class Mode a 15 spec list b 15 spec list I'm looking for an elegant way to fetch components of the ...
 Turner, JasonOct 9, 2001 at 8:35 pmOct 11, 2001 at 9:04 am