Displaying 20 results from an estimated 600 matches similar to: "No subject"
2009 May 25
3
Interpolating variables within (RODBC library) SQL statements for MySQL
Hi everyone,
I am desperately looking for a method to interpolate strings within an SQL
statement as follows:
I get a lot of rows out of a database (in my example POSITION_to_ZIPCODE
Database with holds records for German ZIP Code <--> Gauss-Krueger
Coordinate System ) and want this to be selected and computed individually
row by row as follows:
library(RODBC)
channel <-
2010 Dec 02
4
2D Random walk
I've wrote some code to simulate a random walk in 2 dimensions on a lattice.
Basically I want to add something in to make it plot it point by point so
you can see what is going on.
Heres my code for the random walk in 2d
RW2D<-function(N)
{
i<-0
xdir<-0
ydir<-0
xpos<-vector()
xpos[1]<-xdir
ypos<-vector()
ypos[1]<-ydir
for (i in 1:N-1)
2008 Aug 09
1
Converting nested "for" loops to an "apply" function(s)
Hello,
I would like to know more about how to use the "apply" family and have attempted to convert nested "for" loops in example code from Contributed Documentation ("The Friendly Beginners' R Course? by Toby Marthews (ZIP, 2007-03-01)") to an "apply" function(s). The relevant code is:
distances=c(51,65,175,196,197,125,10,56) #distances of 8 houses
2009 Mar 24
1
segfault when running heatmap()
Hi, I was wondering if someone in the mailing list has any insight into this
segfault error that I consistently find when running a script containing
heatmap() in R 2.8.1 and 2.8.0 on a Linux 64-bit machine.
Some points:
1. This occurs when running heatmap().
2. Interestingly, if I source() the script or copy and paste the script in
its entirety, this error occurs. However, if I run the
1998 Nov 27
1
No subject
Dear friends,
I am trying to port a collection of S-PLUS teaching functions over to R.
Several of my functions use animation. Animation in S-PLUS is not ideal,
but can be accomplished with a call to guiLocator (this forces the program
to print to the graphsheet rather than wait until the function has completed
all calculations). Does anyone know if there is a trick that will enable
me to
2001 Nov 20
2
quiver plot help
Hello everybody
I'm trying to write a simple version of matlab's "quiver".
The idea is that I have fluid with velocity defined on a grid. I have
a matrix of x-components of velocity and a matrix of y-components and
I want to see the overall flow pattern. (I work with 2D fluid
mechanics problems).
My first-stab function is below:
quiver <- function(u,v,scale=1)
# first
2007 Oct 31
1
textplot() in gplots causes problems (0x9)
Hello,
I am using textplot function in gplots package to put some model
output inside a PDF file, but it does not seem to work properly with
PDF.
I am doing follwing:
pdf(file="C:/...", paper="a4", width=8, height=12)
.model <- lm(.model.formula, data=database)
textplot(capture.output(summary(.model)), valign="top", halign="left")
I am getting these
2002 Apr 10
0
FoxPro Regressions - followup from Feb
I'm trying to help with http://bugs.codeweavers.com/show_bug.cgi?id=434
and came across my thread from Feb, that I must have missed.
>> -----------------------------------
>> Non-Working (wine-2002-02-20 cvs)
>> trace:win:SetCapture Calling Event_Capture
>> trace:win:EVENT_Capture (0x20021) Window #!! -Maybe?
>> trace:win:EVENT_Capture About to Return from Event
2010 Nov 23
1
Slow update(insert) on Data.frame
Hi
When I try to update an number in a large data.frame by its pos It's really
slow it take almost a sec to do this and I wonder why and if where is any
faster way to update a number in a data.frame
ive tried
DF$col[POS]<-number
DF[xPOS,yPOS]<-number
Thx
//Joel
--
View this message in context: http://r.789695.n4.nabble.com/Slow-update-insert-on-Data-frame-tp3055707p3055707.html
2009 Jul 09
1
Creating and Using Objects in R
Dear All,
I am not very into object-oriented programming, but I would like to
learn the ropes for some R applications.
Quoting from the online R language definition (paragraph 5.1)
> Consider the following simple example. A point in two-dimensional
> Euclidean space can be specified by its Cartesian (x-y) or polar
> (r-theta) coordinates. Hence, to store information about the location
1999 Oct 08
1
floor(NaN) problem fixed in massdist.c (PR#291)
Full_Name: Naoki Takebayashi
Version: 0.65.0+R-release.diff (Oct 6, 1999)
OS: Linux/Alpha
Submission from: (NULL) (129.79.224.171)
This will fix the "problem 2 (crash in fft)" in Bug ID #277
On Linux/Alpha, make check failed because R could not handle the following
example in base-Ex.R
##___ Examples ___:
# The Old Faithful geyser data
data(faithful)
:
:
## Missing values:
x <-
2012 Oct 23
4
Changing radii line type in radial plots
Hello all,
Is it possible to change the radii line type in radial plots? I wasn't able
to find anything online.
Thanks,
Bern
--
View this message in context: http://r.789695.n4.nabble.com/Changing-radii-line-type-in-radial-plots-tp4647238.html
Sent from the R help mailing list archive at Nabble.com.
2002 Aug 23
1
Legends and Fonts
Hello.
Is it possible to set specify the font used by legend()? I would like to
specify a fixed-width font so that I can line up parts of vertically
stacked curve labels. For example, it would be nice if I could align the
names, ages, and weights in the following three curve labels:
Bob age=7 weight=100
Alexander age=13 weight=150
Susan age=20 weight=130
Is there perhaps a clever
2009 Aug 27
2
setting par(srt) according to plot aspect ratio
How can I look up the aspect ratio of a plot, so I can use that to correctly
adjust the angle of text which is supposed to be parallel to a line in the
plot?
The following example code works for a 1:1 aspect ratio, but puts the text
at the wrong angle if the plot region is short and wide or tall and narrow.
I can't find a par() component containing the plot aspect ratio. It will
be for
2013 Feb 14
12
[PATCH v7 0/5] xen: ARM HDLCD video driver
Hi all,
these are the remaining unapplied patches of the ARM HDLCD patch series.
Changes in v7:
- rebased on b61ed421d2c85b5b106c63f2c14f8aa162b282f0;
- turn more printk and panic into early_printk and early_panic.
Changes in v6:
- rebased on 77d3a1db3196b1b5864469f8d3f41d496800c795;
- remove useless initializations to NULL in lfb_init;
- more compact checks in lfb_init.
Changes in v5:
- move
2002 Mar 14
1
gif, jpeg and png image files reader AND tcltk image
Hi all,
Roger Peng and Jason Turner's suggestion with ImageMagick seem to be the
simplest "dirty" way
to get the problem solved.
But I ran into yet another interesting but quite round-about way to solve
the problem (partially). Through tcltk package, one can read in the gif
image with
> x <- tkcmd("image", "create", "photo", file=mypic.gif)
2009 Mar 20
1
minor tick marks for plots (PR#13616)
Hello,
I think I found a bug:
> windows(1,width = 10, height = 10, pointsize = 5,xpos = 0, ypos = 0 )
> hdata[1:3,1] <- c(1,10,15)
> hdata[1:3,2] <- c(2,1,4)
> plot(hdata[,1],hdata[,2],xaxt="n")
> axis(1,at=c(2,10,14))
> minor.tick(nx=2, ny=1,tick.ratio=1)
the minor tick marks appear between the tick marks which would have been
drawn without the option
2009 Oct 08
1
variogram
Hello everybody,
I want to run the following R-code, but it does'nt work.
> res.vgm = variogram(ertrag ~ rep, # !!!
+ loc = ~ xpos + ypos, # !!!
+ width = start.range / 10,
+ data = d)
Error in vector("double", length) : element 2 is empty;
the part of the args list of '.Internal' being evaluated was:
2011 Oct 21
1
windows limits
Hello,
Using the rgl package, I can set the device window to any dimension (that I
have tested):
par3d(windowRect=c(1,1,700,700))
With windows I can't get the window to span from the top to the bottom of
the monitor. In the following, no matter how large the ypinch value gets it
stops, leaving about 2 inches of space at the bottom of my screen:
windows(record=TRUE, ypinch=1100, xpinch=10,
2009 Jun 16
1
adressing dataframes
Hi everyone,
I experience some problems with adressing of data.frames when I retrieve
some information for geographical position (ypos, xpos) ot of a MySQL
Database and want to perform some simple statistics. The problem is
adressing the dataframes with a construct like
rawdata[c(type)] vs. rawdata$TEMPMIN
to retrieve the numerical information and not a string (I want to store the
numerical