search for: marthews

Displaying 16 results from an estimated 16 matches for "marthews".

Did you mean: martes
2008 Jun 11
1
Word wrapping for character objects (WINDOWS R ONLY)
...ommand (fill=TRUE has no effect). I also checked the menu Edit -> GUI preferences..., but there doesn't seem to be a "Word Wrap" option there either. How do I get word wrapping like this in Windows? Perhaps the attached screenshots clarify this question. THANKS FOR ANY HELP! Toby Marthews Previous relevant posts: - The post from 2006 about Screen Wrapping (http://tolstoy.newcastle.edu.au/R/help/06/05/26673.html) which Brian Ripley answered was about controlling how long vectors are cropped to the screen. Unfortunately, the width option in options() does not affect character objec...
2008 Jun 04
2
Constructing groupedData objects in nlme - a little problem
Dear R-help, I am trying to create groupedData objects using the nlme library. I'm missing something basic, I know: Here is the first example in ch.1 of Pinheiro & Bates (2000): library(nlme) x2=Rail$travel;x1=Rail$Rail;eg1=data.frame(x1,x2);eg1gd=Rail print(eg1gd) x11();print(plot(eg1gd)) femodel=lm(x2~x1-1,data=eg1gd) print(femodel$coefficients) Result: x12 x15 x11
2008 Aug 09
1
Converting nested "for" loops to an "apply" function(s)
Hello, I would like to know more about how to use the "apply" family and have attempted to convert nested "for" loops in example code from Contributed Documentation ("The Friendly Beginners' R Course? by Toby Marthews (ZIP, 2007-03-01)") to an "apply" function(s). The relevant code is: distances=c(51,65,175,196,197,125,10,56) #distances of 8 houses from the town centre in m bearings=c(10,8,210,25,74,128,235,335) #bearings of the houses in degrees xpos=distances*sin(bearings*pi/180) #in sin and...
2006 Jun 14
1
R internal clock time discrepancy
...0 GMT Standard Time" [4] "2005-03-27 02:30:00 GMT Standard Time" > as.numeric(seq(from=start,to=end,by=30*60)) [1] 1111881600 1111883400 1111885200 1111887000 > as.numeric(seq(from=start,to=end,by=30*60))/(30*60) [1] 617712 617713 617714 617715 Any help much appreciated! Toby Marthews ___________________________________________________________________ For super low premiums, click here http://www.webmail.co.za/dd.pwm http://www.webmail.co.za the South African FREE email service
2007 Jun 08
1
Question about Running C code from R
...r c) both. I tried setting up a package and inserting the code in the /src directory, but because I can't use the R CMD INSTALL command I can't figure out how to make this idea work either. Can anyone help me here? Does anyone have an actual example of something like this that works? Toby Marthews ·..¸¸·´¯`····..¸¸·´¯`··..¸¸·´¯`·.¸¸·´¯`··..¸¸·´¯`··..¸¸·´¯`·.¸ Institut für Umweltwissenschaften (IfU, www.uzh.ch/uwinst <http://www.uzh.ch/uwinst> ), Universität Zürich, Winterthurerstr. 190, 8057 Zürich, CH. Plant & Soil Science Department (www.abdn.ac.uk/biologicalsci/pss <http:/...
2008 Aug 29
1
nls() fails on a simple exponential fit, when lm() gets it right?
...ln fits using MS Excel and the numbers returned are exactly as for the 'simpler ways', so nls is definitely in the wrong, but the self-start is almost identical to the one for the logarithmic fit, which works perfectly .... I can't see my mistake at all. Can anyone help?? Thanks, Toby Marthews traceson=FALSE;maxint=10000;minstepfactor=2^(-30);tolerance=1e-7 xtxt="DBH in mm";ytxt="Height in m" dbh=c(0.9,1.0,1.1,1.2,4.8,4.9,5.0,5.1,8.9,9.0,9.1,9.2,11.8,11.9,12.0,12.1,14.9,15.1,15.2,15.5) height=c(5.770089,5.154794,4.888847,6.356770,14.849109,14.973146,15.423816,14.865...
2011 Jan 17
1
Using anova() with glmmPQL()
...way to do a binomial repeated-measures ANOVA in R? (which means that there's no way to do such an ANOVA in R without losing the p-values) and (2) if I am supposed to be using glmmPQL for this simple situation, what am I doing wrong? Thanks very much for any help anyone can give me. best, Toby Marthews
2008 Jun 12
1
controlling location of labels in axis()
Here's a naive question about axis() How do you control the location of the labels with the axis() command? In the following example: foo <- data.frame(plot.x=seq(1:3), plot.y=seq(4:6)) plot(foo$plot.x, foo$plot.y, type='n', axes=FALSE) points(foo$plot.x, foo$plot.y) axis(1, at=foo$plot.x, labels=foo$plot.x) I'd like to be able the control the y location of the labels (i.e.
2008 Jun 13
1
Level Plot and Scale of Colorkey
I am drawing level plots but I would like to specify the range of the colorkey, I am not having any success figuring this out so any help would be greatly appreciated! Here is an example of what I am trying to do: disp<-1 x <- seq(1, 10,by=1) y <- seq(1,10,by=1) g <- expand.grid(x = x, y = y) g$z <- 1/exp((abs(g$x-5)+abs(g$y-5))*disp) g$z<-g$z/sum(g$z) levelplot(z ~ x * y,
2008 Jun 17
2
Calling functions
Another newbie question. I've written a function and saved the file as Xtabs.R, in a central place on a network so others will be able ot use the function, My question is how do i call this function? I've tried to chance the working directory, and tried to load it via; > library(Xtabs, lib.loc="//filer/common/technical/surveys/R_test") but neither seem to work? the function
2011 Jan 18
2
Statistical formulas
Hello! I hope, i'm doing right, writing here. I have a question about the R statistical formulas: were can I look, what are they? E. g. I'd like to know which exactly mathematical formula is used in Wilcoxon test, and others. Is there somewhere on the Internet information about that? Thanks a lot! Ilya. PS Sorry for any mistakes in my English, it is not my mother-tongue.
2011 Feb 04
2
how to learn more from R
hi ,R USERS: I am a new R user. I have study some basic R syntax and get some interesting results. Now I want to know how much R can do .where can i get some examples or demo resource to study advanced function of R ? -- thank your TANG Jie Email: totangjie@gmail.com Shanghai Typhoon Institute,China [[alternative HTML version deleted]]
2006 Mar 27
0
not a problem: a submission (PR#8714)
Full_Name: TOBY MARTHEWS Version: 2.1.1 OS: Windows XP Submission from: (NULL) (139.133.7.38) I think you should have better examples on the ?plot man page, if you don't mind me saying. Can I suggest something like this, which would probably stop so many emails to the R help about how to put on error bars Cheers, To...
2008 Jun 18
2
ifelse and "&&" vs "&"
Hi, I noticed whether some one could explain why "&" and "&&" behave differently in data frame transformations. Consider the following : a<-data.frame(r=c(0,0,2,3),g=c(0,2,0,2.1)) Then: > transform(a,R=ifelse(r>0 && g> 0,log(r/g),NA)) r g R 1 0 0.0 NA 2 0 2.0 NA 3 2 0.0 NA 4 3 2.1 NA but > transform(a,R=ifelse(r>0 & g>
2008 Jun 15
2
round(1.5) = round(2.5) = 2?
Dear R-users with a bit of grief I had to repeat an extensive analysis because I did not suspect (and therefore did not read the documentation) that round was implemented as "for rounding off a 5, the IEC 60559 standard is expected to be used, 'go to the even digit'", resulting in round(1.5) = 2 round (2.5) = 2. As a non-mathematician I am both puzzled and intrigued by
2011 Nov 23
1
glmulti fails because of rJava
Dear R, The glmulti package no longer loads through the library() command, apparently because of a problem with rJava. I have today reinstalled R from scratch (updated to v2.14.0) and reinstalled all packages from scratch and updated them all too. The problem is the same as I found on v2.13.2. See session below for the error. I tried install.packages(rJava) as advised by the error report but it