Re: [R] Extracting Variable Name to define breaks for histogram

2009-02-04 Thread Uwe Ligges
Christian Langkamp wrote: Hi I am trying to define an automatic breaks function for a histogram. Inputs are a vector x and a number n. What I would like is to define the outcome as breaks_(Name of Vector) - but the paste("breaks_",x) obviously refers to the whole vector. breaks<- function(x

[R] Extracting Variable Name to define breaks for histogram

2009-02-04 Thread Christian Langkamp
Hi I am trying to define an automatic breaks function for a histogram. Inputs are a vector x and a number n. What I would like is to define the outcome as breaks_(Name of Vector) - but the paste("breaks_",x) obviously refers to the whole vector. breaks<- function(x, n) { R<-range(x, na.rm=T) di