Re: [R] Rserve error

2010-11-01 Thread Prof Brian Ripley
We are missing all the version information the posting guide asked for. Is this 32-bit or 64-bit R? If the former the location of R.dll changed in R 2.12.0, and Rserve would have needed to change too. However, this is not the place for questions/bug reports on Rserve: see

[R] connecting points into a smooth curve

2010-11-01 Thread tooblue
If I have, say, five scatter points and want to connect them together into a smooth curve. I did plot(x,y,type=l), but the graph is five segments connecting with each other, but not a smooth curve. I wonder if there is a line type that is a curve. Thanks! -- View this message in context:

Re: [R] combining plots (curve + Plot functions)

2010-11-01 Thread Johannes Huesing
mms...@comcast.net mms...@comcast.net [Mon, Nov 01, 2010 at 04:11:53AM CET]: Hello,   What I really want to do is to add a rejection region in the form of a long rectangle to a density plot I have drawn.  I am getting  2 plots.  How can I add rectangle to first plot?  see code below.

[R] function: colvolve

2010-11-01 Thread Dr. Alireza Zolfaghari
Hi list, I have a problem to solve which I believe I shoudl use the convolve to solve it, but I could not figure out how to do it. I got mydata, which is a dataframe which has 7 locations, each location has a longitude,latitude and a value. considering a step of 0.5 degree for longitudes and

Re: [R] check RAM usage

2010-11-01 Thread Joel
Maybe should have said that Im working on a Linux unit :) and that command is for Windows only. But thx anyway If you got any other ideas please share. /Joel -- View this message in context: http://r.789695.n4.nabble.com/check-RAM-usage-tp3018753p3021938.html Sent from the R help mailing

Re: [R] check RAM usage

2010-11-01 Thread Alberto Goldoni
Dear Joel, if you are working in a linux console install htop for linux and open a second shell in which with the command htop you can see the variation of your total memeory live. Best regards. 2010/11/1 Joel joda2...@student.uu.se: Maybe should have said that Im working on a Linux unit :)

[R] In reply to Joshua Wiley: Re: For loop

2010-11-01 Thread Astabenefica
Thank you very much Joshua, your solution is really very good. Thanks again Lorenzo [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide

Re: [R] Plotting 2 Lines on the Same Chart

2010-11-01 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 29.10.2010 20:30:47: Thanks. 1 more question. When I use Plot(series1) lines(series2) 1 use plot(series1) 2 read help page for plot.default if you are plotting simple scatterplot 3 pay attention to xlim and ylim parameters

[R] using dimnames as main when plotting with lapply

2010-11-01 Thread Henrik Pärn
Dear all, # 1. I use tapply to calculate various things based on a grouping variable. # simple example using the warpbreaks dataset: tmp - with(warpbreaks, tapply(breaks, tension, range)) tmp dimnames(tmp) # 2. I wish to plot the result of each element of tmp, using the names of the

Re: [R] for loop

2010-11-01 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 31.10.2010 09:59:00: Hi Dennis, Thank you for your extensive explanations. Yes, I guess I did not explain what I would like to do. Basically I would like to conduct a linear regression for each of 15 classes. In that case you can also

[R] Odp: connecting points into a smooth curve

2010-11-01 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 01.11.2010 07:18:47: If I have, say, five scatter points and want to connect them together into a smooth curve. As you are not much specific about what you consider smooth curve here are some options use some model ?lm and plot predicted values

[R] Irregular Time Series

2010-11-01 Thread mysterio66
Hi I have a daily level time series data. What I need to do is a time series analysis and forecasting and stuff. But the thing I am stuck at is - I cant get a decent time series plot of the data I have http://r.789695.n4.nabble.com/file/n3021984/test.jpg This is a plot of daily level data

Re: [R] using dimnames as main when plotting with lapply

2010-11-01 Thread Uwe Ligges
On 01.11.2010 11:38, Henrik Pärn wrote: Dear all, # 1. I use tapply to calculate various things based on a grouping variable. # simple example using the warpbreaks dataset: tmp - with(warpbreaks, tapply(breaks, tension, range)) tmp dimnames(tmp) # 2. I wish to plot the result of each

[R] Plots inside a Plot

2010-11-01 Thread Knut Krueger
hi, is it possible to draw a plot inside another plot f.e in the upper right corner. I do not mean the possbility par(mfrow = c(2,2). Kind Regards Knut __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do

Re: [R] Plots inside a Plot

2010-11-01 Thread Uwe Ligges
Not in R base graphics, but you can do easily with the grid package. Best, Uwe Ligges On 01.11.2010 11:59, Knut Krueger wrote: hi, is it possible to draw a plot inside another plot f.e in the upper right corner. I do not mean the possbility par(mfrow = c(2,2). Kind Regards Knut

Re: [R] Plots inside a Plot

2010-11-01 Thread Barry Rowlingson
On Mon, Nov 1, 2010 at 11:10 AM, Uwe Ligges lig...@statistik.tu-dortmund.de wrote: Not in R base graphics, but you can do easily with the grid package. You can do anything in R base graphics! Sometimes it's been done for you, sometimes you just have to draw the whole thing yourself using

Re: [R] Plots inside a Plot

2010-11-01 Thread Jim Lemon
On 11/01/2010 09:59 PM, Knut Krueger wrote: hi, is it possible to draw a plot inside another plot f.e in the upper right corner. I do not mean the possbility par(mfrow = c(2,2). Hi Knut, Try the subplot function in the TeachingDemos package. Jim

Re: [R] Plots inside a Plot

2010-11-01 Thread Petr PIKAL
Hi I remember that I did it also in base graphics but it took me some time to find out how and it was a long time ago so. If I remember it correctly it was some combination of graphic parameters to set user coordinates and do not overwrite the first plot by setting par(new=TRUE) Regards

Re: [R] for loop

2010-11-01 Thread David Winsemius
On Nov 1, 2010, at 6:41 AM, Petr PIKAL wrote: Hi r-help-boun...@r-project.org napsal dne 31.10.2010 09:59:00: Hi Dennis, Thank you for your extensive explanations. Yes, I guess I did not explain what I would like to do. Basically I would like to conduct a linear regression for each

Re: [R] Plots inside a Plot

2010-11-01 Thread Knut Krueger
Am 01.11.2010 12:31, schrieb Jim Lemon: On 11/01/2010 09:59 PM, Knut Krueger wrote: hi, is it possible to draw a plot inside another plot f.e in the upper right corner. I do not mean the possbility par(mfrow = c(2,2). Hi Knut, Try the subplot function in the TeachingDemos package. Hi Jim,

Re: [R] how to save this result in a vector

2010-11-01 Thread Erich Neuwirth
My guess is that what you want probably is best done by using ecdf. You might want to look it up in the docs. 1-ecdf(test)(x) Will give you the percentage of values in test larger than x. On 11/1/2010 2:24 AM, Changbin Du wrote: Thanks Joshua! Yes, i is not going up sequentially by 1, as i

[R] number of items to replace is not a multiple of replacement length

2010-11-01 Thread Mipam Bruining
Hey all, I am writing a function in which I will have a matrix of 4 columns and a variable amount of rows. The first to columns will always contain be of the Character type, the third and fourth columns can be a variation of data types, usually characters and integers, but sometimes lists or

[R] Recursive algorithm

2010-11-01 Thread Megh Dal
Dear friend, I have to construct some recursive algorithm for which I used some for loop like: res - vector(length=1) res[1] = 0 for (i in 2:(1+1)) res[i] - res[i-1]*some function I have noticed that this is taking too much time. Is there any way to speed up things? Thanks,

[R] [R-pkgs] Introducing Red-R: visual programming for R

2010-11-01 Thread Anup Parikh
Dear R-Packages Mailing List, The Red-R development team would like to introduce Red-R: a user friendly visual programming and data analysis framework for R. Red-R makes the advanced functionality of R available to the non-computational users by hiding the computational complexity behind a

[R] Irregular Time Series

2010-11-01 Thread mysterio66
Hi I have a daily level time series data. What I need to do is a time series analysis and forecasting and stuff. But the thing I am stuck at is - I cant get a decent time series plot of the data I have http://r.789695.n4.nabble.com/file/n3021952/test.jpg This is a plot of daily level data

Re: [R] Odp: connecting points into a smooth curve

2010-11-01 Thread Mike Marchywka
To: kai...@berkeley.edu From: petr.pi...@precheza.cz Date: Mon, 1 Nov 2010 11:50:17 +0100 CC: r-help@r-project.org Subject: [R] Odp: connecting points into a smooth curve Hi r-help-boun...@r-project.org napsal dne 01.11.2010 07:18:47: If

Re: [R] Recursive algorithm

2010-11-01 Thread David Winsemius
On Nov 1, 2010, at 6:12 AM, Megh Dal wrote: Dear friend, I have to construct some recursive algorithm for which I used some for loop like: res - vector(length=1) res[1] = 0 for (i in 2:(1+1)) res[i] - res[i-1]*some function res[2:(1+1)] -

Re: [R] Recursive algorithm

2010-11-01 Thread Barry Rowlingson
On Mon, Nov 1, 2010 at 10:12 AM, Megh Dal megh700...@yahoo.com wrote: Dear friend, I have to construct some recursive algorithm for which I used some for loop like: res - vector(length=1) res[1] = 0 for (i in 2:(1+1)) res[i] - res[i-1]*some function I have noticed that

[R] Possible memory leak in loop.

2010-11-01 Thread Jonathan P Daily
I was trying to use memory.size() to determine whether a code loop I am executing created a memory leak, since one replicate of the simulation takes 670.98 seconds according to proc.time(), while 5 replicates takes 170762 seconds. So I set it up as: memA - memory.size() looping code... memB

Re: [R] number of items to replace is not a multiple of replacement length

2010-11-01 Thread Ivan Calandra
Hi, I think you _*should*_ provide more: - the objects you have, such as parameterList and blaah: copy the output from dput(object) in your next e-mail - the _*relevant*_ code for how you've built them I guess you will get more and better answers if you give a clear and complete description

Re: [R] Irregular Time Series

2010-11-01 Thread Gabor Grothendieck
On Mon, Nov 1, 2010 at 6:59 AM, mysterio66 tarun.bal...@iprospect.com wrote: Hi I have a daily level time series data. What I need to do is a time series analysis and forecasting and stuff. But the thing I am stuck at is - I cant get a decent time series plot of the data I have

Re: [R] Odp: connecting points into a smooth curve

2010-11-01 Thread Petr PIKAL
Hi r-help-boun...@r-project.org napsal dne 01.11.2010 13:02:46: To: kai...@berkeley.edu From: petr.pi...@precheza.cz Date: Mon, 1 Nov 2010 11:50:17 +0100 CC: r-help@r-project.org Subject: [R] Odp: connecting points into a smooth

[R] Linkage Disequilibrium Blocks

2010-11-01 Thread Hadassa Brunschwig
Hi, I am looking for a package which calculates linkage disequilibrium (LD) blocks similar as in the software Haploview. So far I have found packages which calculate the LD but do not provide methods for determining blocks. Thanks in advance for any hints. Hadassa [[alternative HTML

[R] write.csv changes the format of the date

2010-11-01 Thread Santosh Srinivas
Dear Group, Why does write.csv modify the date format when it write to a file. I have the following variable Param_Dat: dput(Param_Dat) structure(list(Last_Successful_Run = structure(1L, .Label = 30/10/2010, class = factor)), .Names = Last_Successful_Run, class = data.frame, row.names = c(NA,

Re: [R] Odp: connecting points into a smooth curve

2010-11-01 Thread Mike Marchywka
  Doing much of anything meaningful with 5 points would probably require a model as the other poster suggested- your model would need to be solved depending on its particulars. You sometimes see these kinds of wild interpolation issues with the drawing programs and free-form

[R] File Downloading Problem

2010-11-01 Thread Santosh Srinivas
Dear Group, My code stopped working ... used to work till last week! sURL - http://www.nseindia.com/content/historical/EQUITIES/2010/NOV/cm01NOV2010bha v.csv.zip download.file(sURL,test.zip) trying URL 'http://www.nseindia.com/content/historical/EQUITIES/2010/NOV/cm01NOV2010bha v.csv.zip'

[R] sqldf error only on Unix not Windows

2010-11-01 Thread Alex Bryant
Hello Group, I am having trouble with the sqldf package on unix. The same code works fine on windows. Silly Example script: # Load the package library(sqldf) # Use the titanic data set data(women) colnames(women) head(women) sqldf('select height, count(*) from women where

Re: [R] File Downloading Problem

2010-11-01 Thread Duncan Murdoch
On 01/11/2010 9:22 AM, Santosh Srinivas wrote: Dear Group, My code stopped working ... used to work till last week! sURL- http://www.nseindia.com/content/historical/EQUITIES/2010/NOV/cm01NOV2010bha v.csv.zip download.file(sURL,test.zip) trying URL

Re: [R] R shp(ESRI) point patterns and marks

2010-11-01 Thread Gary Nobles
All fixed: I scaned in the data from x.txt and y.txt then: P-ppp(x,y,c(...),c(...), marks=m) -- View this message in context: http://r.789695.n4.nabble.com/R-shp-ESRI-point-patterns-and-marks-tp3017683p3022165.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] number of items to replace is not a multiple of replacement length

2010-11-01 Thread Mipam Bruining
Hello, here are the results from using dput() on the objects in question. dput(blaah) structure(list(Insert single selection box title here, Insert slider bar title here, SingleSelect, Slider, 1, 50, list(Option a, Option b, Option c), list(0, 100)), .Dim = c(2L, 4L), .Dimnames =

Re: [R] write.csv changes the format of the date

2010-11-01 Thread David Winsemius
On Nov 1, 2010, at 9:14 AM, Santosh Srinivas wrote: Dear Group, Why does write.csv modify the date format when it write to a file. I have the following variable Param_Dat: dput(Param_Dat) structure(list(Last_Successful_Run = structure(1L, .Label = 30/10/2010, class = factor)), .Names =

Re: [R] sqldf error only on Unix not Windows

2010-11-01 Thread Gabor Grothendieck
On Mon, Nov 1, 2010 at 9:28 AM, Alex Bryant abry...@i-review.com wrote: Hello Group,                I am having trouble with the sqldf package on unix.  The same code works fine on windows. Silly Example script: # Load the package library(sqldf) # Use the titanic data set data(women)

Re: [R] connecting points into a smooth curve

2010-11-01 Thread Gavin Simpson
On Sun, 2010-10-31 at 23:18 -0700, tooblue wrote: If I have, say, five scatter points and want to connect them together into a smooth curve. I did plot(x,y,type=l), but the graph is five segments connecting with each other, but not a smooth curve. I wonder if there is a line type that is a

Re: [R] Possible memory leak in loop.

2010-11-01 Thread jim holtman
If you are running on Windows, you might want to use 'perfmon' to look at the memory usage of the process over time. You might also want to put calls to memory.size in your looping code to see if there are things you are doing in the code that might temporarily use a lot of space and maybe

[R] contiguity matrix (queens case)

2010-11-01 Thread Gary Nobles
i have a grid of points at regular intervals (taken from a raster). I want to create a listw matrix based on a queens case senario, like this 1 1 1 1 1 1 1 1 1 and also like this 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 and so on I want it to work with localG

Re: [R] write.csv changes the format of the date

2010-11-01 Thread Santosh Srinivas
Hi David, Its strange ... when I run this separately it works ... but I when I do in my function it changes the format. I just opened it using Notepad. -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: 01 November 2010 19:15 To: Santosh Srinivas Cc: 'Rhelp'

[R] sqldf hanging on macintosh - works on windows

2010-11-01 Thread GL
Have a long script that runs fine on windows (32 bit). When I try to run in on two different macs (64 bit), however, it hangs with identical behavior. I start with: library(sqldf) This results in messages: Loading required package: DBI Loading required package: RSQLite Loading required package:

Re: [R] Possible memory leak in loop.

2010-11-01 Thread Jonathan P Daily
Thank you, I will give that a try. -- Jonathan P. Daily Technician - USGS Leetown Science Center 11649 Leetown Road Kearneysville WV, 25430 (304) 724-4480 Is the room still a room when its empty? Does the room, the thing itself have purpose? Or do we, what's

Re: [R] write.csv changes the format of the date

2010-11-01 Thread jim holtman
works fine on 2.11.1 Windows: x - structure(list(Last_Successful_Run = structure(1L, .Label = 30/10/2010, + class = factor)), .Names = Last_Successful_Run, class = data.frame, + row.names = c(NA, + -1L)) x Last_Successful_Run 1 30/10/2010 str(x) 'data.frame': 1 obs. of 1

Re: [R] sqldf hanging on macintosh - works on windows

2010-11-01 Thread Gabor Grothendieck
On Mon, Nov 1, 2010 at 9:59 AM, GL pfl...@shands.ufl.edu wrote: Have a long script that runs fine on windows (32 bit). When I try to run in on two different macs (64 bit), however, it hangs with identical behavior. I start with: library(sqldf) This results in messages: Loading required

Re: [R] sqldf hanging on macintosh - works on windows

2010-11-01 Thread GL
added library(RH2) Still get message: Loading required package: tcltk Loading Tcl/Tk interface + directly after sqldf statement df.final - sqldf('select Date, Hour, x as RoomsInUse from df.possible.combos + left join df.aggregate using (Hour, Date)') There is no progress

Re: [R] File Downloading Problem

2010-11-01 Thread Santosh Srinivas
Nope Duncan ... no changes .. the same old way without a proxy ... actually the download.file is being returned 403 forbidden which is strange. These are just two lines that I am trying to run. sURL- http://www.nseindia.com/content/historical/EQUITIES/2010/NOV/cm01NOV2010bha v.csv.zip

Re: [R] transforming a dataset for association analysis RESHAPE2

2010-11-01 Thread Ajay Ohri
I get the following message when using the reshape2 package line tDat.m- melt(Dataset) Using Item, Subject as id variables tDatCast- acast(tDat.m,Subject~Item) Aggregation function missing: defaulting to length Note Problem Statement- convert dataframe Subject Item Score 1 Subject 1 Item

Re: [R] File Downloading Problem

2010-11-01 Thread Duncan Murdoch
On 01/11/2010 10:37 AM, Santosh Srinivas wrote: Nope Duncan ... no changes .. the same old way without a proxy ... actually the download.file is being returned 403 forbidden which is strange. These are just two lines that I am trying to run. sURL-

Re: [R] number of items to replace is not a multiple of replacement length

2010-11-01 Thread Mipam Bruining
Hello, I just wanted to say that I just stumbled upon the solution by accident! After your comment on lists I searched for some more information on vectors, lists and matrices. I read that using double ['s instead of singles drops the names of the dimensions used. I then gave

Re: [R] biglm: how it handles large data set?

2010-11-01 Thread Mike Marchywka
Date: Sun, 31 Oct 2010 00:22:12 -0700 From: tim@netzero.net To: r-help@r-project.org Subject: [R] biglm: how it handles large data set? I am trying to figure out why 'biglm' can handle large data set... According to the R document -

Re: [R] R 2.12.0 does not open in Tinn-R 2.3.5.2

2010-11-01 Thread Meyerink
Just another tip on how to change the path (it took me some time find out how: the Tinn-R help is not correct on this one): options/applications/R (click the tab) Gerdien Meyerink elpape wrote: Found the problem. Have to change the path in Tinn-R -- View this message in context:

Re: [R] sqldf hanging on macintosh - works on windows

2010-11-01 Thread Gabor Grothendieck
On Mon, Nov 1, 2010 at 10:32 AM, GL pfl...@shands.ufl.edu wrote: added library(RH2) Still get message: Loading required package: tcltk Loading Tcl/Tk interface + directly after sqldf statement   df.final - sqldf('select Date, Hour, x as RoomsInUse from df.possible.combos +    

[R] ggplot map bounds

2010-11-01 Thread Adrienne Wootten
To all, I'm working with code below to produce a map with station data plotted in points, but right now I'm having trouble with the mapping portion of this code states - data.frame(map(state, plot=FALSE,xlim= c(-85,-75),ylim=c(33,37))[c(x,y)]) usamap- ggplot(states)+geom_path(aes(x,y)) usamap

Re: [R] sqldf hanging on macintosh - works on windows

2010-11-01 Thread GL
library(sqldf) Loading required package: DBI Loading required package: RSQLite Loading required package: RSQLite.extfuns Loading required package: gsubfn Loading required package: proto Loading required package: chron debug(sqldf) df.final - sqldf('select Date, Hour, x as RoomsInUse

Re: [R] transforming a dataset for association analysis RESHAPE2

2010-11-01 Thread Ista Zahn
Hi Ajay, I'm not sure what the problem is, and I don't think your description is enough to reproduce it. This works fine for me library(reshape2) dat - read.table(textConnection('Subject Item Score Subject 1 Item 1 1 Subject 1 Item 2 0 Subject 1 Item 3 1 Subject 2 Item 1 1

Re: [R] File Downloading Problem

2010-11-01 Thread David Winsemius
On Nov 1, 2010, at 10:41 AM, Duncan Murdoch wrote: On 01/11/2010 10:37 AM, Santosh Srinivas wrote: Nope Duncan ... no changes .. the same old way without a proxy ... actually the download.file is being returned 403 forbidden which is strange. These are just two lines that I am trying to

Re: [R] ggplot map bounds

2010-11-01 Thread Ista Zahn
Hi Adrienne, I think usamap + xlim(c(-85, -75)) + ylim(c(33,37)) will do what you want. Best, Ista On Mon, Nov 1, 2010 at 10:52 AM, Adrienne Wootten amwoo...@ncsu.edu wrote: To all, I'm working with code below to produce a map with station data plotted in points, but right now I'm having

Re: [R] File Downloading Problem

2010-11-01 Thread Santosh Srinivas
It's strange and the internet connection is fine because I am able to get data from yahoo. This was working till just yesterday ... strange if the website is creating issues with public access of basic data! -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent:

Re: [R] ggplot map bounds

2010-11-01 Thread Adrienne Wootten
Oh this is excellent, Thanks! Adrienne On Mon, Nov 1, 2010 at 11:25 AM, Ista Zahn iz...@psych.rochester.eduwrote: Hi Adrienne, I think usamap + xlim(c(-85, -75)) + ylim(c(33,37)) will do what you want. Best, Ista On Mon, Nov 1, 2010 at 10:52 AM, Adrienne Wootten amwoo...@ncsu.edu

[R] R's text mining package VSM support

2010-11-01 Thread Shivani Rao
I have been using R's text mining package and its really a great tool. I have not found retrieval support or maybe there are functionalities I am missing. How can a simple VSM model be implemented using the R's text mining package? Your help is appreciated. -- Research Scholar, School of

[R] Post-processing of approximated irregular time series

2010-11-01 Thread Salim Alexander (salimale)
Hi all, Issue: I merged two zoo objects (a regular and an irregular). After the merge I used the function 'na.approx' to have also values in the resolution of the regular time series. Problem: After approximation some rows at the beginning or at the end of the zoo objects disappear due to the

Re: [R] Plots inside a Plot

2010-11-01 Thread D Kelly O'Day
Here's a quick example I posted on my blog. http://chartsgraphs.wordpress.com/2009/05/06/r-lets-you-put-chart-inside-chart/ link Hope it helps. http://r.789695.n4.nabble.com/file/n3022363/chart_inside_chart.png -- View this message in context:

Re: [R] sqldf hanging on macintosh - works on windows

2010-11-01 Thread Gabor Grothendieck
On Mon, Nov 1, 2010 at 10:55 AM, GL pfl...@shands.ufl.edu wrote: library(sqldf) Loading required package: DBI Loading required package: RSQLite Loading required package: RSQLite.extfuns Loading required package: gsubfn Loading required package: proto Loading required package: chron

Re: [R] Post-processing of approximated irregular time series

2010-11-01 Thread Gabor Grothendieck
On Mon, Nov 1, 2010 at 11:14 AM, Salim Alexander (salimale) salim...@students.zhaw.ch wrote: Hi all, Issue: I merged two zoo objects (a regular and an irregular). After the merge I used the function 'na.approx' to have also values in the resolution of the regular time series. Problem:

Re: [R] transfer string to expression

2010-11-01 Thread Bert Gunter
If it's not already clear, perhaps this slight variation might help explain what's happening: b0-1 b1-1 x-1 str2expr-function(y){eval(parse(text=y))} ## Note change from x to y here test1-b0+b1*sqrt(x) str2expr(test1) Cheers, Bert On Sun, Oct 31, 2010 at 1:58 PM, Duncan Murdoch

Re: [R] sqldf hanging on macintosh - works on windows

2010-11-01 Thread Marc Schwartz
On Nov 1, 2010, at 10:55 AM, Gabor Grothendieck wrote: On Mon, Nov 1, 2010 at 10:55 AM, GL pfl...@shands.ufl.edu wrote: library(sqldf) Loading required package: DBI Loading required package: RSQLite Loading required package: RSQLite.extfuns Loading required package: gsubfn Loading

[R] Error message when creating a dataframe

2010-11-01 Thread ANJAN PURKAYASTHA
Hi, I'm creating a data frame of 24 columns and 45101 rows. Here is the error I get: R(147,0xa04d8720) malloc: *** mmap(size=184320) failed (error code=12) *** error: can't allocate region *** set a breakpoint in malloc_error_break to debug Any idea of what I can do to trouble-shoot? Attached is

Re: [R] Error message when creating a dataframe

2010-11-01 Thread Erik Iverson
I suggest using the most recent version of R (2.12.0 I believe) and providing a reproducible example, showing us exactly how you are creating this data.frame (assuming it still exhibits the behavior). --Erik ANJAN PURKAYASTHA wrote: Hi, I'm creating a data frame of 24 columns and 45101 rows.

Re: [R] Plots inside a Plot

2010-11-01 Thread Uwe Ligges
On 01.11.2010 12:20, Barry Rowlingson wrote: On Mon, Nov 1, 2010 at 11:10 AM, Uwe Ligges lig...@statistik.tu-dortmund.de wrote: Not in R base graphics, but you can do easily with the grid package. You can do anything in R base graphics! Sometimes it's been done for you, sometimes you

[R] Seek some help on Statistics

2010-11-01 Thread Ron Michael
Hi friends, I would really appreciate if somebody helps me give better understanding on subject matter. Suppose I have a set of Integrated variables (say max order is 1). I understand there may be some cases when there could be some linear combinations which are stationary and this phenomena is

Re: [R] how to save this result in a vector

2010-11-01 Thread Changbin Du
Thanks, Erich! On Mon, Nov 1, 2010 at 4:55 AM, Erich Neuwirth erich.neuwi...@univie.ac.atwrote: My guess is that what you want probably is best done by using ecdf. You might want to look it up in the docs. 1-ecdf(test)(x) Will give you the percentage of values in test larger than x. On

Re: [R] Plots inside a Plot

2010-11-01 Thread Bert Gunter
Petr is correct,I believe, but see also ?layout for a (newer and) more flexible approach to splitting the screen into a non-matricial arrangement to overlay several plots. ?split.screen can also do this, but is somewhat clumsier to use imo. Cheers, Bert On Mon, Nov 1, 2010 at 4:27 AM, Petr

Re: [R] sqldf hanging on macintosh - works on windows

2010-11-01 Thread Gabor Grothendieck
On Mon, Nov 1, 2010 at 12:10 PM, Marc Schwartz marc_schwa...@me.com wrote: On Nov 1, 2010, at 10:55 AM, Gabor Grothendieck wrote: On Mon, Nov 1, 2010 at 10:55 AM, GL pfl...@shands.ufl.edu wrote: library(sqldf) Loading required package: DBI Loading required package: RSQLite Loading

Re: [R] File Downloading Problem

2010-11-01 Thread Alex Gutteridge
On Mon, 1 Nov 2010 20:57:47 +0530, Santosh Srinivas santosh.srini...@gmail.com wrote: It's strange and the internet connection is fine because I am able to get data from yahoo. This was working till just yesterday ... strange if the website is creating issues with public access of basic data!

Re: [R] File Downloading Problem

2010-11-01 Thread Duncan Temple Lang
I got this working almost immediately with RCurl although with that one has to specify any value for the useragent option, or the same error occurs. The issue is that R does not add an Accept entry to the HTTP request header. It should add something like Accept: *.* Using RCurl, u =

[R] Post-processing of approximated irregular time series

2010-11-01 Thread Alexander Salim
Hi all, Issue: I merged two zoo objects (a regular and an irregular). After the merge I used the function 'na.approx' to have also values in the resolution of the regular time series. Problem: After approximation some rows at the beginning or at the end of the zoo objects disappear due to

Re: [R] File Downloading Problem

2010-11-01 Thread Santosh Srinivas
Thanks Duncan and Alex. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of Duncan Temple Lang Sent: 01 November 2010 22:34 To: r-help@r-project.org Subject: Re: [R] File Downloading Problem I got this working almost immediately with

[R] 32-bit packages on 64-bit Windows

2010-11-01 Thread Lee Hachadoorian
Are 32-bit precompiled packages supposed to work on 32-bit R installed on 64-bit Windows? I *think* the Windows R FAQ (2.28 Should I run 32-bit or 64-bit R?) implies that they will work, but I am having trouble getting certain packages to work. Before I spend more time on it or start asking

Re: [R] 32-bit packages on 64-bit Windows

2010-11-01 Thread Uwe Ligges
Yes, 32-bit precompiled packages work with 32-bit R binaries on 64-bit Windows. Best, Uwe Ligges On 01.11.2010 18:40, Lee Hachadoorian wrote: Are 32-bit precompiled packages supposed to work on 32-bit R installed on 64-bit Windows? I *think* the Windows R FAQ (2.28 Should I run 32-bit or

[R] how to get all possible combinations including the diagonal using combn

2010-11-01 Thread Louis Plough
Hi, I am trying to generate all possible permutations (choose 2) of a vector, b, for example--using 'combn' the combinations in only one direction are generated... b-c(.1,.2,.3) combn(b,2) [,1] [,2] [,3] [1,] 0.1 0.1 0.2 [2,] 0.2 0.3 0.3 [1,] 0.1 0.2 0.3

Re: [R] 32-bit packages on 64-bit Windows

2010-11-01 Thread Duncan Murdoch
On 01/11/2010 1:40 PM, Lee Hachadoorian wrote: Are 32-bit precompiled packages supposed to work on 32-bit R installed on 64-bit Windows? I *think* the Windows R FAQ (2.28 Should I run 32-bit or 64-bit R?) implies that they will work, but I am having trouble getting certain packages to work.

Re: [R] how to get all possible combinations including the diagonal using combn

2010-11-01 Thread Marc Schwartz
On Nov 1, 2010, at 12:46 PM, Louis Plough wrote: Hi, I am trying to generate all possible permutations (choose 2) of a vector, b, for example--using 'combn' the combinations in only one direction are generated... b-c(.1,.2,.3) combn(b,2) [,1] [,2] [,3] [1,] 0.1 0.1 0.2 [2,] 0.2

[R] Function not working

2010-11-01 Thread Thomas Parr
Below is the (really basic) script I am creating to call a function that sets the working directory, determines the number of files it will need to process in that directory, and creates a mask. A for loop will eventually be added that will loop through the files (arrays) in that directory

Re: [R] Function not working

2010-11-01 Thread Duncan Murdoch
On 01/11/2010 12:56 PM, Thomas Parr wrote: Below is the (really basic) script I am creating to call a function that sets the working directory, determines the number of files it will need to process in that directory, and creates a mask. A for loop will eventually be added that will loop

[R] How to stop showing messages while loading package?

2010-11-01 Thread Christofer Bogaso
Hi, is there any way to stop showing all messages which sometimes come while loading a packages? For example let say I want to load fBasics package. So I get following notices: library(fBasics) Loading required package: MASS Loading required package: timeDate Loading required package: timeSeries

Re: [R] How to stop showing messages while loading package?

2010-11-01 Thread Erik Iverson
Simply read the ?library help page, where you'll find under Details: To suppress messages during the loading of packages use ‘suppressPackageStartupMessages’: this will suppress all messages from R itself but not necessarily all those from package authors. Christofer Bogaso

Re: [R] transforming a dataset for association analysis RESHAPE2

2010-11-01 Thread Dennis Murphy
Hi: xtabs() also works in this case: dat - read.table(textConnection('Subject Item Score + Subject 1 Item 1 1 + Subject 1 Item 2 0 + Subject 1 Item 3 1 + Subject 2 Item 1 1 + Subject 2 Item 2 1 + Subject 2 Item 3 0'), header=TRUE) closeAllConnections() acast(dat,

Re: [R] Mean and individual growth curve trajectories

2010-11-01 Thread Dennis Murphy
Hi: Here's another version of the plot using ggplot2: g - ggplot(sleepstudy, aes(x = Days, y = Reaction, group = Subject, colour = Subject)) g + geom_line(size = 1) + geom_smooth(aes(group = 1), size = 2) + theme_bw() To get rid of the legend, if you so desire, use g + geom_line(size = 1) +

[R] how to view the top 20 lines in a long dataset

2010-11-01 Thread Louis Plough
Hi, I am simply looking for the function that will allow you to look at the top 20 lines of a long dataset? LP On Mon, Nov 1, 2010 at 10:46 AM, Louis Plough lplo...@usc.edu wrote: Hi, I am trying to generate all possible permutations (choose 2) of a vector, b, for example--using 'combn' the

Re: [R] Plots inside a Plot

2010-11-01 Thread D Kelly O'Day
here's a second example using basic R graphics. I update this chart daily. http://processtrends.com/images/RClimate_UAH_Ch5_latest.png link http://r.789695.n4.nabble.com/file/n3022678/RClimate_UAH_Ch5_latest.png Here's what ?par says about par(fig) fig A numerical vector of the form

Re: [R] how to view the top 20 lines in a long dataset

2010-11-01 Thread Erik Iverson
?head or just df[1:20, ] Louis Plough wrote: Hi, I am simply looking for the function that will allow you to look at the top 20 lines of a long dataset? LP On Mon, Nov 1, 2010 at 10:46 AM, Louis Plough lplo...@usc.edu wrote: Hi, I am trying to generate all possible permutations (choose 2)

Re: [R] how to view the top 20 lines in a long dataset

2010-11-01 Thread Søren Højsgaard
See ?head Regards Søren Fra: r-help-boun...@r-project.org [r-help-boun...@r-project.org] P#229; vegne af Louis Plough [lplo...@usc.edu] Sendt: 1. november 2010 20:40 Til: r-help@r-project.org Emne: [R] how to view the top 20 lines in a long dataset Hi,

[R] foreloop? aggregating time series data into groups

2010-11-01 Thread blurg
I have a data set similar to the set below where 1 and 2 indicate test results and 0 indicates time points in between where there are no test results. I would like to allocate the time points leading up to a test result with the value of the test result. What I have: What I want: 1

[R] Extract node names from BinaryTree in package party

2010-11-01 Thread Sven Garbade
Hi there, I need to extract the variable names from all nodes (except the terminal nodes) from a ctree object, e.g. library(party) mammoct - ctree(ME ~ ., data = mammoexp) plot(mammoct) how can I extract the varnames from node 1 (SYMPT) and node 3 (PB) from the fitted object mammoct? Many

  1   2   >