[R] how to make multiple curves in one plot

2010-11-01 Thread karena
hello, plot(running(-log10(results_chr_p$empi_p), fun=mean, width=41, font.axis=4, by=1),type="l",cex=0.1, ylab="-Log(p)", ylim=c(0,5.0), xlab=" ", lwd=2) this is my code to make a plot. The problem is, now I want to add one more curve to the plot, which is for another variable in the data.fra

Re: [R] Using R for Production - Discussion

2010-11-01 Thread baptiste auguie
Hi, Regarding your '10 commandments' in Q3, you may find useful tips in "the R inferno" by Pat Burns. HTH, baptiste On 2 November 2010 05:04, Santosh Srinivas wrote: > Hello Group, > > This is an open-ended question. > > Quite fascinated by the things I can do and the control I have on my > ac

Re: [R] how to compare two datasets in R>?

2010-11-01 Thread Santosh Srinivas
Take a look at ?merge for doing such join operations. (I believe that should help) If you had provided a sample of your datasets using dput, I would have checked that for you. -Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of song song

[R] how to compare two datasets in R>?

2010-11-01 Thread song song
hi, everybody, my question is: suppose I have two data sets, set A is large and have variables like ID, Gender, Income. Set B is small and suppose only has ID. Now I want to get a subset from data set A which contains ID from Set B. How to do this in R>? Is there any commands to do this? Than

[R] Need help with nlme code

2010-11-01 Thread Muhammad Yaseen
*Dear All,* * * *I got a very simple for you. Please help me to come up with the R code in nlme for the following SAS code:* * * *{* proc mixed data=spatvar; model yield = ; repeated / subject = intercept type= sp(sph)(row col); parms (0 to 10 by 2.5) (1 to 10 by

[R] Strings from different locale

2010-11-01 Thread steven mosher
I'm doing some test processing of a cvs file that appears to use a different locale from my machine. I get the following warning: input string 1 is invalid in this locale My locale is US. Is this simply a matter of changing my locale to 'all; locales? I don't know what locale the string is in,

Re: [R] how to make multiple curves in one plot

2010-11-01 Thread Remko Duursma
Dear Karena, Please read the posting guide : your example cannot be reproduced because we don't know in which package the 'running' function resides. Generally speaking, use 'points' or 'lines' to add points or lines to the current device. greetings, remko -- View this message in context: h

Re: [R] arguments must have the same length

2010-11-01 Thread Michael Sumner
It's not night time everywhere. The error message suggests that your arguments have different lengths, and that this is required. Perhaps a function that takes two vector arguments? Please provide the code you are running, hopefully with a reproducible example as per the posting guide. BTW, plea

[R] arguments must have the same length

2010-11-01 Thread Shari Kay Hunter
Hi, anyone up in the night working? Thanks for being there. I'm getting this error message "arguments must have the same length." Can't seem to straighten it out. Any suggestions? Thanks so much! PS I saw that someone asked a similar question, but I don't see that anyone had posted a reply... --

[R] Using R for Production - Discussion

2010-11-01 Thread Santosh Srinivas
Hello Group, This is an open-ended question. Quite fascinated by the things I can do and the control I have on my activities since I started using R. I basically have been using this for analytical related work off my desktop. My experience has been quite good and most issues where I need to inve

Re: [R] Please help me about Monte Carlo Permutation

2010-11-01 Thread Chitra
yes, and also plotting them. Thanks. 2010/11/1 Łukasz Ręcławowicz [via R] < ml-node+3022778-293096829-200...@n4.nabble.com > > 2010/10/29 Chitra <[hidden > email]> > > > > > > I am sorry I got lost here. > > > Me too. So you want to do a

Re: [R] File Downloading Problem

2010-11-01 Thread Santosh Srinivas
Just for info how did you guys figure out that useragent was the problem? -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

Re: [R] Underline only colnames in grid.table

2010-11-01 Thread Paul Murrell
Hi On 29/10/2010 7:55 p.m., robbert blonk wrote: Dear all, I would like to underline only the colnames in a table as e.g. grid.draw(tableGrob(head(iris, 10), name="test")) I can imagine you should use grid.edit or so, bu I can't figure out how... Does anyone have a suggestion? Unfortunate

Re: [R] question in using nlme and lme4 for unbalanced data

2010-11-01 Thread Ben Bolker
Chi Yuan email.arizona.edu> writes > > Hello: > I need some help about using mixed for model for unbalanced data. I > have an two factorial random block design. It's a ecology > experiment. My two factors are, guild removal and enfa removal. Both > are two levels, 0 (no removal), 1 (removal). I

Re: [R] question in using nlme and lme4 for unbalanced data

2010-11-01 Thread Dennis Murphy
Hi: On Mon, Nov 1, 2010 at 3:59 PM, Chi Yuan wrote: > Hello: > I need some help about using mixed for model for unbalanced data. I > have an two factorial random block design. It's a ecology > experiment. My two factors are, guild removal and enfa removal. Both > are two levels, 0 (no removal),

Re: [R] Determining a basal correct count

2010-11-01 Thread David Herzberg
Phil, when I run: apply(x,1,function(x)if(!any(x==1)) 0 else rle(x[which(x==1)[1]:length(x)])$lengths[1]) on my data set it returns: ERROR: length(x)])$lengths[1] Any thoughts? -Original Message- From: Phil Spector [mailto:spec...@stat.berkeley.edu] Sent: Thursday, October 28, 2010 4

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

2010-11-01 Thread Gabor Grothendieck
On Mon, Nov 1, 2010 at 3:40 PM, 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 Try this: head(iris) head(iris, 20) View(iris) -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1

[R] question in using nlme and lme4 for unbalanced data

2010-11-01 Thread Chi Yuan
Hello: I need some help about using mixed for model for unbalanced data. I have an two factorial random block design. It's a ecology experiment. My two factors are, guild removal and enfa removal. Both are two levels, 0 (no removal), 1 (removal). I have 5 blocks. But within each block, it's unbala

Re: [R] spliting first 10 words in a string

2010-11-01 Thread David Winsemius
On Nov 1, 2010, at 5:52 PM, Phil Spector wrote: - Does this example do what you want? mysentences = c('Here is a sentence that has a bunch of words in it','Here is another sentence that also has a bunch of words','I have yet another sentence and it also has a whole bunch of words') data

[R] multicore package: help

2010-11-01 Thread Fahim M
I have matrices as below: a <- matrix(c(1:10, 11, 12), 3,4) aa <- data.frame(a) b <- matrix(c(10:20, 21), 4,3) bb <- data.frame(b) ... and many more matrices. st = list(aa,bb, . ) mclapply(st, FUN, mc.cores=6); #this function apply the function to the elements of the list 'aa', 'bb'...etc

Re: [R] spliting first 10 words in a string

2010-11-01 Thread Phil Spector
Matevž - Does this example do what you want? mysentences = c('Here is a sentence that has a bunch of words in it','Here is another sentence that also has a bunch of words','I have yet another sentence and it also has a whole bunch of words') data.frame(mysentences,do.call(rbind,lapply(strsp

Re: [R] spliting first 10 words in a string

2010-11-01 Thread Matevž Pavlič
...I would like i.e. split this sentence from field Opis in data.frame : Opis : "I have a sentense with ten words", so that it would conver to something like this : Opis : "I have a sentense with then words"; Column1 : "I"; Column2 : "have"; Column3 : "a"; Column4 : "sentense"; Column5: "with";

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

2010-11-01 Thread Felipe Carrillo
is this what you want? head(yourdataset,20)   Felipe D. Carrillo Supervisory Fishery Biologist Department of the Interior US Fish & Wildlife Service California, USA - Original Message > From: Louis Plough > To: r-help@r-project.org > Sent: Mon, November 1, 2010 12:40:19 PM > Subject:

Re: [R] spliting first 10 words in a string

2010-11-01 Thread Matevž Pavlič
Hi, I am sorry, will try to be more exact from now on... I have a data.frame with a field called Opis. IT contains sentenses that I would like to split in words or fields in data.frame...when I say columns I mean as in Excel table. I would like to split "Opis" into ten fields from the first

[R] Error message in fit.mult.impute (Hmisc package)

2010-11-01 Thread Kim Fernandes
Hello, I would like to use the aregImpute and fit.mult.impute to impute missing values for my dataset and then conduct logistic regression analyses on the data, taking into account that we imputed values. I have no problems imputing the values using aregImpute, but I am getting an error at the fi

Re: [R] foreloop? aggregating time series data into groups

2010-11-01 Thread jim holtman
you can use na.locf in the zoo package: > require(zoo) > x<-c(0,2,0,1,0,0,0,0,1,0,1,0,0,0,2,1,0,0,0,2,0,0,0,1) > # replace zeros with NA > x[x == 0] <- NA > x [1] NA 2 NA 1 NA NA NA NA 1 NA 1 NA NA NA 2 1 NA NA NA 2 NA NA NA 1 > na.locf(x, fromLast = TRUE) [1] 2 2 1 1 1 1 1 1 1 1 1 2 2 2

Re: [R] spliting first 10 words in a string

2010-11-01 Thread David Winsemius
On Nov 1, 2010, at 4:39 PM, Matevž Pavlič wrote: Hi all, I have a columnn with text that has quite a few words in it. I would like to split these words in separate columns, but just first ten words in the string. Is that possible in R? Not sure what a column means to you. It's not a

[R] RODBC - odbcConnectExcel2007 headers issue

2010-11-01 Thread Thomas Parr
Apologies if this is already answered elsewhere, but I could not find the answer searching the archives. I am trying to bring my data in from an .xlsx file. The data of interest is an n x m array, but it is preceded with ~2 columns and 30 rows of instrumental "information." An abbreviated example

Re: [R] foreloop? aggregating time series data into groups

2010-11-01 Thread Joshua Wiley
Hi, Welcome to R and the help list! On Mon, Nov 1, 2010 at 12:34 PM, blurg wrote: > > 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

Re: [R] Please help me about Monte Carlo Permutation

2010-11-01 Thread Łukasz Ręcławowicz
2010/10/29 Chitra > > I am sorry I got lost here. Me too. So you want to do a MC test for Pearson's product-moment correlation, right...? -- Mi³ego dnia [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://st

[R] spliting first 10 words in a string

2010-11-01 Thread Matevž Pavlič
Hi all, I have a columnn with text that has quite a few words in it. I would like to split these words in separate columns, but just first ten words in the string. Is that possible in R? Thank you, m [[alternative HTML version deleted]] _

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

2010-11-01 Thread Lee Hachadoorian
Thanks very much for the information. I also see that http://cran.r-project.org/bin/windows/contrib/2.12/ReadMe has information on some of the packages I'm interested in. Thanks for the help, --Lee On Mon, Nov 1, 2010 at 1:48 PM, Duncan Murdoch wrote: > On 01/11/2010 1:40 PM, Lee Hachadoorian wr

Re: [R] foreloop? aggregating time series data into groups

2010-11-01 Thread David Winsemius
On Nov 1, 2010, at 3:34 PM, blurg wrote: 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 re

[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

[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

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å 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, I am

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 wrote: Hi, I am trying to generate all possible permutations (choose 2) of a vector, b,

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 c(x1

[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 wrote: > Hi, > I am trying to generate all possible permutations (choose 2) of a vector, > b, for example--using 'combn' the combinations

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) +

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) > closeAllCon

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 wrote

[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] 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 throu

[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 perfo

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

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. Befor

[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 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 64

[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 questio

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

[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 t

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 = "http:/

Re: [R] File Downloading Problem

2010-11-01 Thread Alex Gutteridge
On Mon, 1 Nov 2010 20:57:47 +0530, "Santosh Srinivas" 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! > It's checking you

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 wrote: > On Nov 1, 2010, at 10:55 AM, Gabor Grothendieck wrote: > >> On Mon, Nov 1, 2010 at 10:55 AM, GL wrote: >>> >>> library(sqldf) >>> Loading required package: DBI >>> Loading required package: RSQLite >>> Loading required package: RSQ

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 PIKA

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 wrote: > 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,

[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] 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 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 y

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. He

[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 th

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 wrote: >> >> >>> >>> library(sqldf) >> Loading required package: DBI >> Loading required package: RSQLite >> Loading required package: RSQLite.extfuns >> Loading required package: gsubfn >> Loading req

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 wrot

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) 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: After approximation so

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 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 >> debug(sqldf)

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: http://r.789695.n4.nabble.com/Plots-inside-a-Pl

[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

[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 Electri

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 wrote: > 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 > wrote: > > To all, > > > > I'm wor

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: 01

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 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 trouble with th

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 r

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" "I

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

[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)) u

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 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" > +     left

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] 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 docume

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 parameterList[aCounte

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<- "http://www.nseindia.com/content/historical/

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 I

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" downlo

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 s

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 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 package: DBI >

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

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 th

[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] 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' Su

[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 fr

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 fragmen

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

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 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) > colna

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] 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), .

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] 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 'http://www.nseindia.com/content/histo

[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 he

[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'

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

[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 =

  1   2   >