Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

161 results for “from:Satoshi Takahama”

methods and classes and things
Satoshi Takahama · Aug 4, 2007 · r-help

methods(plot) --- Edna Bell <edna.bell01 at gmail.com> wrote: > Hi R Gurus: > > I know that "plot" has extra things like plot.ts, plot.lm > > How would i find out all of them, please? > > Thanks, > Edna > > ______________________________________________ > R-help at stat...

line widths of plotting symbols in the lattice
Satoshi Takahama · Jul 29, 2007 · r-help

Dear List, Sorry, this is very simple but I can't seem to find any information regarding line widths of plotting symbols in the lattice package. For instance, in traditional graphics: > plot(1:10,lwd=3) > points(10:1,lwd...

cluster analysis
Satoshi Takahama · Oct 18, 2007 · r-help

Hi Amna, I believe you are looking for these functions ?hclust [with method = "ward"] ?kmeans Best regards, Stephen --- amna khan <amnakhan493 at gmail.com> wrote: > Hi Sir > > How to perform cluster analysis using Ward's method and K- means > clustering...

request
Satoshi Takahama · Aug 3, 2007 · r-help

?cumsum --- zahid khan <solo_qau at yahoo.com> wrote: > I want to calculate the commulative sum of any numeric vector with the > following command but this following command does not work "comsum" > My question is , how we can calculate the...

Compose in roxygen - order of function application?
Satoshi Takahama · Feb 10, 2010 · r-help

Hello, I wonder if anyone has used the Compose() function in the 'roxygen' package. I find its behavior a bit surprising: > f <- function(x) x + 1 > g <- function(x) x * 2 > f(g(2)) [1] 5 > Compose(f,g)(2...

PDF Compression
Satoshi Takahama · Jul 30, 2009 · r-help

There was a previous post about this also: http://tolstoy.newcastle.edu.au/R/e2/help/07/05/17475.html I was able to use bitmap(,type="pdfwrite") on Ubuntu Linux but had trouble getting it to work on Windows...

How to specify the start position using plot
Satoshi Takahama · Jun 10, 2007 · r-help

plot(x=1:10,y=1:10,xlim=c(0,5),ylim=c(6,10)) a lot of the arguments descriptions for plot() are contained in ?par --- Patrick Wang <pwang at berkeley.edu> wrote: > Hi, > > How to specify the start...

simple bar plot question
Satoshi Takahama · Mar 23, 2007 · r-help

I think you can set legend=FALSE in barplot() and add your own legend, in which you have a lot more control: barplot(#your arguments#,legend=FALSE) legend(x="topleft",cex=yourCex) etc. --- Janet <jerosenb at fas.harvard.edu> wrote...

Overlaying graphics
Satoshi Takahama · Feb 24, 2007 · r-help

Not pretty, but you could possibly try: # first map map(#arguments#) xylim = par("usr") # second map out = map(#arguments#, plot=FALSE) par(xaxs="i",yaxs="i") plot.window(xlim=xylim[1:2],ylim=xylim[3:4]) polygon(out) --- Takatsugu Kobayashi...

converting character string to an expression
Satoshi Takahama · Aug 8, 2007 · r-help

I think you're looking for parse(text=paste(letters[1:3], collapse="+")) --- Jarrod Hadfield <j.hadfield at shef.ac.uk> wrote: > Hi Everyone, > > I would simply like to coerce a character string into an expression: > something like: > > as.expression...

na.omit argument in gls()
Satoshi Takahama · Dec 16, 2004 · r-help

Hello everyone, I was wondering if someone could tell me what happens when you use na.omit in the gls() function in library(nlme) when you assume a correlation structure for the errors: gls(Y ~ X1 + X2 + X3, data=sample...

how to avoid manual trimming of polygons from map() ?
Satoshi Takahama · Mar 13, 2009 · r-sig-geo

Hello all, I was trying to plot a stereographic projection (centered around Bering Strait) using map() but am having to manually trim the polygons: ## choose limits xlim <- c(110,290); ylim <- c(40,90) ## plot - doesn't look right map...

About grep
Satoshi Takahama · Aug 6, 2007 · r-help

try grep(paste("^",b[2],"$",sep=""),a) your version will match "b2": > grep("^b[2]$",c("b","b2","b3")) [1] 2 --- Shao <xshining at gmail.com> wrote: > Hi,everyone. > > I have a problem when using the grep. > for example: > a...

vector name
Satoshi Takahama · Sep 17, 2007 · r-help

Hi, Either of the following should work (I assume there are 28 elements in your list): fdata <- cbind(as.matrix(as.data.frame(filtered)), myregime) fdata <- cbind("colnames<-"(matrix(unlist(filtered),ncol=28), names(filtered)), myregime) --- livia <yn19832 at msn...

try catch block
Satoshi Takahama · Jun 17, 2008 · r-help

This is a useful reference on the tryCatch() function: http://www1.maths.lth.se/help/R/ExceptionHandlingInR/ I think something like this should work: xml <- tryCatch(xmlTreeParse(xmlTxt, useInternal=TRUE), error=function(err) xmlMalFormed()) ----- Original Message ---- From: ppatel3026 <pratik.patel...

Problems using "lm" in combination with "predict"
Satoshi Takahama · Aug 4, 2007 · r-help

I think you need predict(mod,newdate) instead of predict(y,newdate) --- "Maja Schr?ter" <maja.schroeter at gmx.de> wrote: > Hello everybody, > > I'm trying to predict a linear regression model but it does not work. > > My Model: y...

operations on all pairs of columns from two matrices
Satoshi Takahama · Jun 18, 2008 · r-help

how about this? m1 <- matrix(rep(1:3,each=5),ncol=3) m2 <- matrix(1:15,ncol=3) array(apply(m1,2,function(x,m) m-x,m2),dim=c(dim(m2),ncol(m1))) ----- Original Message ---- From: Daren Tan <daren76...

Alternative to xyplot()?
Satoshi Takahama · Jul 17, 2007 · r-help

What's wrong with lattice? Here's an alternative: library(ggplot2) ggplot(data=data.frame(x,y,grps=factor(grps)), mapping=aes(x=x,y=y,colour=grps)) + # define data geom_identity() + # points geom_smooth(method="lm") # regression line --- Ben...

calendar-based time-series in R
Satoshi Takahama · Nov 6, 2004 · r-help

Hello, I am trying to switch to R from S-PLUS 6.1, and one problem I am having is using R for manipulation of calendar-based time-series. In S-PLUS, I commonly use the functions timeSequence(), timeDate(), and...

Catch errors
Satoshi Takahama · Aug 6, 2007 · r-help

?try or ?tryCatch http://www.maths.lth.se/help/R/ExceptionHandlingInR/ for example... tryCatch(lme(Y ~ X1*X2, random = ~1|subj, Model[i]), error=function(err) return(0)) (you can do something with 'err' or just return 0 as above...

Can't find what you're looking for? Try searching with Google .