[R] Display the character variables in a dataset in R

2009-08-17 Thread rajclinasia
Hi everyone, After reading the external file into R it will become a R dataset. Now my querry is i want to dispaly only character variables from that dataset. please help me in this aspect. if possible send me the code. it will be very helpful for us. Thank you in Advance. -- View this messag

[R] regex problems with the escape character

2009-08-17 Thread ravi
Hi R-users and R-experts, I am having a hard time in figuring out how to tackle regex questions where the "backslash" character is an integral part of the string. Let me explain how I came across this problem : I wanted to clearly see all the components in the windows environmental path variable

Re: [R] VAR (pckg: vars) and memory problem

2009-08-17 Thread Pfaff, Bernhard Dr.
Dear Bernd, which version of the package vars are you using? Have tried estimating estimating the VAR first and only? Within the function VAR() the equations are estimated by lm(). Would you be so kind and send the result of traceback()? Best, Bernhard >-Ursprüngliche Nachricht- >Von

[R] [Fwd: Re: R code to reproduce (while studying) Bates & Watts 1988]]]

2009-08-17 Thread Ottorino-Luca Pantani
Kevin Wright wrote: library(nlme) m2 <- gnls(conc ~ t1*(1-t2*exp(-k*time)), data = df.Chloride, start = list( t1 = 35, t2 = 0.91, k = 0.22)) So my error was to use nls instead that gnls. Thanks a lot, Kevin. summary(m2) plot(m2) l

Re: [R] Multiple comparison on lme model with 2 fixed factors

2009-08-17 Thread Dieter Menne
Billeke wrote: > > I'm a bit lost while performing multiple comparisons on a lme model of > that type: > > lmeglu=lme(glucose~Ath*tim,random=~1|Vol,na.action=na.omit,data=data) > multc = glht(lmeglu, linfct = mcp(Ath = "Tukey", tim = "Tukey")) > > This works fine for identifying the effect of

Re: [R] Display the character variables in a dataset in R

2009-08-17 Thread baptiste auguie
Hi, If you have a data.frame, perhaps this can help, tc = textConnection("carat cut color clarity depth table price x y z 1 0.23 Ideal E SI2 61.555 326 3.95 3.98 2.43 2 0.21 Premium E SI1 59.861 326 3.89 3.84 2.31 3 0.23 Good E VS1 56.965

Re: [R] regex problems with the escape character

2009-08-17 Thread Gabor Grothendieck
s1 should use \\ like this: s1<- "C:\\Rtools\\bin;C:\\Rtools\\perl\\bin;C:\\Rtools\\MinGW\\bin;C:\\Program\\MiKTeX 2.7\\miktex\bin" Also 1. you won't need to change your path in the first place if you use the batchfiles at http://batchfiles.googlecode.com 2. there is also a free path editor disc

[R] Rounding to the nearest 5

2009-08-17 Thread Steve Murray
Dear all, A hopefully simple question: how do I round a series of values (held in an object) to the nearest 5? I've checked out trunc, round, floor and ceiling, but these appear to be more tailored towards rounding decimal places. Thanks, Steve _

Re: [R] How to use your own data in gstat and sp?

2009-08-17 Thread Roger Bivand
First re-read the definition of what a SpatialPixels object is - ?"SpatialPixels-class" - note that it says: "class for defining a pixels, forming a possibly incomplete rectangular grid of arbitrary dimension". When you try to coerce a SpatialPointsDataFrame to a SpatialPixelsDataFrame, it is chec

Re: [R] Rounding to the nearest 5

2009-08-17 Thread Ottorino-Luca Pantani
Steve Murray ha scritto: Dear all, A hopefully simple question: how do I round a series of values (held in an object) to the nearest 5? I've checked out trunc, round, floor and ceiling, but these appear to be more tailored towards rounding decimal places. Thanks, Steve I had a similar p

[R] Newbie question re stddev, quantmod and performanceanalytics

2009-08-17 Thread afx111
Hi, I am trying to calculate the std dev of returns of YHOO so far i got: getSymbols("YHOO") retYHOO <- Return.calculate(Cl(YHOO)) > sd(retYHOO) YHOO.Close NA but i received an NAcan any assist? tks! -- View this message in context: http://www.nabble.com/Newbie-question-re-stdd

[R] Graphical Parameters

2009-08-17 Thread mohsin ali
Hi Sir How can I change plot size, figure size and device size? The examples availble for par() function are not very helpful. Would you please give a very simple example? Best Regards _ Show them the way! Add maps and d

[R] Multiple comparison on lme model with 2 fixed factors

2009-08-17 Thread Billeke
Hi! I'm a bit lost while performing multiple comparisons on a lme model of that type: lmeglu=lme(glucose~Ath*tim,random=~1|Vol,na.action=na.omit,data=data) multc = glht(lmeglu, linfct = mcp(Ath = "Tukey", tim = "Tukey")) This works fine for identifying the effect of each factor. However, when I

[R] help with expression()

2009-08-17 Thread deanj2k
Hello. I have a vector and within that vector is one expression. When I display this vector it comes up as expression(NA_character_, NA_character_, "Null Effect", "Pooled effect", NA_character_, NA_character_, NA_character_, NA_character_, NA_character_, paste("Het Contours ", I^2, se

[R] graph label greek symbol failure

2009-08-17 Thread e-letter
Readers, Previous questions about this requirement have been for m$ users, my failure occurs using linux. I have tried to add the delta (δ) symbol to the y axis label and the result is &D, using the command: ...ylab="δt"... Any advice please? rh...@conference.jabber.org mandriva 2008 r 251 (27

[R] Question spdep package - Moran's I

2009-08-17 Thread Haenlein, Michael
Dear all, I have a question regarding the spdep package: Assume that each person within my dataset is characterized by a continuous variable y. In order to test for spatial autocorrelation in y I calculated a Moran's I statistic. The problem is that y is also likely to be influenced by a s

Re: [R] Rounding to the nearest 5

2009-08-17 Thread Erich Neuwirth
mround <- function(x,base){ base*round(x/base) } > mround(14,5) [1] 15 Steve Murray wrote: > Dear all, > > A hopefully simple question: how do I round a series of values (held in an > object) to the nearest 5? I've checked out trunc, round, floor and ceiling, > but these appear to be

[R] help with functions "spec" and "specprop"

2009-08-17 Thread mauede
I deal with mono-channel breathing signals sampled at 30[Hz] which are non-linear and non-stationary. My goal is to classify the signals according to common breathing patterns Trend remotion is necessary for cluster analysis but quite challenging. In fact, quasi-periodic patterns that span a numb

Re: [R] Graphical Parameters

2009-08-17 Thread Jim Lemon
mohsin ali wrote: Hi Sir How can I change plot size, figure size and device size? The examples availble for par() function are not very helpful. Would you please give a very simple example? Hi Mohsin, The device size is determined by the function that starts it. For example, the defa

Re: [R] Graphical Parameters

2009-08-17 Thread Stefan Grosse
On Mon, 17 Aug 2009 05:54:18 + mohsin ali wrote: MA> How can I change plot size, figure size and device size? The MA> examples availble for par() function are not very helpful. Would MA> you please give a very simple example? It would be easier if you would tell what exactly you want to do.

Re: [R] Newbie question re stddev, quantmod and performanceanalytics

2009-08-17 Thread Stefan Grosse
On Sun, 16 Aug 2009 22:43:14 -0700 (PDT) afx111 wrote: A> getSymbols("YHOO") A> retYHOO <- Return.calculate(Cl(YHOO)) A> > sd(retYHOO) A> A> YHOO.Close A> NA A> A> but i received an NAcan any assist? tks! You receive NA because getSymbols went wrong, so YHOO was empty. Try getSym