Re: [R] Value of 'pi'

2011-05-30 Thread Oliver Bandel
Hello, interesting would be to estimate what would have happened, if the law would have been installed. What consequences would that have caused? Could it make the earth flat again? And which shape would the earth have, if pi = 3? And how would a football-ball look like? (Like american football

Re: [R] logarithmic seq() ?

2009-09-21 Thread Oliver Bandel
manchester.ac.uk> writes: > > On 21-Sep-09 18:47:50, Oliver Bandel wrote: > > Hello, > > in scilab /Matlab there are functions that can create linear > > sequences (like R's seq()) as well as logarithmic sequences. > > > > > > Is there a l

[R] logarithmic seq() ?

2009-09-21 Thread Oliver Bandel
Hello, in scilab /Matlab there are functions that can create linear sequences (like R's seq()) as well as logarithmic sequences. Is there a logarithmic aequivalent of seq()? Or maybe this would be an idea for newer R-releases, maybe a type-option with "linear" and "logarithmic" as parameters...

Re: [R] [Hmisc] Latex to pdf

2009-09-06 Thread Oliver Bandel
Jeroen Ooms uu.nl> writes: [...] > Output written on file643c9869.dvi (1 page, 372 bytes). > Transcript written on file643c9869.log. > Error: Can't open display: The can't open display-error rather looks like an X11-problem. Are you reglar user on that system ? Try to look at the dvi with you

[R] Simulation of population dynamics in R?

2009-09-06 Thread Oliver Bandel
Hello, are there simulation packages to simulate population dynamics, for example for epidemiology? Or are there (open source) tools that can do that task and can be used from within R (or at least can read the resulting data files)? Oliver __ R-help

Re: [R] RODBC: missing files? (Re: RODBC: how to set the data-source?)

2009-08-29 Thread Oliver Bandel
Oliver Bandel first.in-berlin.de> writes: [...] > I assume for each entry in /etc/passwd until the one that os looked for, > /etc/odbc.ini is opened once... > ...maybe I should test this hypothesis... looks strange. [...] No, my loginname is in line 31 of /etc/passwd. oli...@siou

[R] RODBC: missing files? (Re: RODBC: how to set the data-source?)

2009-08-29 Thread Oliver Bandel
Hello, I "strace"t the R session when trying to connect to the database. Strange, that /etc/odbc.ini first should be opened with Append-mode: open("/etc/odbc.ini", O_WRONLY|O_CREAT|O_APPEND, 0666) = -1 EACCES (Permission denied) open("/etc/odbc.ini", O_RDONLY) = 3 fstat(3, {st_mode=S_

Re: [R] RODBC: how to set the data-source?

2009-08-29 Thread Oliver Bandel
Dumblauskas, Jerry credit-suisse.com> writes: [...] > The alloc error means you are close... [...] Ah, ok, I see... ...then you are right that Driver has to be the path to the shared library. :-) Oliver __ R-help@r-project.org mailing list https://s

Re: [R] RODBC: how to set the data-source?

2009-08-29 Thread Oliver Bandel
Dumblauskas, Jerry credit-suisse.com> writes: > > OK > > Is your PostGres server on the same Linux box you are running R on? > Sample values > Server = 169.49.30.69 (localhost host means you are on the same > box) > Port= 2700 (make sure your port is correct) > > Also, I a

Re: [R] RODBC: how to set the data-source?

2009-08-28 Thread Oliver Bandel
Dumblauskas, Jerry credit-suisse.com> writes: > > OK > > Is your PostGres server on the same Linux box you are running R on? > Sample values > Server = 169.49.30.69 (localhost host means you are on the same > box) yes, all is local here. > Port= 2700 (make sure your port

Re: [R] RODBC: how to set the data-source?

2009-08-28 Thread Oliver Bandel
... I also tried this one: r...@siouxsie:~# odbcinst -q -d odbcinst: SQLGetPrivateProfileString failed with . r...@siouxsie:~# "failed with ." ... what a verbose and detailed error message :-( Oliver __ R-help@r-project.org mailing list https:

Re: [R] RODBC: how to set the data-source?

2009-08-28 Thread Oliver Bandel
Hi, in /usr/share/doc/r-cran-rodbc/README.gz I found this example: == [testpg] Description = testpg Driver = PostgreSQL Trace = No TraceFile = ServerName = localhost UserName= ripley Port= 5432 Socket = Database=

Re: [R] RODBC: how to set the data-source?

2009-08-28 Thread Oliver Bandel
Dumblauskas, Jerry credit-suisse.com> writes: > > Looks like Unix ...well, near by: Linux. > > If so, make sure your script has the proper paths set > > Here is my set up for an oracle DB > > export LD_LIBRARY_PATH=/../../instantclient_11_1:/../../unixODBC64_1/lib > export ODBCINI=/..

Re: [R] RODBC: how to set the data-source?

2009-08-28 Thread Oliver Bandel
Oliver Bandel first.in-berlin.de> writes: > odbcDataSources() named character(0) > This looks like nothing is available via RODBC interface. Any idea what's missing? How can I get all names of available drivers? Ciao, Oliver _

[R] RODBC: how to set the data-source?

2009-08-28 Thread Oliver Bandel
Hello, I want to try to connect R to PostgreSQL. I have found that there are three ways: DBI or RODBC or RPostgreSQL. I tried around with DBI and RODBC but didn't get it running. In both cases I'm not clear about how to set the driver/data source. I get this error: x > channel <- odbcConne

Re: [R] Plotting to stdout

2009-08-28 Thread Oliver Bandel
Philipp Pagel wzw.tum.de> writes: > > On Wed, Aug 26, 2009 at 07:53:57PM +0000, Oliver Bandel wrote: > > > > is there a way to write the result of a plot > > to stdout? I mean even a binary thingy like > > a png-file, written to stdout?! > > I tried w

Re: [R] Managing output

2009-08-26 Thread Oliver Bandel
Oliver Bandel first.in-berlin.de> writes: [...] > For many entries, it would be faster, if you just allocate > the array that should be written, by just writing 0 into it, > or empty strings or something like this... > > mydat[1:100] <- 0 > > mydat > [1] 0 0 0 0 0

Re: [R] Managing output

2009-08-26 Thread Oliver Bandel
Noah Silverman smartmediacorp.com> writes: > > Hi, > > Is there a way to build up a vector, item by item. In perl, we can > "push" an item onto an array. How can we can do this in R? > I have a loop that generates values as it goes. I want to end up with a > vector of all the loop results.

[R] Plotting to stdout

2009-08-26 Thread Oliver Bandel
Hello, is there a way to write the result of a plot to stdout? I mean even a binary thingy like a png-file, written to stdout?! I tried with the file-argument of png() and jpeg(), but did not get working results. Ciao, Oliver __ R-help@r-project.or

Re: [R] Reading jpeg-files

2009-08-23 Thread Oliver Bandel
Oliver Bandel first.in-berlin.de> writes: > > Hello, > > I want to read jpeg-files to create 2D-histograms of them. > Is there a package available for this binary-input issue? > > Ciao, >Oliver > > "In install.packages("rimages")

Re: [R] Reading jpeg-files

2009-08-23 Thread Oliver Bandel
Oliver Bandel first.in-berlin.de> writes: > > Hello, > > I want to read jpeg-files to create 2D-histograms of them. > Is there a package available for this binary-input issue? > > Ciao, >Oliver > > Ok, sorry, I now found something in the archive: the

[R] Reading jpeg-files

2009-08-23 Thread Oliver Bandel
Hello, I want to read jpeg-files to create 2D-histograms of them. Is there a package available for this binary-input issue? Ciao, Oliver __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting gui

Re: [R] Wind-data analysis with R?

2009-08-21 Thread Oliver Bandel
OK, thanks to all for the many hints. I tried some of the packages for creating windroses. Looks good. :-) Ciao, Oliver __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.

[R] Wind-data analysis with R?

2009-08-20 Thread Oliver Bandel
Hello, are there people outside who use R for analysis of wind-measurement data (meteorological or for planning of wind power stations)? Are there already scripts/modules available for analysing and displaying/plotting wind data in the way it is done in projection/planning of wind power stations?

[R] Minimal R-installation (and it's size)

2009-03-26 Thread Oliver Bandel
Hello, for very small systems (embedded devices) I think about a minimalistic R-installation. When I look at the R-binary, it has just 5472 Bytes of size. I think this will only be a small initial program, that afterwards starts other executables and also will load standard/base package(s). Can

[R] Moving Histogram?

2009-03-09 Thread Oliver Bandel
Hello, is there a function, that creates a moving histogram? I need a moving histogram analogical to a moving average. Is there such a thing in R? Ciao, Oliver __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PL

[R] error correcting a signal

2009-03-09 Thread Oliver Bandel
Hello, I know, this list is for R, not for mathematics, but because of this problem in question, which may be interesting for others too, I ask it here. I want to correct a signal (timeseries). There is a jump up, and later a jump down. This error signal (must be an error, because the normal data

[R] ylim in plot.ts?

2009-02-17 Thread Oliver Bandel
Hello, I tried to use ylim=c(x,y) in a plot.ts(). This was ignored. How can I achieve it to create such graphics? Ciao, Oliver Bandel __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting

[R] Strange behaviour of paste

2009-01-11 Thread Oliver Bandel
Hello, here I have some code, which behaves quite strange, IMHO. There is a "res.txt" which will be collected before printing it. There is a paste-statement, which has a comment at the end of the line, which is this one: "# !HERE!". If you throw out the first hash-mark "#" on that line,

Re: [R] How can I avoid nested 'for' loops or quicken the process?

2008-12-25 Thread Oliver Bandel
Bert Gunter gene.com> writes: > > FWIW: > > Good advice below! -- after all, the first rule of optimizing code is: > Don't! > > For the record (yet again), the apply() family of functions (and their > packaged derivatives, of course) are "merely" vary carefully written for() > loops: their mai

Re: [R] beginner data.frame question

2008-12-25 Thread Oliver Bandel
John Fox mcmaster.ca> writes: > > Dear Kirk, > > Actually, co2 isn't a data frame but rather a "ts" (timeseries) object. A > nice thing about R is that you can query and examine objects: > > > class(co2) > [1] "ts" [...] Yes. And with > frequency(co2) [1] 12 One gets "the number of obser

Re: [R] Combining Sweave and LaTeX-packages?

2008-12-21 Thread Oliver Bandel
Zitat von Frank E Harrell Jr : [...] > > But Hmisc's latex() function(s) create always *.tex-files. > > Then I have to use the include-statement by myself and also > > my working directory will be filled up with *.tex files... > > No, read the latex function's documentation more closely. Specifyi

[R] Combining Sweave and LaTeX-packages?

2008-12-21 Thread Oliver Bandel
Hello, a while ago I asked for collaboration support R <-> LaTeX. I got some answers, and Sweave was one, to use the Hmisc package another one. Both have their advantages and drawbacks. At the moment I would absolutely prefer Sweave, because the inclusion is done automatically, and I do not ha

Re: [R] Dataframe help

2008-12-21 Thread Oliver Bandel
Rajasekaramya gmail.com> writes: > > > Hi there, > > I have a dataframe length.unique.info > > length.unique.info > abc 12 345 > def 16 550 > lmn 6 600 > I want those names that fall under the condition (length.unique.info[,2][i] > <=5 && length.unique.info[,3][i] >=500) [...] Hello,

Re: [R] NA, where no NA should (could!) be!

2008-12-20 Thread Oliver Bandel
Hello, ok, I found the problem! I now have: res_size_by_host <- tapply( selected$size, factor(selected$host), sum) instead of res_size_by_host <- tapply( selected$size, selected$host, sum) and now it works. IMHO this is strange, because selected$host is already a factor! I do

Re: [R] NA, where no NA should (could!) be!

2008-12-20 Thread Oliver Bandel
Oliver Bandel first.in-berlin.de> writes: [...] > > P.S.: I will try to attach my zip-file now... it contains > the complete code and a changed weblog (changed IP-addresses). > I hope the list accepts it. [...] As assumed, this did not work. But I found, where the p

Re: [R] NA, where no NA should (could!) be!

2008-12-20 Thread Oliver Bandel
Zitat von Peter Dalgaard : > Oliver Bandel wrote: > > Sarah Goslee gmail.com> writes: > > > >> I think we need the reproducible example requested in > >> the posting guide. > > > > > > for ( datum in names(web

Re: [R] NA, where no NA should (could!) be!

2008-12-20 Thread Oliver Bandel
Sarah Goslee gmail.com> writes: > > I think we need the reproducible example requested in > the posting guide. for ( datum in names(weblog_by_date) ) { print(datum) selected <- weblog_by_date[[datum]] res_size_by_host <- tapply( selected$size, selected$host, sum)

[R] NA, where no NA should (could!) be!

2008-12-20 Thread Oliver Bandel
Hello, again I'm on my weblog-script... having problems... This code: === weblog <- read_weblog("web.log") weblog_by_date <- split(weblog, weblog$date) #for ( i in names(weblog_by_day) ) { print(i); print(weblog_by_day$i) } for ( datum in names(weblog_by_date) ) { p

Re: [R] How to do indexing after splitting my data-frame?

2008-12-20 Thread Oliver Bandel
Hello Jim, jim holtman gmail.com> writes: > > try: > > myindex <- "01-Dec-2008" > > weblog_by_date[[myindex]]$host [...] Ooops yes, that works! Thank you! I don't know why this works, and the other thing not. I thought the difference between [] and [[]] is just, that the one gives back

[R] How to do indexing after splitting my data-frame?

2008-12-20 Thread Oliver Bandel
Hello, after splitting a data-frame I want to access the results. Maybe the problem is, that the factor/index is a string... ...or do I miss knowing details of the index-uasge? Please look and help: === > weblog <- read_weblog("web.log") > > > str(weblog) 'd

Re: [R] R/OCaml?

2008-12-20 Thread Oliver Bandel
Hello Alexy, Alexy Khrabrov gmail.com> writes: > > Did anyone try to write R extensions in OCaml? What would it entail > to enable it? [...] I did not so far, but I have thought about it. It must be done via C as glue-code. So it is necessary to be able to write C-extensions for OCaml (o

Re: [R] Sweave/Rweave and results="verbatim"

2008-12-14 Thread Oliver Bandel
Hello Matthias, Zitat von Matthias Kohl : > it should work without quotes; i.e., > > results = verbatim > > hth, [...] Yes, this helps! Thanks a lot! :) Ciao, Oliver __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-he

[R] Sweave/Rweave and results="verbatim"

2008-12-14 Thread Oliver Bandel
Hello, in a Rnw-file I have this used stuff to try out tex-results... == <<>>>= texme <- function() cat( "{\\bf Hallo, das ist voll fett!}\n" ) @ <>= texme() @ == I used this command: "R CMD Sweave example.Rnw" and got this error: ==

Re: [R] LaTeX and R-scripts/-results

2008-11-29 Thread Oliver Bandel
Hello Thomas (and all), Zitat von Thomas Petzoldt <[EMAIL PROTECTED]>: > Oliver Bandel wrote: > > Hello, > > > > at some places I read about good interaction of > > LaTeX and R. > > > > Can you give me a starting point, where I can find > > in

[R] LaTeX and R-scripts/-results

2008-11-25 Thread Oliver Bandel
Hello, at some places I read about good interaction of LaTeX and R. Can you give me a starting point, where I can find information about it? Are there special LaTeX-packages for the support, or does R have packages for support of LaTeX? Or will an external Code-Generator be used? TIA, Oliver

Re: [R] paste command with new line separator

2008-11-17 Thread Oliver Bandel
slurpy gmail.com> writes: > > > Win xp sp2, R v2.7.1 > Hi. If I have two numeric columns in a data frame, I can use the paste > command to combine them into a new column separated by a comma. > c3=paste(c1,c2,sep=',') > gives: 1 1 -> "1,1" > Is there any way I can use a new line (\n) as a sepa

Re: [R] Time plots

2008-11-17 Thread Oliver Bandel
Lathouri, Maria imperial.ac.uk> writes: [...] > Until here it works fine, but I have the graph plotting only the points. What I want is to have a line (join > these points) so to have a time plot. I have tried different commands such as lines(DATE,pH) or with(DF, > lines(DATE,pH) but nothing work

Re: [R] Gmane-interface

2008-11-17 Thread Oliver Bandel
Hello, I have written a mail to gmane so that they can correct their page (eventually throwing out that link). Btw, the framed version of the link to the gmane-page (from r-cran project pages) appears like being part of the r-cran-pages; that was the reason, why I thought the gmane-archive-serve

Re: [R] Gmane-interface

2008-11-17 Thread Oliver Bandel
Zitat von David Winsemius <[EMAIL PROTECTED]>: [...] > When I used the URL you offered to the Gmane website, both the RSS > feeds and the web interface links were as current as Gmane ever is. > Furthermore when I also look at the link entitled "Original list > archive", it too is also up-to-date.

Re: [R] Gmane-interface

2008-11-16 Thread Oliver Bandel
Zitat von Peter Dalgaard <[EMAIL PROTECTED]>: > Oliver Bandel wrote: > > Hello, > > > > I got a hint to use the gmane-interface... > > ...nice tool. :) > > > > But the gmane-server which is mentioned ont he healp-pages of > > htt

Re: [R] Gmane-interface

2008-11-16 Thread Oliver Bandel
Zitat von David Winsemius <[EMAIL PROTECTED]>: > > When I look at that page and choose the "all messages with excerpted > text" link, I get what appears reasonably up-to-date entries compared > to what I get in my mail subscription. Have you considered the > possibility that it is not Gmane which

Re: [R] duplicate values

2008-11-16 Thread Oliver Bandel
Antje Nöthlich web.de> writes: [...] > Now for the whole dataframe i would like to delete rows that have the same > "Datetime" value as the prior row. Well, if you do this, then you loose data. is this really, what you want? Throwing away data? I would think it make sense, if all columns are eq

Re: [R] Changing values (factors) does not change level s of that value?!

2008-11-16 Thread Oliver Bandel
Philipp Pagel wzw.tum.de> writes: [...] > > foo$bar <- factor(foo$bar) This was my first attemot, before posting here, and it somehow did not worked... ...now it works so I maybe was too tired, when trying it and messed something up. :( [...] > > x <- factor(c(0,1,3,4,5,7)) > > x > [1]

[R] Gmane-interface

2008-11-16 Thread Oliver Bandel
Hello, I got a hint to use the gmane-interface... ...nice tool. :) But the gmane-server which is mentioned ont he healp-pages of http://www.r-project.org/ http://dir.gmane.org/gmane.comp.lang.r.general and the links on that page also, just only bring me to an gamne-archive, which is outdated.

Re: [R] Changing values (factors) does not change level s of that value?!

2008-11-16 Thread Oliver Bandel
Philipp Pagel wzw.tum.de> writes: [...] > As you are reading the data from a file anyway, the simplest > solution would probably be to use the colClasses argument ot > read.table in order to get numeric avlues in the first place. [...] Hey, I tried this colClasses-option. It's really fine! :) C

Re: [R] Changing values (factors) does not change levels of that value?!

2008-11-16 Thread Oliver Bandel
Zitat von "Weiss, Bernd " <[EMAIL PROTECTED]>: > Philipp Pagel schrieb: > >> * when then looking at str(weblog), > >>the "-" will stay in the levels, mentioned for the variable > weblog$V8 > >>-> BAD! > >> > >> Is this snormal behaviour? > > > > Yes, it is. The idea is that a factor has a

[R] Changing values (factors) does not change levels of that value?!

2008-11-16 Thread Oliver Bandel
Hello, * I read in a server weblog with read.table. -> OK. * I look for the downloaded-size-values (filesize of the download) -> OK * I found "-" and wanted to substitute them with "0" and used: weblog$V8[ weblog$V8 == "-" ] <- 0 -> OK * checked the contents on "-" vs. "0" and

Re: [R] comparing rows - a possible solution

2008-11-11 Thread Oliver Bandel
Hi, Zitat von [EMAIL PROTECTED]: > Hi Oliver: if I understood Chris's email correctly , he wanted to > compare all possible row ( row1 with the other 4 rows of the other > matrix, > row 2 with the 4 rows of the other matrix, etc, etc, ) combinations > of > the two matrices, Oh, I thought he mean

[R] comparing rows - a possible solution

2008-11-10 Thread Oliver Bandel
Hello, sorry for posting this independently of the original thread, but it is not that easy to answer to mails, when receiving the r-help as digest... ... The question was: > I compare each row of a matrix with each row of another matrix. > > testmat1 <- matrix(c(1,2,3,4,5,6,7,8,9,10,11,12,13,

Re: [R] replicate and as.matrix: different behaviour between batch and non-batch mode

2008-11-06 Thread Oliver Bandel
Hi, Zitat von "Charles C. Berry" <[EMAIL PROTECTED]>: > On Thu, 6 Nov 2008, Oliver Bandel wrote: > > > Hello Charles, > > > > [snip] > > >> dim( as.matrix(replicate(10, sample(x, 3) ) ) ) > > [1] 3 10 > >> dim( as.

Re: [R] replicate and as.matrix: different behaviour between batch and non-batch mode

2008-11-06 Thread Oliver Bandel
Hello Charles, thank you for the hint. Zitat von "Charles C. Berry" <[EMAIL PROTECTED]>: [...] > > This looks good (and correct to me). > > Look again . > > It is not the same as what you have above. [...] OK, yes, you are right! I mixed the two parameters... Now I get the same problem als

[R] replicate and as.matrix: different behaviour between batch and non-batch mode

2008-11-06 Thread Oliver Bandel
Hello, for a simulation I tried the following: = sampmeanvec <- function (from, n, repititions) { print( paste("samplesize n:", n, "repititions:", repititions) ) samples.mat <- as.matrix( replicate( repititions, sample(from, n)

Re: [R] Internal and displayed precision of numbers

2008-11-05 Thread Oliver Bandel
r to understand the manuals/help-pages. Ciao, Oliver Zitat von Uwe Ligges <[EMAIL PROTECTED]>: > > > Oliver Bandel wrote: > > Hello, > > > > can the displayed and/or used precision of numbers be > > configured? And if... how? > > > See

[R] Internal and displayed precision of numbers

2008-11-05 Thread Oliver Bandel
Hello, can the displayed and/or used precision of numbers be configured? And if... how? Ciao, Oliver __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting

Re: [R] acf(): meaning of the blue horizontal lines

2008-10-28 Thread Oliver Bandel
Zitat von David Scott <[EMAIL PROTECTED]>: > On Tue, 28 Oct 2008, Oliver Bandel wrote: > > > Zitat von David Scott <[EMAIL PROTECTED]>: > > > >> On Tue, 28 Oct 2008, Oliver Bandel wrote: > >> > >>> Hello, > >>> > >>

Re: [R] acf(): meaning of the blue horizontal lines

2008-10-28 Thread Oliver Bandel
Zitat von David Scott <[EMAIL PROTECTED]>: > On Tue, 28 Oct 2008, Oliver Bandel wrote: > > > Hello, > > > > what are they meaning? It could be something that > > would show a threshhold above which the result is > > indicating different meanings t

[R] acf(): meaning of the blue horizontal lines

2008-10-28 Thread Oliver Bandel
Hello, what are they meaning? It could be something that would show a threshhold above which the result is indicating different meanings then just random noise. But there is no description on the definition of those lines, so it means nothing, if it is not clearly defined. Where can I find a deta

[R] acf() plots of a data.frame: what meaning?

2008-10-28 Thread Oliver Bandel
Hello, what is the meaning of the plots of an acf()-plot, when using a data frame as argument? The result is NOT obvious for me. There are combinations of the columns of a dataframe in the reulting plot. But an acf() is just defined for onyl one time-sreies. So what do the plots mean? I did not

[R] acf() and ccf() - acf() on a data-frame: so many plots...

2008-10-26 Thread Oliver Bandel
Hello, when using acf, there is a blue stripped line in the plot. What is the meaning of it? Another question on acf(): when I use adc() on a data-frame it automatically creates a lot of seperated acf-plots. But there are combinations of plots, which seem to be ccf() and not acf(). Is this a "fea

Re: [R] numeric derivation

2008-10-12 Thread Oliver Bandel
Zitat von Gabor Grothendieck <[EMAIL PROTECTED]>: > If you simply want successive differences use diff: > > x <- seq(4)^2 > diff(x) > > tx <- ts(x) > diff(tx) [...] Oh, cool, thanks. But what about diff / delta_t ? Do I have to calculate it by my own, or is there already a function for making

Re: [R] numeric derivation

2008-10-12 Thread Oliver Bandel
Zitat von Gabor Grothendieck <[EMAIL PROTECTED]>: > On Sun, Oct 12, 2008 at 7:24 AM, Oliver Bandel > <[EMAIL PROTECTED]> wrote: [...] > > The input to numericDeriv is not values but an expression. > See the Examples section at the end of ?numericDeriv > The exp

[R] numeric derivation

2008-10-12 Thread Oliver Bandel
Hello, I don't understand the description / help-text for the numericDeriv() function. Why is there a new environment used? And what is meant with an environment here? Is it similar or the same as a local workspace, like an environment in functional languages? And why is it needed here? numer

Re: [R] rgl-snapshot failed (err-msg: "failed")

2008-10-10 Thread Oliver Bandel
Zitat von Duncan Murdoch <[EMAIL PROTECTED]>: > On 10/10/2008 8:13 AM, Oliver Bandel wrote: > > Hello, > > > > > > I tried to use rgl.snapshot and it failed. > > > > The error message was not very verbose: > > > > > > > > ==

[R] rgl-snapshot failed (err-msg: "failed")

2008-10-10 Thread Oliver Bandel
Hello, I tried to use rgl.snapshot and it failed. The error message was not very verbose: == > > > plot3d( motion[[idx+2]], motion[[idx+1]], motion[[idx]] ) > rgl.snapshot(filename="/tmp/shot_01.png", fmt="png") [1] "failed" > == There was a graphic c

Re: [R] plot-parameter pch without influence when plotting a data-frame

2008-10-10 Thread Oliver Bandel
Zitat von John Kane <[EMAIL PROTECTED]>: > --- On Thu, 10/9/08, Oliver Bandel <[EMAIL PROTECTED]> wrote: > > > From: Oliver Bandel <[EMAIL PROTECTED]> > > Subject: Re: [R] plot-parameter pch without influence when plotting > a data-frame > > To: &

Re: [R] plot-parameter pch without influence when plotting a data-frame

2008-10-09 Thread Oliver Bandel
Zitat von "Gerhard Schön, UKE Hamburg" <[EMAIL PROTECTED]>: > what is the result of: > > df <- data.frame(x = 1:5, y = 1:5) > plot(df, pch = 1:5) It prints different symbols. It seemed, that my pch-settings had an effect, but some symbols were very similar, especially, when a lot of them are plo

[R] plot-parameter pch without influence when plotting a data-frame

2008-10-09 Thread Oliver Bandel
Hello, I'm plotting a data-frame and use plot(..., pch=...) as well as setting pch with par(pch=...) but always get the default symbol (circle) for the plots. Does pch have no effect, when plotting a complete data-frame, instead of certain values/vectors? How to change the behaviour?

[R] From time-strings to Unix-Epoche-time?

2008-09-12 Thread Oliver Bandel
, Oliver Bandel __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.

Re: [R] Help with 'spectrum'

2008-09-10 Thread Oliver Bandel
Hello, [...] > -- > > Message: 41 > Date: Tue, 9 Sep 2008 9:44:34 -0700 > From: <[EMAIL PROTECTED]> > Subject: [R] Help with 'spectrum' > To: r-help@r-project.org > Message-ID: <[EMAIL PROTECTED]> > Content-Type: text/plain; charset=utf-8 > > For the command 'spectrum'

Re: [R] Plotting the complex fft in 3D?

2008-09-06 Thread Oliver Bandel
Hello Martin, Zitat von Martin Maechler <[EMAIL PROTECTED]>: > Just another remakr on this thread. > > I you have time series and think about its fourier transform > (EE language) then you should know that the statistical language > of that is "spectral analysis" or maybe > "frequency domain ti

[R] Time Series (attribute)

2008-09-05 Thread Oliver Bandel
Hello, what kind of advantages does R's time series offer? Would it be possible to use data with units? For example data from a real time series with certain sampling rates - could they be used so, that the sample-times are measured in millisceonds or microseconds, instead of an index of the pos

Re: [R] Plotting the complex fft in 3D?

2008-09-04 Thread Oliver Bandel
Zitat von Duncan Murdoch <[EMAIL PROTECTED]>: > On 04/09/2008 4:44 PM, Oliver Bandel wrote: > > Zitat von Duncan Murdoch <[EMAIL PROTECTED]>: > > > >> Oliver Bandel wrote: > >>> Hello, > >>> > >>> [...] > plot3d do

Re: [R] Plotting the complex fft in 3D?

2008-09-04 Thread Oliver Bandel
Zitat von Duncan Murdoch <[EMAIL PROTECTED]>: > Oliver Bandel wrote: > > Hello, > > > > > > I'm new to R (using it since about two weeks), > > but absolutely a fan of it from the beginning on. :-) > > > > Best tool for working with dat

[R] Plotting the complex fft in 3D?

2008-09-04 Thread Oliver Bandel
Hello, I'm new to R (using it since about two weeks), but absolutely a fan of it from the beginning on. :-) Best tool for working with data I found. :-) I tried using the fft() and other funcitons for analysing time series. What I would be glad to have, would be a convenient way to display the