search for: toadal

Displaying 10 results from an estimated 10 matches for "toadal".

Did you mean: modal
2008 Aug 14
2
Department of Redundancy Department.
...t is safer and takes 6 fewer key strokes to use ``if(X)''. So why not do that, eh? cheers, Rolf Turner P. S. The example that triggered this post actually used ``if(X==T)''. This is doubly dangerous since ``T'' can be overwritten. If it was overwritten you'd get toadally wrong answers. E.g., suppose you had set T <- FALSE # !!! ***ALWAYS USE ``TRUE'' AND ``FALSE'' FOR LOGICAL VALUES. DO NOT USE ``T'' AND ``F''.*** ###################################################################### Attention:\ This e-mail message is...
2009 Sep 07
1
Plot 2 ecdf in one graph
Hi r-users,   I would like to compare the cdf between historical and predicted. My x.obs and x.pre are the frequency data in classes of 0-300. I tried: plot(ecdf(x.obs),ecdf(x.pre),type="l",col="red")   and it gives me: Error in plot.stepfun(x, ..., ylab = ylab, verticals = verticals, pch = pch) :   argument 4 matches multiple formal arguments   Thank you so much for any
2017 Oct 07
0
[FORGED] bootstrapping results in table format
...(1) Don't post in html. (2) Don't send code that makes use of packages that you don't mention (in this case "data.table"). (3) Don't use "data" as the name of a data object. There is a base function called "data" whence you run the risk of getting toadally incomprehensible error messages as the result of certain syntax errors. Also see fortune("dog"). cheers, Rolf Turner -- Technical Editor ANZJS Department of Statistics University of Auckland Phone: +64-9-373-7599 ext. 88276
2005 Oct 27
1
Puzzled over curve() syntax.
It's probably toadally elementary (and, like, duhhhhh) but I can't figure out why the following doesn't work: curve(function(x){qnorm(x,4,25)},from=0,to=1) I get the error: Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ But if I do foo <- function(...
2013 Jan 12
1
Problem with X11 fonts under Fedora 17.
...is reproducible (in my current environment) via: par(mfrow=c(2,2)) plot(1:10) text(2,6,"Oh, hell!",cex=2) Can anyone tell me (in simple comprehensible terms, please) how I might make the required font available so that it can be loaded? I reiterate, please keep it simple. I find fonts toadally incomprehensible! For what it's worth, here is my session info: > sessionInfo() > R version 2.15.2 Patched (2012-11-15 r61122) > Platform: x86_64-unknown-linux-gnu (64-bit) > > locale: > [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C > [3] LC_TIME=en_US.UTF-8...
2013 Jan 12
2
Another X11 problem. (Psigh!)
...until I started messing about trying to solve the "inconsolata" font problem that I posted about recently. Can anyone tell me (in simple comprehensible terms, please) how I might make the required font available so that it can be loaded? I reiterate, please keep it simple. I find fonts toadally incomprehensible! Note that I did as I was advised and installed texlive-2012 for Fedora 17 following the instructions detailed in the website that was given (and which I cited in my previous email). Didn't help a bit. For what it's worth, here is my session info: > sessionInfo() &...
2017 Oct 06
2
bootstrapping results in table format
Hi R users, I was struggling to put the results into table format. Would you mind to show using following data and code how we can put the results into table? I further would like to have a confidence interval for each group. set.seed(1000) data <- as.data.table(list(x1 = runif(200), x2 = runif(200), group = runif(200)>0.5)) data.frame(data) head(data) stat <- function(x, i) {x[i, c(m1
2012 Dec 08
2
Why my lapply doesn't work with FUN=as.Date
Hi, guys I don't understand why I can apply as.Date to a single item in the list: > as.Date(alldays[4]) [1] "29-03-20" but when I try to lapply as.Date to all the items, i got a sequence of neg numbers: > sapply(alldays[1:4], FUN=as.Date) 03-04-2012 02-04-2012 30-03-2012 29-03-2012 -718323 -718688 -708492 -708857 does anyone know what's wrong here? i am
2012 Nov 14
3
Replacing string in matrix with zero
Dear All, I have a matrix in which the diagonal has the string "Inf" in it. In order to be able to do cluster analysis this needs to be replaced with a Zero. I can do this by putting it into Excel, replacing and putting it back into R but it's tedious, and I am sure there is a simple way to do it in R. If you have the route to do this, it would be much appreciated. Best wishes Nick
2010 Jan 15
5
advice/opinion on "<-" vs "=" in teaching R
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 should I use or does it matter, please? Thanks for your input! Sincerely, Erin -- Erin Hodgess Associate Professor