Re: [R] remove numbers from string of characters

2010-10-18 Thread Ted Harding
([[:alnum:]]* ,,X) # [1] Frozen Niagara Entrance Hoping this helps! Ted. E-Mail: (Ted Harding) ted.hard...@wlandres.net Fax-to-email: +44 (0)870 094 0861 Date: 18-Oct-10 Time: 16:19:08

Re: [R] remove numbers from string of characters

2010-10-18 Thread Ted Harding
E-Mail: (Ted Harding) ted.hard...@wlandres.net Fax-to-email: +44 (0)870 094 0861 Date: 18-Oct-10 Time: 16:31:20 -- XFMail

Re: [R] rounding up (always)

2010-10-20 Thread Ted Harding
))) + 10^k} However, what do you *really* want to happen to 3000? Ted. E-Mail: (Ted Harding) ted.hard...@wlandres.net Fax-to-email: +44 (0)870 094 0861 Date: 20-Oct-10 Time: 22:55:47

Re: [R] loading workspace- getting annoying

2010-10-20 Thread Ted Harding
definitions F1, F2, or anything else with a name), then you can execute rm(X,Y,Z1,Z2,F1,F2) Hoping this helps, Ted. E-Mail: (Ted Harding) ted.hard...@wlandres.net Fax-to-email: +44 (0)870 094 0861 Date: 21-Oct-10

Re: [R] importing csv gets me all 16,000 columns with NA

2010-10-22 Thread Ted Harding
that this help[s. Ted. E-Mail: (Ted Harding) ted.hard...@wlandres.net Fax-to-email: +44 (0)870 094 0861 Date: 22-Oct-10 Time: 11:14:19 -- XFMail

Re: [R] convert wind direction from degrees to basic compass dir

2010-10-23 Thread Ted Harding
. E-Mail: (Ted Harding) ted.hard...@wlandres.net Fax-to-email: +44 (0)870 094 0861 Date: 23-Oct-10 Time: 22:56:52 -- XFMail

Re: [R] Contour Plot on a non Rectangular Grid

2010-10-24 Thread Ted Harding
. One (which is fairly basic, but may suit your purposes) is the interpp() function in package akima: http://finzi.psych.upenn.edu/R/library/akima/html/interpp.html Hoping this helps, Ted. E-Mail: (Ted Harding) ted.hard

Re: [R] more errors (behavior)

2010-10-24 Thread Ted Harding
) b=c(4,5,6,7) a+b [1] 6 8 8 10 when I really want recycling, I would rather do it explicitly with rep. regards, /iaw But, in such a case, what would you intend a+b to mean? Ted. E-Mail: (Ted Harding) ted.hard

Re: [R] multivariate Poisson distribution

2010-11-03 Thread Ted Harding
,Y). So correlated counts from a multivariate Poisson distribution does not lead to a definite target! So it would be useful if you could specify precisely what you want that phrase to mean. Ted. E-Mail: (Ted Harding) ted.hard

Re: [R] Logical vectors

2010-11-04 Thread Ted Harding
this helps! Ted. E-Mail: (Ted Harding) ted.hard...@wlandres.net Fax-to-email: +44 (0)870 094 0861 Date: 04-Nov-10 Time: 09:08:37 -- XFMail

Re: [R] calculate probability

2010-11-06 Thread Ted Harding
. E-Mail: (Ted Harding) ted.hard...@wlandres.net Fax-to-email: +44 (0)870 094 0861 Date: 06-Nov-10 Time: 12:06:17 -- XFMail -- __ R-help@r

Re: [R] How to generate multivariate uniform distribution random

2010-11-06 Thread Ted Harding
= 0.6/12 = 0.05 cor(X,Y) [1] 0.5947063 # theory: cor = p= 0.6 It would be interesting to see a solution which did not involve having cases with X=Y! Hoping this helps, Ted. E-Mail: (Ted Harding) ted.hard

Re: [R] Visualization of histograms

2010-11-08 Thread Ted Harding
a namespace (and not attached): [1] tools_2.11.0 E-Mail: (Ted Harding) ted.hard...@wlandres.net Fax-to-email: +44 (0)870 094 0861 Date: 08-Nov-10 Time: 13:34:10

Re: [R] Extending the accuracy of exp(1) in R

2010-11-09 Thread Ted Harding
, you can set the global digits option: options(digits=17) exp(1) # [1] 2.718281828459045 pi # [1] 3.141592653589793 See the entry for digits in ?options. Hoping this helps, Ted. E-Mail: (Ted Harding) ted.hard

Re: [R] Extending the accuracy of exp(1) in R

2010-11-09 Thread Ted Harding
*perceive* is different. Always. (Well, almost always: you can make a deliberate effort to study the marks on the paper as marks on paper). Ted. E-Mail: (Ted Harding) ted.hard...@wlandres.net Fax-to-email: +44 (0)870 094 0861 Date: 09

Re: [R] Kolmogorov Smirnov Test

2010-11-11 Thread Ted Harding
read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. E-Mail: (Ted Harding) ted.hard...@wlandres.net Fax-to-email: +44 (0)870 094 0861 Date: 11-Nov-10

Re: [R] overlap histogram and density

2010-11-11 Thread Ted Harding
-Mail: (Ted Harding) ted.hard...@wlandres.net Fax-to-email: +44 (0)870 094 0861 Date: 11-Nov-10 Time: 20:02:24 -- XFMail -- __ R-help@r-project.org mailing list

Re: [R] overlap histogram and density

2010-11-11 Thread Ted Harding
[OOPS!!I accidentally reproduced my second example below as my third example. Now corrected. See below.] On 11-Nov-10 20:02:29, Ted Harding wrote: On 11-Nov-10 18:39:34, Roslina Zakaria wrote: Hi, Does anybody encounter the same problem when we overlap histogram and density

[R] Efficient marginal sums?

2010-11-13 Thread Ted Harding
: marg.apply(X,Y,Z,fun1=f,fun2=sum,margins=c(2,3)) (Such a question must have been asked before, but I haven't located it). With thanks, Ted. E-Mail: (Ted Harding) ted.hard...@wlandres.net Fax-to-email: +44 (0)870 094 0861 Date: 13-Nov-10

Re: [R] How to permanently remove [Previously saved workspace re

2010-11-14 Thread Ted Harding
, Duncan, and an excellent explanation of why .Rdata has no name! I also like the final sentence. I would only add: If you're sane, and want to stay sane, think about not using Windows. Ted. E-Mail: (Ted Harding) ted.hard

Re: [R] Fatal Error R

2010-11-17 Thread Ted Harding
by '$'. which concerns only the issue of warnings in such cases, and has nothing to do with suppressing partial matching. Maybe others know better! Best wishes, Ted. E-Mail: (Ted Harding) ted.hard...@wlandres.net Fax-to-email

Re: [R] density at particular values

2010-11-21 Thread Ted Harding
putting it up to illustrate that you should not expect a unique answer to this question: what the answer is depends on how you set about finding it! Ted. E-Mail: (Ted Harding) ted.hard...@wlandres.net Fax-to-email: +44 (0)870 094

Re: [R] in continuation with the earlier R puzzle

2010-07-12 Thread Ted Harding
- 11.184) = 57.65854 i.e. nearly 60 times as long. Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 12-Jul-10 Time: 17:36:07

Re: [R] dnorm Line Plot Graphics

2010-07-13 Thread Ted Harding
)*(-0.05+(0:101)) plot(Snow,dnorm(Snow,mean=26.61,sd=14.179),pch=+,col=blue) lines(S0,dnorm(S0,mean=26.61,sd=14.179),col=green) may look better. Hoping this helps, Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax

Re: [R] Convergent series

2010-07-14 Thread Ted Harding
. for the exponential series, fun1 - function(x) 1 fun - function(x,n,tn) tn*x/n Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 14-Jul-10

Re: [R] Convergent series

2010-07-15 Thread Ted Harding
http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 15-Jul-10

Re: [R] How to transform: 4 columns into two columns stacked

2010-07-16 Thread Ted Harding
. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 16-Jul-10 Time: 12:56:48 -- XFMail

Re: [R] Namibia becoming NA

2010-07-18 Thread Ted Harding
in input into an NA value. Maybe there is -- but, if so, it is not visible in the documentation! Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 18-Jul-10

Re: [R] using sample() for a vector of length 1

2010-07-22 Thread Ted Harding
/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. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax

Re: [R] calculate slope of line

2010-07-23 Thread Ted Harding
in advance, Katrin (y2 - y1)/(x2-x1) or, if X=c(x1,x2) and Y=c(y1,y2), diff(Y)/diff(X) either of which is shorter than lm(Y ~ X)$coeff[2] ## !! :) Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax

Re: [R] Manage several graphical devices in interactive mode

2010-07-25 Thread Ted Harding
. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 25-Jul-10 Time: 15:03:14 -- XFMail

Re: [R] Different decimal places in a matrix

2010-07-29 Thread Ted Harding
, and using cat() to output the results. However, I don't have time right now to explore the details of how it might be done. Sorry. Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 29

Re: [R] Different decimal places in a matrix

2010-07-29 Thread Ted Harding
On 29-Jul-10 09:25:37, Ted Harding wrote: On 29-Jul-10 09:08:22, Nicola Sturaro Sommacal wrote: Hi! I have a ftable object in which some row contains integers and some other contains a percentage that I would like to show with two digits after the dot. I tried something like ftblP[index

Re: [R] Ouput several lines of cat

2010-07-30 Thread Ted Harding
. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 30-Jul-10 Time: 17:44:26 -- XFMail

Re: [R] Lognormal distribution - Range Factor

2010-08-01 Thread Ted Harding
. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 01-Aug-10 Time: 12:33:45 -- XFMail

Re: [R] Why do the results of paste() depend on how the argument

2010-08-02 Thread Ted Harding
-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 02-Aug-10 Time: 10:14:59 -- XFMail -- __ R-help@r-project.org mailing

Re: [R] Confidence Intervals for logistic regression

2010-08-07 Thread Ted Harding
, probit, cloglog, that is; it's not true for the identity link, obviously.) -- Peter Dalgaard Center for Statistics, Copenhagen Business School Phone: (+45)38153501 Email: pd@cbs.dk _Priv: pda...@gmail.com E-Mail: (Ted

Re: [R] Bug in t.test?

2010-08-13 Thread Ted Harding
-project.org 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. E-Mail: (Ted

Re: [R] Bug in t.test?

2010-08-14 Thread Ted Harding
: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 14-Aug-10 Time: 18:55:23 -- XFMail -- __ R-help@r-project.org mailing list

Re: [R] Random Number Generators and Sample

2010-08-16 Thread Ted Harding
! Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 16-Aug-10 Time: 09:31:20 -- XFMail

Re: [R] How to read ANOVA output

2010-08-18 Thread Ted Harding
) Pval # = 2.015227e-05 Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 18-Aug-10 Time: 09:41:08 -- XFMail

Re: [R] Aspect Ratio

2010-08-19 Thread Ted Harding
://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. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax

Re: [R] which one give clear picture-pdf, jpg or tiff?

2010-08-20 Thread Ted Harding
. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 20-Aug-10 Time: 10:54:33 -- XFMail

Re: [R] which one give clear picture-pdf, jpg or tiff?

2010-08-20 Thread Ted Harding
. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 20-Aug-10 Time: 12:32:31 -- XFMail -- __ R-help@r-project.org

Re: [R] R reports

2010-08-21 Thread Ted Harding
. [...] E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 21-Aug-10 Time: 09:48:54 -- XFMail

Re: [R] Comparing/diffing strings

2010-08-24 Thread Ted Harding
# [3,] 5 e E Hoping this helps, Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 24-Aug-10 Time: 15:38:22 -- XFMail

Re: [R] How to calc ratios base on current and previous row?

2010-08-27 Thread Ted Harding
), like D$B[(2:n)] - D$A[(2:n)] + 0.5*D$B[1:(n-1)] Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 27-Aug-10 Time: 18:34:27

Re: [R] How to define new matrix based on an elementary row oper

2010-08-28 Thread Ted Harding
to clarify! Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 28-Aug-10 Time: 13:11:08 -- XFMail

Re: [R] How to define new matrix based on an elementary row oper

2010-08-28 Thread Ted Harding
: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 28-Aug-10 Time: 15:12:03 -- XFMail -- __ R-help@r-project.org mailing list

Re: [R] R code changes to crap

2010-09-02 Thread Ted Harding
the extension (respectively .R and .pdf). Please clarify! Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 02-Sep-10 Time: 09:01:35

Re: [R] general question on binomial test / sign test

2010-09-02 Thread Ted Harding
. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 02-Sep-10 Time: 09:42:34 -- XFMail

Re: [R] general question on binomial test / sign test

2010-09-02 Thread Ted Harding
. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 02-Sep-10 Time: 22:59:23 -- XFMail -- __ R-help@r

Re: [R] how can I plot bar plots with all the bars (negative and

2010-09-03 Thread Ted Harding
barplot(x) ### A barplot with bar heights given by x barplot(table(x)) ### a barplot of the counts of the values of x Hoping this helps, Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861

Re: [R] How to generate integers from uniform distribution with

2010-09-04 Thread Ted Harding
-contained, reproducible code. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 04-Sep-10 Time: 08:56:41 -- XFMail

Re: [R] How to generate integers from uniform distribution with

2010-09-04 Thread Ted Harding
3000 tries to hit it. After that it rapidly becomes less likely. Ted. On 04-Sep-10 19:27:54, Yi wrote: Enh, I see. It totally makes sense. Thank you for your perfect explanation. Enjoy the long weekend~ Yi E-Mail: (Ted

[R] 'par mfrow' and not filling horizontally

2010-09-08 Thread Ted Harding
of the graphics window, is a pair of square plots, each with X and Y ranging from -3 to 3, even if this leaves empty space in the graphics window on either side. Hints? With thanks, Ted. E-Mail: (Ted Harding) ted.hard

Re: [R] 'par mfrow' and not filling horizontally

2010-09-08 Thread Ted Harding
(-3,3)) ; lines(c( 3, 3),c(-3,3)) text(0,3.5,-- Range of True mu used --) # Anyway, thanks! It has helped. Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44

Re: [R] regression function for categorical predictor data

2010-09-08 Thread Ted Harding
, Adjusted R-squared: 0.9631 # F-statistic: 523.4 on 2 and 38 DF, p-value: 2.2e-16 The reported Estimate FB give the change in level resulting from a change from A to B in F. Hoping this helps, Ted. E-Mail: (Ted Harding

Re: [R] plot symbol +, but with variable bar lenghts

2010-09-09 Thread Ted Harding
: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 09-Sep-10 Time: 08:36:36 -- XFMail -- __ R-help@r-project.org mailing list https

Re: [R] confidence intervals around p-values

2010-09-09 Thread Ted Harding
huypothesis were true, and where in this does the P-value that we actually got lie? But these are murkier waters ... Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 09-Sep-10

Re: [R] How to generate a particular sequence ?

2010-09-13 Thread Ted Harding
twice -- I assume you meant thrice but the above generalises to 2 repetitions ... :) Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 13-Sep-10

Re: [R] Markov Model problem

2010-09-17 Thread Ted Harding
. Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 17-Sep-10 Time: 10:30:41 -- XFMail

Re: [R] count frequency

2010-09-17 Thread Ted Harding
33 9 # [4,] 61 33 10 # [5,] 62 34 1 Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 17-Sep-10 Time: 14:15:03

Re: [R] OT Gmane and r-help moderator approval

2010-09-19 Thread Ted Harding
. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 19-Sep-10 Time: 15:05:38 -- XFMail -- __ R-help@r

Re: [R] Depletion of small p values upon iterative testing of id

2010-09-20 Thread Ted Harding
). Hoping this helps, Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 20-Sep-10 Time: 16:08:41 -- XFMail

Re: [R] Prediction plot for logistic regression output

2010-09-23 Thread Ted Harding
(GLM,type=link,se=TRUE) lines(X,lg(prGLM$fit+1.96*prGLM$se),col=green) lines(X,lg(prGLM$fit-1.96*prGLM$se),col=green) Hoping this helps, Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094

Re: [R] help in density estimation

2010-09-23 Thread Ted Harding
. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 23-Sep-10 Time: 18:05:41 -- XFMail -- __ R-help@r

Re: [R] help in density estimation

2010-09-23 Thread Ted Harding
There was a typo error in my code below. See the inserted correction. On 23-Sep-10 17:05:45, Ted Harding wrote: On 23-Sep-10 16:52:09, Duncan Murdoch wrote: On 23/09/2010 11:42 AM, wangguojie2006 wrote: b-runif(1000,0,1) f-density(b) f is a list of things, including x values where

[R] (OT) Change of email address

2010-09-29 Thread Ted Harding
. E-Mail: (Ted Harding) ted.hard...@wlandres.net Fax-to-email: +44 (0)870 094 0861 Date: 29-Sep-10 Time: 16:58:18 -- XFMail -- __ R-help@r-project.org mailing

Re: [R] (OT) Change of email address

2010-09-30 Thread Ted Harding
. E-Mail: (Ted Harding) ted.hard...@wlandres.net Fax-to-email: +44 (0)870 094 0861 Date: 30-Sep-10 Time: 10:36:41 -- XFMail -- __ R

Re: [R] Fitting with error on data

2010-10-01 Thread Ted Harding
methods (such as considered by Gillard, or the Lindley approach for [A]), but I'm having difficulty thinking what such might be! So I hope that R-help readers who have used R for this category of problem can help! Ted. E-Mail: (Ted

Re: [R] font question on pdf device

2010-10-08 Thread Ted Harding
datasets methods base which is the same as yours (except that I'm using a slightly earlier version of R, and on i486 rather than x86_64. Debian Etch by the way). Ted. E-Mail: (Ted Harding) ted.hard...@wlandres.net Fax

Re: [R] Number of occurences of a character in a string

2010-10-11 Thread Ted Harding
(jkhrikujhj345hi5hiklfjsdkljfksdio324j';;'lfd;g'lkfit34'5;435l;43'5k ) I want the number of semi-colons ; in b? Thanks. E-Mail: (Ted Harding) ted.hard...@wlandres.net Fax-to-email: +44 (0)870 094 0861 Date: 11-Oct-10

Re: [R] (senza oggetto)

2010-10-11 Thread Ted Harding
. E-Mail: (Ted Harding) ted.hard...@wlandres.net Fax-to-email: +44 (0)870 094 0861 Date: 11-Oct-10 Time: 13:51:24 -- XFMail

Re: [R] F cumulative distribution function

2010-10-12 Thread Ted Harding
-centrality paramater for the no-centgral F distribution. Enter '?pf' for more detailed information. Ted. E-Mail: (Ted Harding) ted.hard...@wlandres.net Fax-to-email: +44 (0)870 094 0861 Date: 12-Oct-10

Re: [R] rounding issues

2010-10-14 Thread Ted Harding
) # [1] 123456789.1 print(1234567891/10,4) # [1] 123456789 The internally stored value is always stored to the full available precision. Hoping this helps, Ted. E-Mail: (Ted Harding) ted.hard...@wlandres.net Fax-to-email: +44

Re: [R] How can I avoid a for-loop through sapply or lapply ?

2009-09-29 Thread Ted Harding
-7a MIMAT062 Homo sapiens let-7a, hsa-let-7b MIMAT063 Homo sapiens let-7b, hsa-let-7c MIMAT064 Homo sapiens let-7c) sub( .*,,Strings) # [1] hsa-let-7a hsa-let-7b hsa-let-7c Ted. E-Mail: (Ted Harding

Re: [R] Rounding error in seq(...)

2009-09-30 Thread Ted Harding
do wonder just what is going on then things do not seem to match up as expected! Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 30-Sep-09 Time

Re: [R] lm output

2009-10-09 Thread Ted Harding
. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 09-Oct-09 Time: 22:41:37 -- XFMail

Re: [R] lm output

2009-10-09 Thread Ted Harding
-contained, reproducible code. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 09-Oct-09 Time: 23:00:09 -- XFMail

[R] Nelder-Mead with output of simplex vertices

2009-10-10 Thread Ted Harding
-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 10-Oct-09 Time: 22:26:16 -- XFMail -- __ R-help@r-project.org mailing list

Re: [R] Nelder-Mead with output of simplex vertices

2009-10-12 Thread Ted Harding
. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 12-Oct-09 Time: 14:32:08 -- XFMail

Re: [R] Linear Regression Question

2009-10-14 Thread Ted Harding
it in fact works, it is not a good idea to use a function name (sum) as the name of a variable.] Hoping this helps, Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 14-Oct-09

Re: [R] Frequencies, proportions cumulative proportions

2009-10-16 Thread Ted Harding
- function(X){ Table - data.frame( table(X) ) Table$Prop - prop.table( Table$Freq ) Table$CumProp - cumsum( Table$Prop ) Table } myTable - mkMyTable(Score) Hoping this helps! Ted. E-Mail: (Ted Harding) ted.hard

Re: [R] generalization of tabulate()

2009-10-17 Thread Ted Harding
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861

Re: [R] underflow of fisher.test result

2009-10-20 Thread Ted Harding
the question: Why the interest in having the value of such a very small number? Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 20-Oct-09 Time: 15:14:26

[R] contour() contourLines()

2009-10-22 Thread Ted Harding
. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 22-Oct-09 Time: 19:03:37 -- XFMail -- __ R-help@r-project.org

[R] Simple extraction of level,x,y from contourLines()

2009-10-22 Thread Ted Harding
. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 22-Oct-09 Time: 19:57:09 -- XFMail -- __ R-help@r-project.org

Re: [R] contour() contourLines()

2009-10-22 Thread Ted Harding
hunch is correct. Cheers, Peter Ehlers (Ted Harding) wrote: Hi Folks, I have been using contour() to produce some contour plots (of a spatially-smooted density produced by kde2d()), with very satisfactory results. I now want access to the coordinates of the points on the contours

Re: [R] Simple extraction of level,x,y from contourLines()

2009-10-22 Thread Ted Harding
On 22-Oct-09 19:03:06, Duncan Murdoch wrote: On 22/10/2009 2:57 PM, (Ted Harding) wrote: A follow-up to my previous query. Say one of the results returned by contourLines() is C.W - contourLines() Then C.W is a list of (in this case 28) lists, each of which is a list

Re: [R] dev.copy(postscript,...) generates a disrupted string

2009-10-24 Thread Ted Harding
this helps, Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 24-Oct-09 Time: 21:53:23 -- XFMail

Re: [R] NULL elements in lists ... a nightmare

2009-10-25 Thread Ted Harding
. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 25-Oct-09 Time: 09:30:45 -- XFMail -- __ R-help@r

Re: [R] NULL elements in lists ... a nightmare

2009-10-25 Thread Ted Harding
[Apologies -- I inadvertently omitted an example, essential for clarity, from the examples below. Now corrected.] On 25-Oct-09 09:30:51, Ted Harding wrote: On 25-Oct-09 09:52:42, Patrick Burns wrote: 'The R Inferno' page 59. Patrick Burns patr...@burns-stat.com +44 (0)20 8525 0696 http

Re: [R] Sandard deviation calculation

2009-10-26 Thread Ted Harding
. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 26-Oct-09 Time: 14:28:38 -- XFMail

Re: [R] underflow of fisher.test result

2009-11-04 Thread Ted Harding
On 01-Nov-09 20:23:30, Peng Yu wrote: On Tue, Oct 20, 2009 at 8:14 AM, Ted Harding ted.hard...@manchester.ac.uk wrote: On 20-Oct-09 13:34:49, Peng Yu wrote: fisher.test() gives a very small p-value, which is underflow on my machine. However, the log of it should not be underflow. I'm

Re: [R] splitting scientific names into genus, species, and sub

2009-11-04 Thread Ted Harding
speciesAA no.subspecies 3 # 3 genusC speciesAAA subspeciesA 2 # 4 genusC speciesAAA subspeciesB 4 Hoping this helps! Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 04

Re: [R] splitting scientific names into genus, species, and sub

2009-11-04 Thread Ted Harding
speciesAAA subspeciesB25 Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 04-Nov-09 Time: 21:47:29 -- XFMail

Re: [R] splitting scientific names into genus, species, and sub

2009-11-04 Thread Ted Harding
OPPS^2!! Did it again. The version given below now does seem to work properly: last line now changed (yet again) to A$Count - as.numeric(levels(A$Count)[unclass(A$Count)]) On 04-Nov-09 21:47:32, Ted Harding wrote: OOPS! Sorry, I made an oversight in the code I posted just now (and I didn't

Re: [R] Enrolling to R help mailing list

2009-11-06 Thread Ted Harding
. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email: +44 (0)870 094 0861 Date: 06-Nov-09 Time: 08:24:22 -- XFMail

Re: [R] a bug with Student t-value??

2009-11-07 Thread Ted Harding
(0.975,9) # [1] 2.262157 The second value agrees with your table. Many printed tables give the two-sided values, rather than the one-sided. Hoping this helps, Ted. E-Mail: (Ted Harding) ted.hard...@manchester.ac.uk Fax-to-email

  1   2   3   4   5   6   7   8   9   10   >