Displaying 20 results from an estimated 20000 matches similar to: "Strange behaviour of paste"
2009 Jan 07
1
Parse-Error creates strange function calls (completely different printouts) (PR#13436)
Full_Name: Oliver Bandel
Version: R version 2.7.1 (2008-06-23)
OS: Linux (Debian Lenny)
Submission from: (NULL) (88.73.82.147)
Hello,
I have written a small R-script.
When I inserted one line of code, the behaviour was completely different!
Instead of just printing one line more to the output,
the complete call of the function in which this line was added,
is different, and instead of one such
2009 Jan 08
0
Parse-Error creates strange function calls (completely different (PR#13438)
This is not a bug. Read ?paste: if you give it a vector, it will give
you a vector result. That's what you're seeing.
Duncan Murdoch
oliver at first.in-berlin.de wrote:
> Full_Name: Oliver Bandel
> Version: R version 2.7.1 (2008-06-23)
> OS: Linux (Debian Lenny)
> Submission from: (NULL) (88.73.82.147)
>
>
> Hello,
>
> I have written a small R-script.
>
2008 Sep 15
4
sprintf does not fill with "0"?!
Hello,
please look here:
=================================================================
>
> sprintf("%03s", as.character(1:5))
[1] " 1" " 2" " 3" " 4" " 5"
>
=================================================================
There should be a leading "0" isntead of space-chars?!
I use R version
2008 Oct 10
2
rgl-snapshot failed (err-msg: "failed")
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 created by rgl, but the snapshot was
not created.
The
2008 Sep 12
2
From time-strings to Unix-Epoche-time?
Hello,
I have strings with date-/time-data from a logfile.
For a sort-by-time (and other time-related analysis)
I need something to convert the
times to the Unix-epoche-time (better also with parts
of seconds).
Is there something that does that job (or a similar conversion)
in R?
TIA,
Oliver Bandel
2008 Oct 12
2
numeric derivation
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?
numericDeriv could just calculate the difference bewtween two
values and divide this difference by the
2009 Aug 28
2
RODBC: how to set the data-source?
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 <- odbcConnect("rtest", uid="oliver")
x Warning messages:
x 1: In
2009 Aug 20
3
Wind-data analysis with R?
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?
If not, would it be of interest to use R for this, and therefore
adapt data-logger output to R (by
2009 Sep 21
2
logarithmic seq() ?
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....?!
Ciao,
Oliver
2008 Dec 20
2
NA, where no NA should (could!) be!
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) )
{
print(datum)
selected <- weblog_by_date[[datum]]
res_size_by_host <-
2008 Nov 16
4
Gmane-interface
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.
I post via http://news.gmane.org/gmane.comp.lang.r.general
(
2008 Dec 21
2
Combining Sweave and LaTeX-packages?
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
have to \include{myRTeXFile} by myself.
One (THE) drawback is, that the results of commands
2009 Aug 26
6
Managing output
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.
In perl it woud be:
for(item in list){
result <- 2*item^2 (Or whatever formula, this is just a pseudo example)
Push(@result_list,
2008 Sep 05
1
Time Series (attribute)
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 positions?
If so, this would be much easier to handle than just
working with indices of a vector.
2008 Dec 14
2
Sweave/Rweave and results="verbatim"
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" )
@
<<results="verbatim">>=
texme()
@
==============================
I used this command: "R CMD Sweave example.Rnw"
and got this error:
2008 Nov 10
1
comparing rows - a possible solution
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,14,15,16), nrow=4)
> testmat2 <- matrix(c(1,2,3,5,5,6,7,8,9,10,11,12,13,14,15,16),
2008 Oct 28
1
acf(): meaning of the blue horizontal lines
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 detailed definiton?
Ciao,
Oliver
2008 Dec 20
1
How to do indexing after splitting my data-frame?
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)
'data.frame': 2247 obs. of 18 variables:
$ host : Factor w/ 77
2008 Dec 26
1
starting values update
Hi all,
does anyone know how to automatically update starting values in R?
I' m fitting multiple nonlinear models and would like to know how I can update starting values without having to type them in.
thank all
--- On Fri, 12/26/08, r-help-request@r-project.org <r-help-request@r-project.org> wrote:
From: r-help-request@r-project.org <r-help-request@r-project.org>
Subject:
2008 Oct 28
1
acf() plots of a data.frame: what meaning?
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 found a description in the
help-page.
Ciao,
Oliver