Re: [R] How to Group Categorical data in R?

2012-03-18 Thread Manish Gupta
It is working fine. Thanks -- View this message in context: http://r.789695.n4.nabble.com/How-to-Group-Categorical-data-in-R-tp4477622p4483565.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list https:/

[R] Output formatting in Latex and R

2012-03-18 Thread Manish Gupta
I am working on Latex and R and using following code. <>= infile<-read.table("test.txt",sep="\t") Col3 <- unique(infile[,3]) LCol3 <- length(Col3) for (i in 1:LCol3) { print(paste("Column", Col3[i])) print(infile[infile[,3]==Col3[i],-3]) } @ I am getting following output. 1] "Column C" V1 V2

[R] How to use R script in VB?

2012-03-18 Thread Dong-Joon Lim
Hello R friends, I want to use my R script in VB to make macro in Excel. I tried with RExcel but it seems to me that this package is just GUI API and I still have to run(connect) R to use the script. Google tells me there are some ways to make R script as an independent library/module/header so th

Re: [R] randomly subsample rows from subsets

2012-03-18 Thread Rui Barradas
Hello, Try text=" fish fam length 1 a 71.46 2 a 71.06 3 a 62.94 4 b 79.46 5 b 52.38 6 b 56.78 7 b 92.08 8 c 96.86 9 d 98.09 10 d 17.23 11 d 98.35 12 d 82.43 13 e 83.85 14 e 33.92 15 e 23.16 16 e 31.39 17 e 57.08 18 e 27.05 19 f 62.38 20 f 83.21 21 f 18.72 22 f 84.32 23 g 15.99 24 h 40.33 25 h 92.

[R] Sankey Diagrams in R

2012-03-18 Thread Eric Fail
Dear R-list, I am trying to visualize where the dropout happens in our patient flow. We are currently using traditional flowcharts and it bothers me that I can't visualize both the percentage and the flow in one diagram. The other day I came across some interesting diagrams doing exactly what I

Re: [R] Problem reading mixed CSV file

2012-03-18 Thread Ashish Agarwal
This is quite a CPu consuming process. My system got hung up for the big file I have. Within the for loop that you have suggested, can't I have a case statement for different value of nfields to be read and specify what format does the variable needs to be read? something like case # input format

Re: [R] a very simple question

2012-03-18 Thread David Winsemius
On Mar 18, 2012, at 4:43 PM, Dajiang Liu wrote: Dear All, I have a seemingly very simple question, but I just cannot figure out the answer. I attempted to run the following:a=0.1*(1:9);which(a==0.3);it returns integer(0). But obviously, the third element of a is equal to 0.3. I must have

[R] Plotting Rickers curve in R with confidence intervals

2012-03-18 Thread kyoung
Hello, I am both new to this forum and to R. Therefore apologies if I am posting a request for help for something overly simple and/or that has already been covered in past posts. I would really appreciate some simple and straightforward help on how to plot a Rickers growth curve with confidence

[R] a very simple question

2012-03-18 Thread Dajiang Liu
Dear All, I have a seemingly very simple question, but I just cannot figure out the answer. I attempted to run the following:a=0.1*(1:9);which(a==0.3);it returns integer(0). But obviously, the third element of a is equal to 0.3. I must have missed something. Can someone kindly explain why? Than

[R] hypergeometric function in ‘ mvtnorm’

2012-03-18 Thread statfan
Is there any way to know how the "dmvt" function computes the hypergeometric function needed in the calculation for the density of multivariate t distribution? -- View this message in context: http://r.789695.n4.nabble.com/hypergeometric-function-in-mvtnorm-tp4483730p4483730.html Sent from the

[R] randomly subsample rows from subsets

2012-03-18 Thread aly
Hi, I have a list of 1787 fish from 948 full-sib families and their lengths. My table looks like this, fishfam length 1 a 71.46 2 a 71.06 3 a 62.94 4 b 79.46 5 b 52.38 6 b 56.78 7 b 92.08 8 c 9

Re: [R] Importing files

2012-03-18 Thread jim holtman
The file that you set was readable. The majority of the fields were comma separated, so I use the comma as the field separator in the 'read.table'. The 'tab' character appears to be the separator between the date and time and this does not prevent reading in the data, or parsing it later. So her

[R] glm: getting the confidence interval for an Odds Ratio, when using predict()

2012-03-18 Thread Dominic Comtois
Say I fit a logistic model and want to calculate an odds ratio between 2 sets of predictors. It is easy to obtain the difference in the predicted logodds using the predict() function, and thus get a point-estimate OR. But I can't see how to obtain the confidence interval for such an OR. For exa

Re: [R] bias sampling

2012-03-18 Thread David
Thank you for your time, Thomas . In case the questioner is not aware of a few facts... Thomas Lumley is both a) the person who originally ported tThereau's "survival" package to R and was also its maintainer for many years , and b) the author of the "survey" package -- David Sent from my iPho

Re: [R] Extracting numbers from a character variable of different types

2012-03-18 Thread David
On Mar 18, 2012, at 3:17 PM, Daniel Malter wrote: > Assume your year value is > > x<-007/A > > You want to replace all non-numeric characters (i.e. letters and > punctuation) and all zeros with nothing. > > gsub('[[:alpha:]]|[[:punct:]]|0','',x) > > Let's say you have a vector with both mo

Re: [R] R crashes due to stats.dll

2012-03-18 Thread Duncan Murdoch
On 12-03-17 8:15 PM, Ted Stankowich wrote: Hello! I've been running a looped AIC analysis using several modules including ape, nlme, and MuMIn, and during one particularly long analysis, R (ver 2.14.12) crashes several minutes into the routine with the simple message "R for windows GUI front-end

Re: [R] Importing files

2012-03-18 Thread jim holtman
You attachment never made it through. Try sending it as '.txt' file. If the file is using both tabs and commas on the same line, then you may have to use 'readLines' to read it in, and then 'strsplit' to split out the different elements. On Sun, Mar 18, 2012 at 4:13 PM, Santiago Guallar wrote: >

Re: [R] Removing session variables

2012-03-18 Thread Duncan Murdoch
On 12-03-18 5:31 AM, Ajay Askoolum wrote: If I create a data.frame using session variables as follows: classResults<-data.frame(subjEnglish,gradeEnglish,subjFrench,gradeFrench,row.names=studentName) How can I remove the variables? I tried rm(names(classResults)) Error in rm(names(classResul

Re: [R] bias sampling

2012-03-18 Thread Thomas Lumley
On Mon, Mar 19, 2012 at 10:27 AM, David Winsemius wrote: > > On Mar 18, 2012, at 3:54 PM, Thomas Lumley wrote: > >> On Mon, Mar 19, 2012 at 6:34 AM, David Winsemius >> wrote: >>> >>> >>> On Mar 16, 2012, at 1:09 PM, niloo javan wrote: >>> hi i want to analyze Right Censore-Length bias d

[R] Importing files

2012-03-18 Thread Santiago Guallar
Hello, I'm trying to import into R files that contain data downloaded from logger devices as files with the following formats: .act .lig .trj .trn These files are essentially text files but use both tabs and commas as separators. I've tried the function scan: 1) scan("filename.act", what=charact

Re: [R] bias sampling

2012-03-18 Thread David Winsemius
On Mar 18, 2012, at 3:54 PM, Thomas Lumley wrote: On Mon, Mar 19, 2012 at 6:34 AM, David Winsemius > wrote: On Mar 16, 2012, at 1:09 PM, niloo javan wrote: hi i want to analyze Right Censore-Length bias data under cox model with covariate. what is the package ? I initially left this qu

Re: [R] word frequency count

2012-03-18 Thread David Winsemius
On Mar 18, 2012, at 3:07 PM, mail me wrote: Hi: Thanks for reply. I am using the following statement res <- with(df, table(paste(item1, item2, sep=', ')) ) to get the frequency counts of the rows, which gives the following output: milk,bread 2 bread,butter 1 beer,diaper 3 milk,bread 2 Y

[R] Cajun Code-a-thon in Lafayette LA 4/27 - 4/28

2012-03-18 Thread Erin Hodgess
Dear R People: Is anyone going to attend the Cajun Code-a-thon in Lafayette, LA from 4/27 - 4/28, please? I'd like to set up a team using R. You can reply to me if you wish. Thanks, Erin -- Erin Hodgess Associate Professor Department of Computer and Mathematical Sciences University of Housto

Re: [R] Faster way to implement this search?

2012-03-18 Thread William Dunlap
> My current question is there a way to perform the same count, but with > an arbitrary size pattern. In other words, instead of a fixed pattern > size of 3, could I have a pattern size of 4, 5, 6, ..., 30 any of which > that could be run without changing the script? Of course you cannot do this

Re: [R] plotting border over map

2012-03-18 Thread Ray Brownrigg
On Sat, 17 Mar 2012, uday wrote: > I am using following codes to plot map > > library(sp) > library(rgdal) > library(maps) > library(gplots) > library(clim.pact) > library(fields) > source("/R/PlotGridded2DMap.R") > source("/R/image.plot.fix.R") > source("/R/image.plot.plt.fix.r") > > seasonal_pl

[R] Help with dlply, loop and column names

2012-03-18 Thread Igor Sosa Mayor
Hi, I have a dataframe basically like this: > head(asturias.gen2011[,c(1,4,9:14)]) municipio total upyd psoeppiu factipo 440 Allande 2031 1.44 31.10 39.75 4.01 21.62 1000-1 443Aller 12582 1.37 33.30 37.09 15.53 10.35 1-5000

Re: [R] bias sampling

2012-03-18 Thread Thomas Lumley
On Mon, Mar 19, 2012 at 6:34 AM, David Winsemius wrote: > > On Mar 16, 2012, at 1:09 PM, niloo javan wrote: > >> hi >> i want to analyze Right Censore-Length bias data under cox model with >> covariate. >> what is the package ? > > > I initially left this question alone because I thought there mig

Re: [R] word frequency count

2012-03-18 Thread mail me
Hi: Thanks for reply. I am using the following statement res <- with(df, table(paste(item1, item2, sep=', ')) ) to get the frequency counts of the rows, which gives the following output: milk,bread 2 bread,butter 1 beer,diaper 3 milk,bread 2 But I need to extract from the above result two vector

Re: [R] Extracting numbers from a character variable of different types

2012-03-18 Thread Daniel Malter
Assume your year value is x<-007/A You want to replace all non-numeric characters (i.e. letters and punctuation) and all zeros with nothing. gsub('[[:alpha:]]|[[:punct:]]|0','',x) Let's say you have a vector with both month and year values (you can separate them). Now we need to identify the c

Re: [R] assign a value to an element

2012-03-18 Thread David Winsemius
On Mar 18, 2012, at 2:24 PM, Marc Girondot wrote: Assign can be used to set a value to a variable that has name as a value of another variable. Example: name<-"essai" assign(name, "plouf") essai [1] "plouf" OK. But how to do the same when it is only an element of a vector, data frame an

Re: [R] assign a value to an element

2012-03-18 Thread William Dunlap
Do not use assign(). It is a relic from the 1980s. Instead, decide where you want your variables to live, perhaps in a list, where<-list() or perhaps in an environment, where<-new.env() or where<-environment(). Then use where[[varName]] to refer to the variable. You can use further subse

[R] assign a value to an element

2012-03-18 Thread Marc Girondot
Assign can be used to set a value to a variable that has name as a value of another variable. Example: > name<-"essai" > assign(name, "plouf") > essai [1] "plouf" OK. But how to do the same when it is only an element of a vector, data frame and so on that must be changed. > vec<-1:10 > vec  [1

Re: [R] plot intersecting planes

2012-03-18 Thread Uwe Ligges
persp() is not really designed to do that. rgl has a nice interface that allows this sort of things with its persp3d() function. Uwe Ligges On 07.03.2012 11:01, Simone Tenan wrote: Hi all, I need to plot two intersecting planes in a graph. Using persp() function (see code below) I am not ab

Re: [R] suggestions for debugging problem with a package

2012-03-18 Thread Uwe Ligges
On 13.03.2012 07:15, Daniel Nordlund wrote: I am trying to resolve a problem I am having with running the rattle package on two different Windows 7 x64 systems. It appears to be a problem with my two specific systems, because others on Windows 7 x64 systems aren't complaining about this pro

Re: [R] bias sampling

2012-03-18 Thread David Winsemius
On Mar 16, 2012, at 1:09 PM, niloo javan wrote: hi i want to analyze Right Censore-Length bias data under cox model with covariate. what is the package ? I initially left this question alone because I thought there might be viewers for whom it all made perfect sense. After two days that

Re: [R] Error : package is not installed for 'arch=x64'

2012-03-18 Thread Uwe Ligges
On 13.03.2012 18:18, Li, Yan wrote: HI All, I got the error : package is not installed for 'arch=x64' when building my own package for 64bit R. How can I configure the arch ? The 'R CMD config' does not work. Thank you very much! Which OS? If Linux: run R with the desired architecture an

Re: [R] Linux R / Windows client

2012-03-18 Thread beltrand
Not really answering your question but as an alternative suggestion you can get a nice gui/ide for R on a server by using Rstudio server, which is for Linux only. That way you won't need Windows at all. http://rstudio.org/ -- View this message in context: http://r.789695.n4.nabble.com/Linux-R-W

Re: [R] call to system returns warning : status 2 (Ubuntu)

2012-03-18 Thread Uwe Ligges
On 18.03.2012 15:39, Eric Elguero wrote: Hi everybody, I have to run under Ubuntu a programs repeatedly with different arguments and I am using R just to generate the data files and call the external program. basically, in my script I have inside a loop these two lines: command<- paste(,sep=

Re: [R] fitting plane to 3dim set of data

2012-03-18 Thread David Winsemius
On Mar 17, 2012, at 9:45 AM, phi771 wrote: Hello! I have a problem creating a fitting plane through my 3d-data set. here is a sample how my set looks like (x,y,z (with z increasing)): dataset [,1] [,2] [,3] [1,] -1.3712 -3.1551 10 [2,] -1.2690 -3.0751 10 [

Re: [R] list factoring

2012-03-18 Thread Uwe Ligges
your "not sepcial" stuff and afterwards add your special data with a call to points() in, e.g. anotehr color. If you want to separate plots, look at then lattice package. Uwe Ligges On 14.03.2012 15:16, sybil kennelly wrote: Hi Guys, this is actually a thread of emails, but for some reason,

[R] p-value and mlogit

2012-03-18 Thread Ville Iiskola
Hi How does mlogit count the p-values of the variables? Ville [[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 http://www.R-project.org/posti

Re: [R] problem saving gplot.hexbin using file save as pdf - "Error: invalid graphics state

2012-03-18 Thread Uwe Ligges
On 18.03.2012 15:35, Henry wrote: I can save to png, TIFF and jpg but get an error "Error: invalid graphics state" when trying to save as pdf and I have to restart R. This happens when I add mtext lines. There are a few other questions e.g. I want to move the mtext on side 1 to the left, but

Re: [R] Problem reading a graph file

2012-03-18 Thread Uwe Ligges
On 15.03.2012 13:47, Marc Marí Dell'Olmo wrote: I obtain this message: Error: C stack usage is too close to the limit Using the function inla.read.graph? Then please ask the corresponding package maintainer. Uwe Ligges Marc Marí-Dell'Olmo CIBER Epidemiología y Salud Pública Servei de S

Re: [R] paste (CTRL + v) not working rgui

2012-03-18 Thread Ajay Askoolum
I've definitely encountered problems when running programs without administrator righs. Perhaps that was down to virus/spyware protection software. At this linkhttp://forums.techarena.in/windows-software/1258938.htm there is the following suggestion 1.Click on Start 2.Type Run in Search and h

Re: [R] R crashes due to stats.dll

2012-03-18 Thread Uwe Ligges
On 18.03.2012 01:15, Ted Stankowich wrote: Hello! I've been running a looped AIC analysis using several modules including ape, nlme, and MuMIn, and during one particularly long analysis, R (ver 2.14.12) crashes several minutes into the routine with the simple message "R for windows GUI front-en

Re: [R] plot only non-zero values

2012-03-18 Thread Uwe Ligges
On 17.03.2012 10:19, Joshua Wiley wrote: What about just setting them to missing and plotting? md<- yourdata md[md==0]<- NA My other idea depending how you want the plot to look would be to try something where 0 values get a blank colour or null plotting value Or the OP is going to just

Re: [R] Linux R / Windows client

2012-03-18 Thread Jeff Newmiller
My thought is that your question seems to be about StatET/Eclipse rather than R, so this may not be the best place to ask. I don't know the answer, but since Eclipse works on Linux as well, that might be an option. I also think RStudio might be able to utilize a remote server. As to whether you

Re: [R] Extracting numbers from a character variable of different types

2012-03-18 Thread David Winsemius
On Mar 18, 2012, at 11:37 AM, David Winsemius wrote: On Mar 18, 2012, at 10:44 AM, irene wrote: Hello, I have a file which contains a column with age, which is represented in the two following patterns 1. "007/A" or ''007/a" or ''7 /a" . In this case A or a means year and I would

Re: [R] Linux R / Windows client

2012-03-18 Thread Tobias Verbeke
L.S. On 03/18/2012 02:39 PM, Mag Gam wrote: correct, but for StatET i believe I can only use the local R installed to do my computation. My intention is to use my Linux server -- which as 128GB of memory and 32 cores to do my calculations and I want to connect to it via Windows Eclipse GUI. T

Re: [R] ANOVA testing over nested MS term

2012-03-18 Thread peter dalgaard
On Mar 18, 2012, at 08:21 , shoreliner11 wrote: > I'm still relatively new to R but was wondering if anyone could help me force > R to compute the f-statistic etc using the the nested term rather than the > residual. In my particular case we were nesting a treatment effect by a > replicated tank

Re: [R] Extracting numbers from a character variable of different types

2012-03-18 Thread David Winsemius
On Mar 18, 2012, at 10:44 AM, irene wrote: Hello, I have a file which contains a column with age, which is represented in the two following patterns 1. "007/A" or ''007/a" or ''7 /a" . In this case A or a means year and I would like to extract only the numeric values eg 7 in the abov

Re: [R] paste (CTRL + v) not working rgui

2012-03-18 Thread Uwe Ligges
On 18.03.2012 07:44, AAsk wrote: I am using 2.14.2 and use CTL+C& CTL+V all the time without any surprises; it simply works. I suspect that you are using 2.14.2 on Windows 7 computer as user who does not have Administrator provileges. If that is the case, by default, R will not have access to

[R] Extracting numbers from a character variable of different types

2012-03-18 Thread irene
Hello, I have a file which contains a column with age, which is represented in the two following patterns 1. "007/A" or ''007/a" or ''7 /a" . In this case A or a means year and I would like to extract only the numeric values eg 7 in the above case if this pattern exits in a line of file. 2.

Re: [R] Having difficulties installing r commander

2012-03-18 Thread John Fox
Dear Rowan, As you can see, the error message in your email did not come through, probably because you posted your message in HTML, which isn't accepted by the r-help list (see the mailing-list instructions). I'm going to guess that you're working on Mac OS X. If the Rcmdr package was successfu

Re: [R] a question about writing C extensions to functions

2012-03-18 Thread Uwe Ligges
On 16.03.2012 18:08, Erin Hodgess wrote: Dear R People: I'm not sure if I should ask this here or in Rcpp, Why is this related to Rcpp? but I thought I'd start here first. If I'm writing a C program, when do I know to use SEXP vs. int or float, please? For very short: If you want keep

[R] Sensitivity analysis in case of correlated inputs

2012-03-18 Thread Jin Minming
Dear All, There are two packages which can be used for sensitivtiy analysis when the predictor variables are correlated. a: pcc (partial correlation coefficient) in R sensitivity package b: varimp in R party package (conditional importance) Are other R packages available for sensitivity anlaysi

[R] call to system returns warning : status 2 (Ubuntu)

2012-03-18 Thread Eric Elguero
Hi everybody, I have to run under Ubuntu a programs repeatedly with different arguments and I am using R just to generate the data files and call the external program. basically, in my script I have inside a loop these two lines: command <- paste(,sep="") system(command,intern=T,wait=T) when I

[R] problem saving gplot.hexbin using file save as pdf - "Error: invalid graphics state

2012-03-18 Thread Henry
I can save to png, TIFF and jpg but get an error "Error: invalid graphics state" when trying to save as pdf and I have to restart R. This happens when I add mtext lines. There are a few other questions e.g. I want to move the mtext on side 1 to the left, but that is the main issue for now. I'm no

Re: [R] word frequency count

2012-03-18 Thread Uwe Ligges
On 18.03.2012 14:31, mail me wrote: Hi: Suppose I create the dataframe df using the following code: df<- data.frame( item1 = c('milk', 'bread','beer','beer','milk','beer'), item2 =c('bread', 'butter','diaper','diaper','bread', 'diaper'), stringsAsFactors = F); df item1 item2 1 milk br

Re: [R] word frequency count

2012-03-18 Thread mail me
Hi: Suppose I create the dataframe df using the following code: df <- data.frame( item1 = c('milk', 'bread','beer','beer','milk','beer'), item2 =c('bread', 'butter','diaper','diaper','bread', 'diaper'), stringsAsFactors = F); df item1 item2 1 milk bread 2 bread butter 3 beer diaper 4 bee

Re: [R] Linux R / Windows client

2012-03-18 Thread jose Bartolomei
Hi, I do not understand why you want to do that but both Eclipse and StatEt are available for Linux environment. Then, you can have everything running on Linux http://www.eclipse.org/downloads/ http://www.walware.de/goto/statet Jose

Re: [R] Matrix Results

2012-03-18 Thread Uwe Ligges
On 13.03.2012 15:40, RMSOPS wrote: Hello Error: could not find function sqldf: Hello, I'm using R Studio, and installed the option of installing the packages sqldbf function. But When I run the code give the next error. install.packages("sqldf") library("RSQLite") require(sqldf) x<-

Re: [R] install R package on Unix cluster

2012-03-18 Thread Uwe Ligges
On 18.03.2012 05:47, Lorenzo Cattarino wrote: Hi R users, Working from a PC, I am trying to install the spatstat package on a Unix cluster. I created the following PBS file to send a job array: #!/bin/bash -ue #PBS -m ae #PBS -M my email #PBS -J 1-45 #PBS -A my username #PBS -N job name #PB

Re: [R] Linux R / Windows client

2012-03-18 Thread Mag Gam
correct, but for StatET i believe I can only use the local R installed to do my computation. My intention is to use my Linux server -- which as 128GB of memory and 32 cores to do my calculations and I want to connect to it via Windows Eclipse GUI. On Sun, Mar 18, 2012 at 9:13 AM, jose Bartolome

Re: [R] word frequency count

2012-03-18 Thread John Kane
? table First however confirm "that milk,bread" is a single datum. str() should do this Can you post a sample of the data here using dput()? John Kane Kingston ON Canada > -Original Message- > From: mailme...@googlemail.com > Sent: Sun, 18 Mar 2012 13:12:48 +0200 > To: r-help@r-project

[R] Linux R / Windows client

2012-03-18 Thread Mag Gam
Hello, I am currently running R on ubuntu and everything is working perfectly fine. However, I would like to connect to R via Windows using Eclipse StatEt plugin. Is this possible to do? or do I have to have a version of R running on Windows also? I prefer to have Linux do the heavy lifting and Wi

[R] word frequency count

2012-03-18 Thread mail me
Hi: I have a dataframe containing comma seperated group of words such as milk,bread bread,butter beer,diaper beer,diaper milk,bread beer,diaper I want to output the frequency of occurrence of comma separated words for each row and collapse duplicate rows, to make the output as shown in the follo

Re: [R] Removing session variables

2012-03-18 Thread Jim Holtman
to remove an individual column: classResults$subjEnglish <- NULL to remove object: rm(classResults) to access student names: row.names(classResults) Sent from my iPad On Mar 18, 2012, at 5:31, Ajay Askoolum wrote: > If I create a data.frame using session variables as follows: > > classRes

[R] ANOVA testing over nested MS term

2012-03-18 Thread shoreliner11
I'm still relatively new to R but was wondering if anyone could help me force R to compute the f-statistic etc using the the nested term rather than the residual. In my particular case we were nesting a treatment effect by a replicated tank which was not non-significant enough (p>0.25)to be droppe

Re: [R] how to modify the tickment of x-axis

2012-03-18 Thread Jim Lemon
On 03/18/2012 02:00 PM, Jie Tang wrote: I have found that the dimension number of label must be equal with the dimension of the plot data by your this method. if we have two data in every hour,it seems can not show the correct tickment? .plot(1:20, xaxt = "n") axis(1, at = 1:10, label = paste(1:

[R] Removing session variables

2012-03-18 Thread Ajay Askoolum
If I create a data.frame using session variables as follows: classResults<-data.frame(subjEnglish,gradeEnglish,subjFrench,gradeFrench,row.names=studentName) How can I remove the variables? I tried > rm(names(classResults)) Error in rm(names(classResults)) :   ... must contain names or characte

Re: [R] memory, i am getting mad in reading climate data

2012-03-18 Thread Prof Brian Ripley
On 17/03/2012 20:42, jim holtman wrote: Another suggestion is to start with a subset of the data file to see how much memory is required for your processing. One of the misconceptions is that "memory is free". People think that with virtual memory and other such tools, that there is no restrict

[R] install R package on Unix cluster

2012-03-18 Thread Lorenzo Cattarino
Hi R users, Working from a PC, I am trying to install the spatstat package on a Unix cluster. I created the following PBS file to send a job array: #!/bin/bash -ue #PBS -m ae #PBS -M my email #PBS -J 1-45 #PBS -A my username #PBS -N job name #PBS -l resources #PBS -l walltime cd $PBS_O_WORKDIR

[R] Having difficulties installing r commander

2012-03-18 Thread Rowan McCarthy
Hi, I have recently installed R on my mac and am trying to install R commander. When I type: install.packages("Rcmdr",dependencies=TRUE) the following message appears I have also tried installing commander via the package installer window. When I do this a large number of error messages (over 50)

Re: [R] Error in conditional execution "missing value where TRUE/FALSE needed"

2012-03-18 Thread Dong-Joon Lim
Yes, that was the problem. Now it's solved. Thanks a lot, Dong-Joon On Sat, Mar 17, 2012 at 6:38 AM, R. Michael Weylandt < michael.weyla...@gmail.com> wrote: > My guess is that you're not getting what you expect from operator > precedence: note that > > 1:3 - 1 > 1:(3-1) #Not equal > > If that

[R] R package to efficiently create polyline shape file

2012-03-18 Thread yeheng...@gmail.com
I need to convert dbf/csv data to an ESRI shape file consisting of 200,000 polylines in R. I used the package "shapefiles" that can create small shape files. I found it takes too much time for create 200,000 polylines. I checked the source codes and found R loop is used. I guess it may be the r

[R] R crashes due to stats.dll

2012-03-18 Thread Ted Stankowich
Hello! I've been running a looped AIC analysis using several modules including ape, nlme, and MuMIn, and during one particularly long analysis, R (ver 2.14.12) crashes several minutes into the routine with the simple message "R for windows GUI front-end has stopped working". I'm using a brand

Re: [R] paste (CTRL + v) not working rgui

2012-03-18 Thread AAsk
I am using 2.14.2 and use CTL+C & CTL+V all the time without any surprises; it simply works. I suspect that you are using 2.14.2 on Windows 7 computer as user who does not have Administrator provileges. If that is the case, by default, R will not have access to the clipboard, hence the failures. T