[R] Display of NAs in character columns of a data frame under fix() or edit().

2010-11-02 Thread Rolf Turner
would expect). Is this a bug or a feature? cheers, Rolf Turner P.S. sessionInfo() R version 2.12.0 (2010-10-15) Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) locale: [1] en_NZ.UTF-8/en_NZ.UTF-8/C/C/en_NZ.UTF-8/en_NZ.UTF-8 attached base packages: [1] datasets

Re: [R] Display of NAs in character columns of a data frame under fix() or edit().

2010-11-02 Thread Rolf Turner
NA SA [6] Antarctica sum(is.na(x)) [1] 1 cheers, Rolf On 3/11/2010, at 11:45 AM, Peter Dalgaard wrote: On 11/02/2010 09:45 PM, Rolf Turner wrote: Example: xxx - data.frame(x=1:26,y=letters) xxx$x[c(2,4,6,8)] - NA xxx$y[c

[R] Rdindex truncating titles?

2010-11-07 Thread Rolf Turner
the ``old'' INDEX was built using the Rdindex() function. cheers, Rolf Turner P. S.: sessionInfo() R version 2.12.0 (2010-10-15) Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) locale: [1] en_NZ.UTF-8/en_NZ.UTF-8/C/C/en_NZ.UTF-8/en_NZ.UTF-8 attached base packages: [1

Re: [R] Rdindex truncating titles?

2010-11-07 Thread Rolf Turner
On 8/11/2010, at 12:39 PM, Duncan Murdoch wrote: SNIP I think you need to give us the source to look at to see what's going on. Duncan Murdoch The same phenomenon can be observed for my Iso package which is available from CRAN. The diff results for Iso are like so: diff INDEX

Re: [R] Rdindex truncating titles?

2010-11-07 Thread Rolf Turner
On 8/11/2010, at 1:24 PM, Duncan Murdoch wrote: SNIP ... The docs do say to limit the length of titles to 65 characters if possible; this is one place where it matters. SNIP The 65 character limit had not previously impinged itself upon my consciousness. Adhering to this

[R] Centring titles for pairs of plots.

2010-11-09 Thread Rolf Turner
. If I switch to pdf() everything is out of whack. I produced demo.pdf by plotting to the screen graphics device and then using dev.copy(). Is there a non-kludgy way of accomplishing my objective? Thanks. cheers, Rolf Turner demo.pdf Description: Adobe PDF document

Re: [R] Centring titles for pairs of plots --- a solution.

2010-11-09 Thread Rolf Turner
set. Hope this is of some use to someone besides my very good self. :-) cheers, Rolf Turner __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R

Re: [R] Centring titles for pairs of plots --- a solution.

2010-11-09 Thread Rolf Turner
) Paul On 10/11/2010 3:13 p.m., Rolf Turner wrote: I have figured out a *slightly* less kludgy way of accomplishing my goal. Still a bit of a hack, but it works and seems to be consistent across graphics devices. Essentially it's this: After the *first* plot in each row, do: U

[R] Problem with all.equal and POSIXt.

2010-09-12 Thread Rolf Turner
:9]) returns TRUE. I did a cursory search of the r-help pages and found no reference to this problem. Is this a bug, or am I missing something? cheers, Rolf Turner P. S.: sessionInfo() R version 2.11.1 (2010-05-31) x86_64-apple-darwin9.8.0 locale: [1] en_NZ.UTF-8

Re: [R] Problem with all.equal and POSIXt.

2010-09-12 Thread Rolf Turner
On 13/09/2010, at 3:07 PM, Peter Ehlers wrote: SNIP I'm not sure that I would call this a bug, but it would seem helpful to return an appropriate error message or to coerce to POSIXct. Note that all.equal(as.POSIXct(x), as.POSIXct(x)) yields TRUE, as does using as.Date(x).

Re: [R] function help?

2010-09-16 Thread Rolf Turner
, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9}} __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE

Re: [R] Polynomial Fitting

2009-09-28 Thread Rolf Turner
explain to me why the values for a function would be different in R? Thanks, Chris Carleton Presumably because you were using poly() with the argument raw left equal to its default, i.e. FALSE. cheers, Rolf Turner P. S. The posting guide asks for reproducible examples

Re: [R] Probability of data values form DENSITY function

2009-09-29 Thread Rolf Turner
-line. (1) Please be aware that these are ***NOT*** probabilities that you after. The values of a density function are, strange to tell, probability ***densities*** and not probabilties. (2) Look at the help for density(). I.e., RTFM. cheers, Rolf Turner

Re: [R] Polynomial Fitting

2009-09-29 Thread Rolf Turner
(fitted(fit)) chk - X%*%ccc print(chk[!is.na(chk)]) print(range(fitted(fit)-chk[!is.na(chk)])) [1] 0.00e+00 5.456968e-12 The answers are the same. cheers, Rolf Turner ## Attention:\ This e-mail message

Re: [R] fft with NA values

2009-09-29 Thread Rolf Turner
technique you think appropriate for handling missing values. It is not at all clear to me that anything appropriate is possible. cheers, Rolf Turner ## Attention:\ This e-mail message is privileged and confid

Re: [R] Deleting a column in a dataframe by name

2009-09-29 Thread Rolf Turner
On 30/09/2009, at 9:15 AM, milton ruser wrote: May be this: FRAME - FRAME[-c(NAME1, NAME2)] or FRAME- subset(FRAME, select=(-NAME1, -NAME2)) This is ridiculous advice. Try things out before you suggest them. cheers, Rolf Turner

Re: [R] Deleting a column in a dataframe by name

2009-09-29 Thread Rolf Turner
. And that is precisely the situation in which one would wish to apply this sort of technique. cheers, Rolf Turner On Tue, Sep 29, 2009 at 4:27 PM, Rolf Turner r.tur...@auckland.ac.nz wrote: On 30/09/2009, at 9:15 AM, milton ruser wrote: May

Re: [R] Deleting a column in a dataframe by name

2009-09-29 Thread Rolf Turner
On 30/09/2009, at 10:25 AM, Duncan Murdoch wrote: On 29/09/2009 4:54 PM, Rolf Turner wrote: On 30/09/2009, at 9:32 AM, milton ruser wrote: x=runif(12) y=runif(12) w=runif(12) mydf-data.frame(cbind(x,y,w)) head(mydf) mydf-subset(mydf, select=c(-x,-w)) head(mydf) But this doesn't

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

2009-09-30 Thread Rolf Turner
have told the answer already, several times. ***FLOATING POINT ARITHMETIC If you still don't understand, read up on it. Start by looking at the FAQ. cheers, Rolf Turner

Re: [R] removing missing values from a matrix

2009-10-01 Thread Rolf Turner
On 2/10/2009, at 12:05 PM, Bert Gunter wrote: However, I would hazard the guess that doing this is a (possibly disastrously) bad idea I heartily second that hazard!!! cheers, Rolf Turner Bert Gunter Genentech Nonclinical Biostatistics

Re: [R] removing missing values from a matrix

2009-10-01 Thread Rolf Turner
On 2/10/2009, at 1:03 PM, Carvalho, Benilton wrote: I agree with you folks, my assumption is that the user knows what he's doing. Almost surely a rash assumption! (I.e. except for a set of users of probability zero.) :-) cheers, Rolf

Re: [R] Parsing Files in R (USGS StreamFlow data)

2009-10-04 Thread Rolf Turner
data frame. Is this anything like what you want? cheers, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9}} __ R-help@r

Re: [R] how to have 'match' ignore no-matches

2009-10-05 Thread Rolf Turner
, but it's possible that setting nomatch=0 in your call to match() might get you somewhere. Note that xxx[c(0,1,2,3] gives xxx[c(1,2,3)] whereas xxx[c(NA,1,2,3)] gives c(NA,xxx[c(1,2,3)]). cheers, Rolf Turner

Re: [R] problem understanding factor levels for use lattice panel order

2009-10-08 Thread Rolf Turner
is ``really'' the vector of indices 2 2 2 1 1 1 3 3 3. The levels attribute says that 'b' is associated with 1, 'a' is associated with 2, and 'c' is associated with 3. So when you type xx$v1 you see a a a b b b c c c as before. cheers, Rolf Turner

Re: [R] histogram

2009-10-08 Thread Rolf Turner
1 1 1' ? No. Not unless you specify different breaks. Is there any other function to count frequency of discrete data? table() cheers, Rolf Turner ## Attention

Re: [R] Creating object referant from argument name

2009-10-12 Thread Rolf Turner
, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9}} __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] gee: suppress printout

2009-10-12 Thread Rolf Turner
the offending message() and print() statements. Or prepend them by ``if(!silent)'' which would cause silent=TRUE to shut them up. Fortunately, since this is R, it's easy enuff to do. HTH. cheers, Rolf Turner P. S. I guess you could do some'at like sink(/dev/null

Re: [R] How to specify an ARMA(1, [1,4]) model?

2009-10-13 Thread Rolf Turner
entirely that's wanted cheers, Rolf Turner On 14/10/2009, at 7:47 AM, Duncan Murdoch wrote: On 10/13/2009 2:35 PM, Len Vir wrote: Hi, I'm trying to model an ARMA(1,[1,4]), i.e. I want only lags 1 and 4 of the Moving Average part. It's the '[1,4]' part that is giving me

Re: [R] Error: object 'cloud' not found

2009-10-18 Thread Rolf Turner
: cloud Error: object 'cloud' not found What did I do wrong? You didn't ***load*** the package, i.e. you didn't do library(lattice) cheers, Rolf Turner ## Attention:\ This e-mail message

Re: [R] Filtering on a dataframe- newbie question

2009-10-18 Thread Rolf Turner
, Rolf Turner ?str may also be useful.. str is indeed useful --- but not here. R. T. bests milton On Sun, Oct 18, 2009 at 11:10 PM, ANJAN PURKAYASTHA anjan.purkayas...@gmail.com wrote: Hi, newbie question. I have a data-frame with 3 named columns: Name

Re: [R] Variant of cloud with sticks from points to surface

2009-10-19 Thread Rolf Turner
for. cheers, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9}} __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r

Re: [R] Spatstat: xy binary data into mask type to use in owin(mask=)

2009-10-19 Thread Rolf Turner
be a sexier way of accomplishing the task. If there is, perhaps Adrian will chip in. HTH. cheers, Rolf Turner ## Attention: This e-mail message is privileged and confidential. If you are not the intended

Re: [R] News on R s largest corporate partner REVolution Computing and SPSS CEO:

2009-10-21 Thread Rolf Turner
of a particular bag? cheers, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9}} __ R-help@r-project.org mailing list

Re: [R] News on R s largest corporate partner REVolution Computing and SPSS CEO:

2009-10-21 Thread Rolf Turner
, Rolf Turner Date: Wed, 21 Oct 2009 14:20:08 -0400 From: da...@revolution-computing.com To: ohri2...@gmail.com CC: r-help@r-project.org Subject: Re: [R] News on R s largest corporate partner REVolution Computing and SPSS CEO: It is clearly inappropriate for me or anyone else from REvolution

Re: [R] random numbers between 0 and 1

2009-10-21 Thread Rolf Turner
.) Anyway this is a very convoluted way of going at the problem. Why not just generate random numbers between 0 an 1 ``directly'', using runif()? cheers, Rolf Turner ## Attention

Re: [R] News on R s largest corporate partner REVolution Computingand SPSS CEO:

2009-10-21 Thread Rolf Turner
On 22/10/2009, at 8:37 AM, Barry Rowlingson wrote: On Wed, Oct 21, 2009 at 8:09 PM, Charles Annis, P.E. charles.an...@statisticalengineering.com wrote: David: Do you mean inappropriate or embarrassing? How would we R-ians know what has happened at REVolution were it not for Ajay's note?

Re: [R] sorting table output

2009-10-21 Thread Rolf Turner
On 22/10/2009, at 11:16 AM, Erin Hodgess wrote: Dear R People: Suppose I have the following output: table(xx) xx A C G T 13 12 10 15 I would like to have the output sorted in descending order by height or frequency. But when I do the following: rev(table(xx)) xx T G C A 15 10

Re: [R] Bayesian regression stepwise function?

2009-10-22 Thread Rolf Turner
for stepwise in Bayesian analysis is like asking for some nuclear waste on your ice cream sundae. More like asking for petro-chemical waste in your nuclear waste! cheers, Rolf Turner

Re: [R] Using a variable in the formula

2009-10-26 Thread Rolf Turner
randomForest(), so I haven't tested that bit. HTH. cheers, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9}} __ R-help@r

Re: [R] explalinig the output of my linear model analysis

2009-10-27 Thread Rolf Turner
On 27/10/2009, at 7:58 PM, Peter Ehlers wrote: ... if one doesn't understand the output of lm(), then one's knowledge of statistics is insufficient to warrant using lm(). I nominate this as a fortune. cheers, Rolf Turner

Re: [R] Porting Custom Packages from Linux to Windows

2009-10-27 Thread Rolf Turner
the facility: http://win-builder.r-project.org which is provided by Uwe Ligges, bless his heart. Remember this is necessary only if ``mystuff'' depends on C or Fortran code. cheers, Rolf Turner

Re: [R] Non-normal residuals.

2009-10-28 Thread Rolf Turner
.) the greatest havoc on the statistical analysis? snip cheers, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9

Re: [R] Re ading user input (Readline)

2009-10-28 Thread Rolf Turner
?get On 29/10/2009, at 11:25 AM, skyjo wrote: Hello. I am trying to write an interactive function that asks the user for a vector of observations. Unfortunately, if a user inputs a vector, R treats the vector name as a string instead of a variable. Here is an example:

Re: [R] R crashes

2009-10-29 Thread Rolf Turner
On 29/10/2009, at 11:13 PM, premmad wrote: My R crashes frequently when run with huge data. Isn't that ***fascinating***!!! cheers, Rolf Turner ## Attention:\ This e-mail message is privileged

Re: [R] deriv() to take vector of expressions as 1st arg?

2009-10-29 Thread Rolf Turner
.grad - array(0, c(length(.value), 2L), list(NULL, c(x, y))) .grad[, x] - 2 * x .grad[, y] - 3 * y^2 attr(.value, gradient) - .grad .value }) cheers, Rolf Turner ## Attention

Re: [R] problems whit seasonal ARIMA

2009-11-01 Thread Rolf Turner
. cheers, Rolf Turner ## Attention: This e-mail message is privileged and confidential. If you are not the intended recipient please delete the message and notify the sender. Any views or opinions

[R] Document related data sets.

2009-11-01 Thread Rolf Turner
) If indeed the situation has changed (or perhaps even if it hasn't) shouldn't that line ``only document a ***single*** data object per Rd file'' be deleted from ``Writing R Extensions''? cheers, Rolf Turner

Re: [R] using exists with coef from an arima fit

2009-11-02 Thread Rolf Turner
On 2/11/2009, at 5:27 PM, Erin Hodgess wrote: Dear R People: I have the output from an arima model fit in an object xxx. I want to verify that the ma1 coefficient is there, so I did the following: xxx$coef ar1ar2ma1 intercept 1.3841297 -0.4985667 -0.996

[R] Two questions about cloud().

2009-11-03 Thread Rolf Turner
to the plane z=0? I thought that the zero.scaled argument (for panel.3dscatter()) might be the ticket here, but when I pass this argument to cloud() I get an error ``Error using packet 1 formal argument zero.scaled matched by multiple actual arguments. Ta. cheers, Rolf Turner

Re: [R] Two questions about cloud().

2009-11-09 Thread Rolf Turner
On 5/11/2009, at 6:49 PM, Deepayan Sarkar wrote: On Tue, Nov 3, 2009 at 3:57 PM, Rolf Turner r.tur...@auckland.ac.nz wrote: (1) Is there a (simple) way of getting cloud() to do *both* type=p and type=h? I.e. of getting it to plot the points as points *and* drop a perpendicular line

Re: [R] How to choose appropriate linear model? (ANOVA)

2009-11-18 Thread Rolf Turner
relevance. cheers, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9}} __ R-help@r-project.org mailing list https

Re: [R] Re ading multiple Excel 2007 files with a loop

2009-11-18 Thread Rolf Turner
Have you looked at the read.xls() function from the gdata package? It automates the conversion to *.csv for you. It has worked seamlessly for me on the occasions on which I've needed to use it. cheers, Rolf Turner On 19/11/2009, at 9:09 AM, Mark W. Miller wrote: I

[R] Problem with install.packages(); getting out-of-date version.

2010-05-06 Thread Rolf Turner
2.11.0 help? Why should that be necessary? Where/how is install.packages() finding the out-of-date version? Any insight appreciated. cheers, Rolf Turner ## Attention: This e-mail message is privileged

Re: [R] Rd files must have a non-empty \title

2010-05-11 Thread Rolf Turner
On 12/05/2010, at 5:25 AM, Greg Snow wrote: I nominate Duncan's last statement: If you don't want informative help files, it's really not much work to make uninformative ones. Duncan Murdoch For the fortunes package. I second the motion! cheers, Rolf Turner

Re: [R] Simple question on binning data

2010-05-13 Thread Rolf Turner
On 14/05/2010, at 9:54 AM, Frank E Harrell Jr wrote: SNIP snip Binning is seldom needed and usually distorts. It is the statistical equivalent of a former governor from Alaska. SNIP I nominate this for a fortune. cheers, Rolf Turner

Re: [R] Spatstat, markcorr, max. radius limited??

2009-11-22 Thread Rolf Turner
of these values can be found from the data that you have available. cheers, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9}} __ R

Re: [R] Removing + and ? signs

2009-11-22 Thread Rolf Turner
need to escape the question mark: gsub(\\?, , x) yields [1] asdf+,jkl which I think *is* what you want. cheers, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped

Re: [R] Configuring R-2.10 help html server on Linux?

2009-11-23 Thread Rolf Turner
for:''. This is all Mac stuff, and it's not at all clear to me that it will translate to the Linux setting, but it *might* give you somewhere to start. Good luck. cheers, Rolf Turner ## Attention:\ This e

[R] Adding to the years ...

2009-11-23 Thread Rolf Turner
of dates to a POSIXlt/POSIXct/Date/ whatever object and then adding 6 years to the latter object in a straightforward way, without having to delve into components of the object? Ta. cheers, Rolf Turner

Re: [R] Insert elements into a vector in a defined positions

2009-11-25 Thread Rolf Turner
(length(z1)+length(id)) z2[id] - NA z2[!is.na(z2)] - z1 A bit kludgy, but it appears to work. cheers, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9

Re: [R] how to solve a problem in R this problem?can someone help me

2009-11-30 Thread Rolf Turner
You should do your own homework. cheers, Rolf Turner On 1/12/2009, at 10:37 AM, susan jacobs wrote: Census from 1990 california in USA. It’s a data frame with data from 20640 zones from Califórnia. Zones are chosen as being geograficly near, wich one with 1500

Re: [R] Remark on tapply().

2009-12-01 Thread Rolf Turner
, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9}} __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Container/Collection Object to keep data structures and object

2009-12-01 Thread Rolf Turner
, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9}} __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Is there a function to test if all the elements in a vector are unique

2009-12-01 Thread Rolf Turner
not to work. Version 2.10.1 is about to be released, for crying out loud! cheers, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9

Re: [R] Is there a function to test if all the elements in a vector are unique

2009-12-01 Thread Rolf Turner
On 2/12/2009, at 3:48 PM, Peng Yu wrote: On Tue, Dec 1, 2009 at 8:24 PM, Rolf Turner r.tur...@auckland.ac.nz wrote: On 2/12/2009, at 3:09 PM, Peng Yu wrote: SNIP Here is my sessionInfo(). [Snotty comment deleted.] sessionInfo() R version 2.7.1 (2008-06-23

Re: [R] .libPaths(new) stopped working in 2.10

2009-12-06 Thread Rolf Turner
base packages: [1] datasets utils stats graphics grDevices methods base other attached packages: [1] misc_0.0-11fortunes_1.3-6 MASS_7.3-3 cheers, Rolf Turner ## Attention:\ This e-mail

Re: [R] Dividing a pixel image into factors - (cut.im(), cut.default())

2009-12-06 Thread Rolf Turner
() or cut.default(). Can anyone help? Unless I'm terribly confused, the obvious solution to your question is: cut.im(X.im,breaks=c(0,5,60)) Uhhh, why was this difficult? cheers, Rolf Turner

Re: [R] SAS datalines or cards statement equivalent in R?

2009-12-07 Thread Rolf Turner
. You'll be glad you did! To paraphrase Eric Blair: ``SAS-thinkers unbellyfeel R-speak.'' cheers, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9

Re: [R] Quadratcount problem in spatstat

2009-12-08 Thread Rolf Turner
``cameroon.dput'' to your email. Thanks. cheers, Rolf Turner On 9/12/2009, at 9:38 AM, Sebastian Schutte wrote: Hi, I know there are older threads discussing the quadratcount function in spatstat. Unfortunately, I could not find a solution to my problem there. I'm

Re: [R] .Rhistory in R.app

2009-12-09 Thread Rolf Turner
the expletive deleted GUI, which only gets in the way of serious work? cheers, Rolf Turner P. S.: sessionInfo() R version 2.10.0 (2009-10-26) i386-apple-darwin8.11.1 locale: [1] en_NZ.UTF-8/en_NZ.UTF-8/C/C/en_NZ.UTF-8/en_NZ.UTF-8 attached base packages: [1] datasets utils

Re: [R] Plotting frequency curve over histogram

2009-12-09 Thread Rolf Turner
into density values. 2) Plot multiple frequency curves in a single plot ?lines I have been using the hist function for my job. I'd appreciate if anyone could help me with the solution cheers, Rolf Turner

[R] Assigning variables into an environment.

2009-12-09 Thread Rolf Turner
to understand more about environments and how they work.] Thanks for any insights. cheers, Rolf Turner P. S. Are there any articles about environments (in the sense used above) out there in the literature? I searched the contents of the R Journal/R News but turned up nothing

Re: [R] How to scale a histogram

2009-12-10 Thread Rolf Turner
evil. x - rnorm(300) h - hist(x,plot=FALSE) h$counts - h$counts*42 plot(h,ylab=Rescaled counts) If you want to rescale the x-axis, see the posting by Stephan Devriese. cheers, Rolf Turner ## Attention

Re: [R] .Rhistory in R.app

2009-12-10 Thread Rolf Turner
. SNIP Sounds like a job for Superman (i.e. Simon Urbanek). :-) cheers, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9

Re: [R] Assigning variables into an environment.

2009-12-10 Thread Rolf Turner
Thanks to Gabor Grothendieck, Duncan Murdoch, Hadley Wickham, and Bert Gunter for their useful input. I'm beginning to get a glimmering of understanding, and I think I now have enough to make some progress. cheers, Rolf Turner

Re: [R] debug an error that incapacitates R?

2009-12-14 Thread Rolf Turner
Wouldn't sink.number() give you a handle on whether the problem is that there is an invalid sink() in effect? On 15/12/2009, at 10:55 AM, Brian Diggs wrote: -Original Message- From: Liviu Andronic [mailto:landronim...@gmail.com] Sent: Sunday, December 13, 2009 4:05 AM To: Duncan

Re: [R] Type III sum of square in ANOVA

2009-12-15 Thread Rolf Turner
, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9}} __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] Odp: Creating Dummy Variables in R

2009-12-16 Thread Rolf Turner
contr.treatment. Read up on factors and contrasts. cheers, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9}} __ R-help@r

Re: [R] Eigenvectors and values in R and SAS

2010-01-11 Thread Rolf Turner
to be different from the values in SAS. I would also appreciate it if someone can explain the difference in simple terms. I'm pretty new to both programs. Thanks for your help- Read the posting guide then repost your question. cheers, Rolf Turner

Re: [R] The TeX-source for the package manual.

2010-01-12 Thread Rolf Turner
may want to clean up by 'rm -rf .Rd2dvinnn' which tells you the value of ``nnn''. The tex file you want is called Rd2.tex. There is probably a similar incantation that works under Windoze. cheers, Rolf Turner

Re: [R] expand.grid game

2010-01-12 Thread Rolf Turner
*leave in* the possibility of putting all 17 balls in the first urn? Or 3 balls in the first urn, 12 in the second, and the remaining 2 in any of the other six urns? Etc. I.e. don't more terms have to be subtracted? cheers, Rolf Turner

Re: [R] expand.grid game --- never mind, I figured it out!

2010-01-12 Thread Rolf Turner
I re-read the solution that you posted and realized where my thinking was going wrong. Sorry (again!) for being a thicko. cheers, Rolf Turner On 13/01/2010, at 9:19 AM, Greg Snow wrote: How trivial is probably subjective, I don't think it is much above trivial. I

Re: [R] convert factor data to numeric

2010-01-13 Thread Rolf Turner
(levels(data_factor)[data_factor]) as has been pointed out quite a few times on this list. cheers, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9

Re: [R] counting the number of times a string appears

2010-01-13 Thread Rolf Turner
?table On 14/01/2010, at 11:12 AM, Jesse Sinclair wrote: Hi all, I have a vector of strings and need to count the number of times a string appears in the vector. eg: [1] spp6 spp10 spp6 spp6 spp4 spp2 spp9 spp10 spp5 spp2 spp2 spp3 [13] spp4 spp3 spp6 spp10 spp6 spp4

Re: [R] advice/opinion on - vs = in teaching R

2010-01-14 Thread Rolf Turner
On 15/01/2010, at 4:45 PM, Erin Hodgess wrote: Hi R People: I'm teaching a statistical computing class using R starting next week (yay!) and I have an opinion type question, please. I'm old school and use - in an assignment. However, I'm starting to see the = in the literature. Which

Re: [R] Error: object of type 'closure' is not subsettable

2010-01-17 Thread Rolf Turner
equipped with)? cheers, Rolf Turner On 14/01/2010, at 2:24 PM, Gabor Grothendieck wrote: See ?rep where it says that the argument must be a vector. Try rep(list(sin), 3) On Wed, Jan 13, 2010 at 8:11 PM, Matthew Walker matthew.walke...@ulaval.ca wrote: Hi everyone

Re: [R] Strange results from Windows 7

2010-01-17 Thread Rolf Turner
will show you what packages are loaded. You could also try find() !!! cheers, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9

Re: [R] How to convert character matrix or data.frame to numeric?

2010-01-17 Thread Rolf Turner
mode. If there are some columns that you wish to leave alone you will have to do something a little bit more subtle. But not much more subtle. It's all pretty easy if you learn some basic R syntax. cheers, Rolf Turner On 18/01/2010, at 11:17 AM, ivan popivanov wrote

[R] An argument processing puzzle.

2010-01-18 Thread Rolf Turner
of my desiderata? Thanks. cheers, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9}} __ R-help@r-project.org mailing list

Re: [R] An argument processing puzzle --- solution.

2010-01-18 Thread Rolf Turner
is of no importance (to me). Thanks again to all who responded. cheers, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9}} __ R

Re: [R] how to install spatstat

2010-01-18 Thread Rolf Turner
, Rolf Turner ## Attention: This e-mail message is privileged and confidential. If you are not the intended recipient please delete the message and notify the sender. Any views or opinions presented are solely those

Re: [R] Help ~

2010-01-19 Thread Rolf Turner
it Prof. Zeileis? cheers, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9}} __ R-help@r-project.org mailing list https

Re: [R] question on runif

2010-01-20 Thread Rolf Turner
Ted, Alfredo, et al: Please stop doing this expletive deleted jerk's homework for him!!! cheers, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9

Re: [R] simulation of binary data

2010-01-20 Thread Rolf Turner
. cheers, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9}} __ R-help@r-project.org mailing list https://stat.ethz.ch

Re: [R] Data Manipulation

2010-01-20 Thread Rolf Turner
. cheers, Rolf Turner On 21/01/2010, at 2:19 PM, Peter Rote wrote: Thank you Dieter, but i still have a problem to write to file. The problem is the slash in file names (Aerospace/Defense Products Services ). If i want it to C:/ab/ so C:/ab

Re: [R] Automatic File Reading [Broadcast]

2010-01-24 Thread Rolf Turner
]] - X } result - do.call(rbind,result) HTH cheers, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9}} __ R-help@r

Re: [R] finding values for arguments?

2010-01-24 Thread Rolf Turner
?args ??? cheers, Rolf Turner ## Attention:\ This e-mail message is privileged and confid...{{dropped:9}} __ R-help@r-project.org mailing list https

Re: [R] Executing a R-string

2010-01-27 Thread Rolf Turner
if there was an equivalent mechanism that I cannot find in the docs anywhere to make it work. set.seed(42) m - sample(0:9,42,TRUE) S - which(m==4) eval(parse(text=S)) [1] 11 15 19 29 42 cheers, Rolf Turner

Re: [R] Randomly rearranging elements of sets

2010-01-27 Thread Rolf Turner
?sample On 28/01/2010, at 12:06 PM, jshort wrote: Hi I've recently been trying to solve some probability questions in R, but am having trouble. This is one question thats been causing some hair loss: Given the set of integers S = {1,2,3,4,5,6,7,8,9,10}, create a function F(S) that

Re: [R] iterative regressions, adding a new line of data each time

2010-02-01 Thread Rolf Turner
would be greatly appreciated. Thanks. This would seem to be very easy to do using a for loop and a list. What is the problem? Is this a homework question? cheers, Rolf Turner ## Attention:\ This e-mail

  1   2   3   4   5   6   7   8   9   10   >