Re: [R] elementary statistics with R (rkward?)

2007-07-11 Thread Sarah Goslee
here in Lithuania, but I'd really like to learn to do it with R instead... -- Donatas G. -- Sarah Goslee http://www.functionaldiversity.org __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] histogram with absolute figures

2007-07-09 Thread Sarah Goslee
: the result IS wrong. Yours, Mag. Ferri Leberl Am Freitag, den 06.07.2007, 16:17 -0400 schrieb Sarah Goslee: The default of hist() is counts rather than percentages. Sarah On 7/6/07, Mag. Ferri Leberl [EMAIL PROTECTED] wrote: Dear everybody! Is ist easily possible to make up

Re: [R] How to calculate the index the number of species combinations?

2007-07-07 Thread Sarah Goslee
0 0 0 0 0 0 0 0 0 0 0 0 -- Sarah Goslee http://www.functionaldiversity.org __ 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 and provide

Re: [R] histogram with absolute figures

2007-07-06 Thread Sarah Goslee
___ -- Sarah Goslee http://www.functionaldiversity.org __ 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 and provide commented, minimal, self

[R] text display using expression or not

2007-06-15 Thread Sarah Goslee
=expression(Figure B)) Is there some straightforward way to make them match, other than putting expression() around all strings? I'm currently using R 2.5.0 on Fedora core 5. Thanks, Sarah -- Sarah Goslee http://www.functionaldiversity.org __ R-help

Re: [R] Difference between prcomp and cmdscale

2007-06-14 Thread Sarah Goslee
. For an overview text, I'm partial to _Numerical Ecology_ by Legendre and Legendre (1998) because of its readability, but there are many more good texts. Sarah -- Sarah Goslee http://www.functionaldiversity.org __ R-help@stat.math.ethz.ch mailing list https

Re: [R] Tools For Preparing Data For Analysis

2007-06-10 Thread Sarah Goslee
-related, but this would make a great fortune. Sarah -- Sarah Goslee http://www.functionaldiversity.org __ 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

Re: [R] matrix and data frame

2007-06-08 Thread Sarah Goslee
to paste its by this column and I wanna paste its not below but just at right side hand thanks good week end -- Sarah Goslee http://www.functionaldiversity.org __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] R help

2007-06-06 Thread Sarah Goslee
On 6/5/07, scott flemming [EMAIL PROTECTED] wrote: Can R be used to draw 10 arrows in one line ? Um, sure. Assuming you actually also want to know how to do it, why don't you take a look at the help for arrows(). Sarah -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] sampling problem - new to R

2007-06-06 Thread Sarah Goslee
-- -- Sarah Goslee http://www.functionaldiversity.org __ 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 and provide commented, minimal

Re: [R] random numbers selection - simple example

2007-06-06 Thread Sarah Goslee
would greatly appreciate your advice and time, Best Wishes, Jenny -- Sarah Goslee http://www.functionaldiversity.org __ 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

Re: [R] odfTable

2007-06-05 Thread Sarah Goslee
working as I have a table in my output file. I would like to know how to change the background color for the header cells. I assuming i have to use tableStyles, but I don't understand how. Does someone have an idea to help me? -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] read table

2007-06-05 Thread Sarah Goslee
(file.choose(),header=T) The result is: Error in read.table(file.choose(), header = T) : more columns than column names Can anybody tells me what is wrong? ___ -- Sarah Goslee http://www.functionaldiversity.org __ R-help

Re: [R] odfTable

2007-06-05 Thread Sarah Goslee
want, you shouldn't need to use tableStyles. Ah, right. That example was cut from a longer document where the more elaborate method was used for demonstration purposes. Thanks for the hard work! Sarah -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] Extracting lists in the dataframe $ format

2007-06-04 Thread Sarah Goslee
2 4 3 9 3 6 4 12 4 8 regression(df,1,3) Error in model.frame(formula, rownames, variables, varnames, extras, extranames, : invalid type (list) for variable 'tble[a]' -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] Biplot

2007-05-13 Thread Sarah Goslee
)], cor=TRUE)) biplot(princomp(x[,c(1,3)], cor=TRUE)) biplot(princomp(x[,c(2,3)], cor=TRUE)) Is this the only way, how I could plot them? I thought, that it could be possible to extract them of the full PCA .. KR, Alin -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] Newbie's question

2007-05-13 Thread Sarah Goslee
the standard deviation of field2 for all of the files in a directory? I'm wondering if R could do this. Thanks a lot. -- Sarah Goslee http://www.stringpage.com __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] minimum of each row in a matrix

2007-05-08 Thread Sarah Goslee
= 0 0 0 0 1 Thanks, Corinna -- Sarah Goslee http://www.functionaldiversity.org __ 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] help interpreting the output of functions - any sources of information

2007-04-24 Thread Sarah Goslee
to? Particularly in a broader context as it would not be nice to post all the time such questions... Thanks in advance, GM -- Sarah Goslee http://www.functionaldiversity.org __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] crosstabs in R?

2007-04-11 Thread Sarah Goslee
equivalent to crosstabs() in S-Plus? -- Sarah Goslee http://www.functionaldiversity.org __ 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] Confidence-Intervals.... help...

2007-04-08 Thread Sarah Goslee
classified as suffering from the MS. Furthermore, I need to find the number of MS patients required for a sensitivity of 1%... Is there a simple R-command which can do that for me? I am completely new to R... Help please! Jochen -- -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] Abundance data ordination in R

2007-04-01 Thread Sarah Goslee
book available about Multivariate Analysis for abundance data available on the web? Kind regards Miltinho Brazil -- Sarah Goslee http://www.functionaldiversity.org __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] Wikibooks

2007-03-30 Thread Sarah Goslee
permission, at least technically. I'm by no means an expert on copyright, but this is something that comes up periodically on many email lists. Sarah -- Sarah Goslee http://www.functionaldiversity.org __ R-help@stat.math.ethz.ch mailing list https

Re: [R] matrix similarity comparison

2007-03-19 Thread Sarah Goslee
be binary). I doubt that correlations are really the measure you want anyway - if they are, then you can use simply cor(m1, m2) Sarah -- Sarah Goslee http://www.functionaldiversity.org __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] matrix similarity comparison

2007-03-19 Thread Sarah Goslee
On 3/19/07, Sarah Goslee [EMAIL PROTECTED] wrote: Hi Carlos, I want to see the similarity between them, and to be able to extract the differences between them. You need to explain a bit more. Are you looking for number of elements in common? How are your data set up? (eg species

Re: [R] How to add obj to a list?

2007-02-15 Thread Sarah Goslee
will be very grateful for any of your help! Thank you in advance, susana. -- Sarah Goslee http://www.functionaldiversity.org __ 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

Re: [R] Fatigued R

2007-02-13 Thread Sarah Goslee
with this... Thanks, Shubha -- Sarah Goslee http://www.functionaldiversity.org __ 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 and provide

Re: [R] Fatigued R

2007-02-13 Thread Sarah Goslee
Message- From: Sarah Goslee [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 13, 2007 7:09 PM To: Shubha Vishwanath Karanth Cc: r-help@stat.math.ethz.ch Subject: Re: [R] Fatigued R Hi Shubha, Perhaps you haven't gotten any help because you haven't provided a reproducible example

Re: [R] remove component from list or data frame

2007-02-08 Thread Sarah Goslee
[-2,] lst1 lst2 116 338 449 55 10 -- Sarah Goslee http://www.functionaldiversity.org __ 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

Re: [R] unique/subset problem

2007-01-26 Thread Sarah Goslee
(dataset$genome1) although subset has eliminated many genomes and records. I would greatly appreciate your input about using unique correctly in this regard. Thanks Lalitha -- Sarah Goslee http://www.functionaldiversity.org __ R-help

Re: [R] Regression lines

2007-01-12 Thread Sarah Goslee
, Brian. Never mind then. You'll get to it, I'm sure. ;-) -- Sarah Goslee http://www.functionaldiversity.org __ 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

Re: [R] odfWeave problem

2006-12-22 Thread Sarah Goslee
-- Sarah Goslee http://www.functionaldiversity.org __ 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 and provide commented, minimal, self

Re: [R] odfWeave problem

2006-12-22 Thread Sarah Goslee
, useRowNames = TRUE, styles = x.styles) @ I hope this example is more helpful than my previous email! If you are interested, I have a longer, heavily-commented, example of figure and table styles for odfWeave that I'm planning to put online shortly. I'd be happy to send you a copy. Sarah -- Sarah Goslee

Re: [R] writing R extension

2006-12-20 Thread Sarah Goslee
be available directly in R. I know that it's possible to save functions in the workspace, but I need this functions in a library. -- Sarah Goslee http://www.stringpage.com http://www.functionaldiversity.org __ R-help@stat.math.ethz.ch mailing list

Re: [R] writing R extension

2006-12-20 Thread Sarah Goslee
with the function library() the occasional slip might be forgiven? Sarah -- Sarah Goslee http://www.stringpage.com http://www.functionaldiversity.org __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] Replacing labels with symbols in biplot

2006-12-18 Thread Sarah Goslee
/groups. -- Sarah Goslee http://www.stringpage.com http://www.functionaldiversity.org __ 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] Delete all dimnames

2006-12-14 Thread Sarah Goslee
On 12/14/06, Serguei Kaniovski [EMAIL PROTECTED] wrote: Hello, how can I get rid of all dimnames so that: test a b c A 1 4 7 B 2 5 8 C 3 6 9 dimnames(test) - list(NULL, NULL) test [,1] [,2] [,3] [1,]147 [2,]258 [3,]369 Sarah -- Sarah Goslee http

Re: [R] Problems with principal components analysis PCA with prcomp

2006-11-16 Thread Sarah Goslee
subsetting on the ordination values. 3. Is it possible to extract/export the information in an object into a file with a dbf extension (e.g. test.dbf)? help.search(dbf) finds the function write.dbf - sounds suspiciously useful. Sarah -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] question about capscale (vegan)

2006-11-16 Thread Sarah Goslee
site. If you don't have an original data frame, that is, your data come only in the form of distances, you will need a different implementation of constrained ordination. Alternately, you could possibly modify the function to skip the species scores step. Sarah -- Sarah Goslee http

Re: [R] question about capscale (vegan)

2006-11-16 Thread Sarah Goslee
Sorry, one additional note: You don't need to specify comm to use capscale. Ignore what I said about modifying the function. Sarah -- Sarah Goslee http://www.functionaldiversity.org __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch

Re: [R] question about capscale (vegan)

2006-11-16 Thread Sarah Goslee
behind that are different than those underlying a constrained ordination. Sarah -- Sarah Goslee http://www.functionaldiversity.org __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] Converting Character Strings to Numerical Values

2006-11-13 Thread Sarah Goslee
. __ 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 and provide commented, minimal, self-contained, reproducible code. -- Sarah Goslee http

Re: [R] Translation of R code required

2006-11-03 Thread Sarah Goslee
the errors into your email so we can see what went wrong. Sarah -- Sarah Goslee http://www.functionaldiversity.org __ 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

Re: [R] Translation of R code required

2006-11-03 Thread Sarah Goslee
that one is spelled differently (Centre vs centre, maybe, since R is case-sensitive?). The easiest thing to do with no R knowledge is probably to change the name in the csv file to match your code, if that turns out to be the problem. Sarah -- Sarah Goslee http://www.functionaldiversity.org

Re: [R] Translation of R code required

2006-11-03 Thread Sarah Goslee
. Happily, my inaccurate solution turned out to solve the problem anyway. Sarah -- Sarah Goslee http://www.functionaldiversity.org __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http

Re: [R] one row matrix

2006-11-03 Thread Sarah Goslee
you were actually asking, even though it wasn't reflected in your example... By default, R drops unused dimensions when subsetting. You can override this behavior b - a[1, ,drop=FALSE] b [,1] [,2] [,3] [1,] 1234 See: ?subset help('[') ?matrix Sarah -- Sarah Goslee http

Re: [R] R gams

2006-10-27 Thread Sarah Goslee
won't be as easy as in a prearranged commercial package. Sarah -- Sarah Goslee http://www.functionaldiversity.org __ 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

Re: [R] variables in object names

2006-09-12 Thread Sarah Goslee
)$r.squared for(i in 2:5){ rsq - c(rsq, summary(model%i%)$r.squared) } -- Sarah Goslee USDA-ARS PSWMRU University Park, PA 16802 [EMAIL PROTECTED] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] Bioconductor installation errors

2006-08-29 Thread Sarah Goslee
instruction (http://www.bioconductor.org/download http://www.bioconductor.org/download ) to install Biocoductor, there have some errors: /usr/lib/R/bin/SHLIB: line 115: make: command not found -- Sarah Goslee http://www.stringpage.com __ R-help

Re: [R] Quickie : unload library

2006-08-25 Thread Sarah Goslee
Autoloads [13] package:base detach(2) search() [1] .GlobalEnvpackage:methods package:graphics [4] package:grDevices package:utils package:datasets [7] package:ecoutils package:ecodist package:stats [10] package:gtkDevice Autoloads package:base Sarah -- Sarah Goslee http

Re: [R] How to interrupt running computation?

2006-08-22 Thread Sarah Goslee
, try Esc on Windows or Ctrl-C on Linux. If the latter, Ctrl-Z will send your R session to the background on Linux, and fg will bring it back. I don't think there's a Windows equivalent. Sarah -- Sarah Goslee http://www.stringpage.com __ R-help

Re: [R] How to interrupt running computation?

2006-08-22 Thread Sarah Goslee
Then Ctrl-C should do the trick. Sarah On 8/22/06, Lothar Schmid [EMAIL PROTECTED] wrote: I'm using Linux. And I'd like just to cancel a running computation, not the entire R prompt. Lothar -- Sarah Goslee http://www.stringpage.com __ R-help

Re: [R] Way to convert data frame to matrix

2006-06-30 Thread Sarah Goslee
-- Sarah Goslee __ 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] Finding a color code.

2006-06-26 Thread Sarah Goslee
in advance. Best regards, Ezhil -- Sarah Goslee __ 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] scatterplot but a little tricky

2006-06-16 Thread Sarah Goslee
the index in the dataset. plot(x, y, type=n) text(x, y, 1:length(x)) i doubt this is possible but i figured i would ask anyway. thanks. This is R... everything is possible, just not always easy. Sarah -- Sarah Goslee [[alternative HTML version deleted

Re: [R] if syntax error :(

2006-06-13 Thread Sarah Goslee
having trouble with my if statement. I come from a perl background so that's probably my problem! :) So here is my code: if (any(lgAB4) | any(lgAB-4)){ freq_AB-hist(lgAB, type=o, plot=F) else freq_AB-hist(lgAB, breaks=br,type =o, plot=F) } -- Sarah Goslee

Re: [R] underscores

2006-06-13 Thread Sarah Goslee
Since several people have commented to me, on and off list: On 6/13/06, Sarah Goslee [EMAIL PROTECTED] wrote: PS Using underscores in variable names is not encouraged, and can cause you problems in certain contexts. I realize that it is now legal in R to use underscores, since

Re: [R] multiple data sets on one plot

2006-06-07 Thread Sarah Goslee
, Mark -- Sarah Goslee [[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] Strange behaviour of cbind

2006-06-06 Thread Sarah Goslee
! http://www.R-project.org/posting-guide.html -- Sarah Goslee [[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

Re: [R] for loops and counter interpolation

2006-05-17 Thread Sarah Goslee
-- Sarah Goslee [[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] Finding out the format of an object

2006-04-06 Thread Sarah Goslee
at the prompt to get some idea of what it's doing (although not necessarily the complete source). Sarah -- Sarah Goslee http://www.stringpage.com [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch

[R] package docs: examples format

2006-04-05 Thread Sarah Goslee
. Is that the preferred approach, or is there something nicer? Ideally, I'd like to include one global example that covers all related functions, but I can't find a way to do that neatly (other than possibly a vignette?). Thanks, Sarah -- Sarah Goslee http://www.stringpage.com [[alternative

Re: [R] package docs: examples format

2006-04-05 Thread Sarah Goslee
. The other suggestion given, by Prof. Ripley, was to include examples(B) as part of the documentation for C, and so on. Thank you all, Sarah -- Sarah Goslee http://www.stringpage.com [[alternative HTML version deleted]] __ R-help

Re: [R] Bin by bin histogram comparisons

2006-04-05 Thread Sarah Goslee
and the same number of bins. Now I would like to compare them bin by bin and plot the results. Could someone please tell me how to do that. I searched the man pages and the web, but couldn't find anything. Thank you very much. Phil -- Sarah Goslee http://www.stringpage.com

Re: [R] How to create a directoy with R

2006-03-27 Thread Sarah Goslee
/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html -- Sarah Goslee http://www.stringpage.com [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] merge two vectors of the same length into one?

2006-03-26 Thread Sarah Goslee
length into one. -- Sarah Goslee http://www.stringpage.com [[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

Re: [R] Use of the index of a for loop to assign values to the rows of a series of variables

2006-03-22 Thread Sarah Goslee
that filename # do whatever assignment you'd like assign(matname, thismat) # copy thismat back into matname } -- Sarah Goslee USDA-ARS [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman

Re: [R] partial mantel test

2006-02-23 Thread Sarah Goslee
variables controlling for the effect of a third one. Thanks a lot Alexandra --- -- Sarah Goslee http://www.stringpage.com [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] Plotting 27 line plots in one page

2006-02-09 Thread Sarah Goslee
I want to plot all these elements in 9x3 plot (9 rows and 3 columns) par(9,3) You need to specify what par you want - see ?par for details. In this case, either par(mfrow=c(9,3)) or par(mfcol=c(9, 3)) will do what you want. Sarah -- Sarah Goslee http://www.stringpage.com

Re: [R] R newbie...

2005-12-06 Thread Sarah Goslee
that value to a variable. Sarah -- Sarah Goslee http://www.stringpage.com [[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

Re: [R] R newbie...

2005-12-06 Thread Sarah Goslee
calculate - function(x,y) { a - x + yb - x - y list(a=a, b=b) } myresult - calculate(x, y) myresult$a myresult$b Please at least read the Introduction to R at http://www.r-project.org/ It covers all of this very basic material. Sarah -- Sarah Goslee http://www.stringpage.com

Re: [R] help with PCA and classical scaling

2005-06-24 Thread Sarah Goslee
http://www.nicholas.duke.edu/landscape/classes/env358/env358.html Neither are R tutorials, but if you understand the method, you can better understand how to use the tools available. Sarah -- Sarah Goslee http://www.stringpage.com __ R-help

Re: [R] Bucketting data

2005-06-20 Thread Sarah Goslee
something which gives me a vector of these buckets, i.e. bucket(cleandata[,4])=vector of 26 61 89 180 362 544 and length(bucket(cleandata[,4]))=6 Thanks, Tolga -- Sarah Goslee http://www.stringpage.com __ R-help@stat.math.ethz.ch

Re: [R] an operator for contains

2005-06-17 Thread Sarah Goslee
. Sarah -- Sarah Goslee http://www.stringpage.com __ 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] Re: dir() and RegEx and gsub()

2005-06-09 Thread Sarah Goslee
under R have always perplexed me just a bit. When I've run into problems of this sort, I've always just processed the strings in vim or similar, rather than fight with R. I'm sure someone here understands them - hopeully we will both be enlightened. Sarah -- Sarah Goslee http://www.stringpage.com

Re: [R] how to generate pairwise plots with data frames - tia

2005-06-06 Thread Sarah Goslee
-- Sarah Goslee http://www.stringpage.com __ 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] plot/lm/abline

2005-06-02 Thread Sarah Goslee
On 6/2/05, Mathias Hunskår Furevik [EMAIL PROTECTED] wrote: Hi, when I run plot.default(z1, z2, xlab = x, ylab = y, main = , pch = +) abline(lm(z1 ~ z2)) I think you have the independent and dependent variables switched: abline(lm(z2 ~ z1)) Sarah -- Sarah Goslee http

Re: [R] merge large matrices

2005-06-02 Thread Sarah Goslee
by the corresponding values of A. How about: B[is.na(B)] - A[is.na(B)] Sarah -- Sarah Goslee http://www.stringpage.com __ 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