Re: [R] Memory management

2007-09-15 Thread jim holtman
If you data file has 49M rows and 249 columns, then if each column had 5 characters, then you are looking at a text file with 60GB. If these were all numerics (8 bytes per number), then you are looking at an R object that would be almost 100GB. If this is your data, then this is definitely a cand

Re: [R] Plotting (vector,matrix)

2007-09-15 Thread Raymond Wan
jim holtman wrote: > matplot(x,y) > > Ah, thanks -- I got it working! Actually, I was getting a "must have the same number of rows" error since x has the same number of columns as y, but x itself is a single row. This worked for me when I transposed y...which is ok for my problem: matplot

Re: [R] Memory management

2007-09-15 Thread Takatsugu Kobayashi
Hi, I apologize again for posting something not suitable on this list. Basically, it sounds like I should go put this large dataset into a database... The dataset I have had trouble with is the transportation network of Chicago Consolidated Metropolitan Statistical Area. The number of samples

Re: [R] Plotting (vector,matrix)

2007-09-15 Thread jim holtman
matplot(x,y) On 9/16/07, Raymond Wan <[EMAIL PROTECTED]> wrote: > > Hi all, > > I'm still a bit new to R and I'm trying to figure something out. I have > the solution but the solution is what a C programmer would do :-) and I > was wondering if someone could tell me the R way of doing it... > > W

[R] Plotting (vector,matrix)

2007-09-15 Thread Raymond Wan
Hi all, I'm still a bit new to R and I'm trying to figure something out. I have the solution but the solution is what a C programmer would do :-) and I was wondering if someone could tell me the R way of doing it... What I have is a vector x of length |x|. And a matrix y of size m rows and

Re: [R] (no subject)

2007-09-15 Thread jim holtman
When you say you can not import 4.8GB, is this the size of the text file that you are reading in? If so, what is the structure of the file? How are you reading in the file ('read.table', 'scan', etc). Do you really need all the data or can you work with a portion at a time? If so, then consider

Re: [R] my previous message: Memory Management

2007-09-15 Thread tkobayas
Hi, I obviously did not include the subject title. I am looking for memory management on a 64 bit machine. Thank you. TK __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-p

[R] (no subject)

2007-09-15 Thread tkobayas
Hi, Let me apologize for this simple question. I use 64 bit R on my Fedora Core 6 Linux workstation. A 64 bit R has saved a lot of time. I am sure this is a lot to do with my memory limit, but I cannot import 4.8GB. My workstation has a 8GB RAM, Athlon X2 5600, and 1200W PSU. This PC configura

[R] are hurdle logit-poisson model and posson model nested?

2007-09-15 Thread Wensui Liu
Dear Listers, I have a general statistical question. Are hurdle logit-poisson model and posson model nested? Thank you so much? __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.

Re: [R] naming columns of data frame

2007-09-15 Thread Henrique Dallazuanna
Try this: df <- data.frame('1.test'=rnorm(100), '2.test'=runif(100), check.names=F) -- Henrique Dallazuanna Curitiba-Paraná-Brasil 25° 25' 40" S 49° 16' 22" O On 15/09/2007, kevinchang <[EMAIL PROTECTED]> wrote: > > > Hey, > > I am trying to make a data frame and the name of a column is compos

Re: [R] starting with a capital letter

2007-09-15 Thread Charles C. Berry
Two corrections to my previous posting. On Sat, 15 Sep 2007, Charles C. Berry wrote: > On Sat, 15 Sep 2007, kevinchang wrote: > >> >> Hi everyone, >> >> I am wondering if there is any built-in funcion that can determine whether >> words in a character vector start with a captial letter or not. H

Re: [R] naming columns of data frame

2007-09-15 Thread Katharine Mullen
when I try what you describe there is no problem -maybe send a reproducible example. > x<-data.frame(matrix(2,2,2)) > colnames(x) <- c("1.xx", "2.xx") > x 1.xx 2.xx 122 222 On Sat, 15 Sep 2007, kevinchang wrote: > > Hey, > > I am trying to make a data frame and the name of a c

[R] naming columns of data frame

2007-09-15 Thread kevinchang
Hey, I am trying to make a data frame and the name of a column is composed of a number, a dot, and a word, such as "1.whatever". But I always get this error message:"syntax error, unexpected SYMBOL, expecting ',' in:" while printing data frame out . When I rename the column with purely letter, ev

[R] Question about VarSelRF

2007-09-15 Thread ssls sddd
Dear list members, I am analyzing Affymentrix gene expression data and would like to apply the R package, VarSelRF to identifying small sets of genes that could be used for diagnostic purpose. Basically, the data matrix is composed of 22277 rows (genes) and 65 columns (samples). I did unsupervise

Re: [R] starting with a capital letter

2007-09-15 Thread Charles C. Berry
On Sat, 15 Sep 2007, kevinchang wrote: > > Hi everyone, > > I am wondering if there is any built-in funcion that can determine whether > words in a character vector start with a captial letter or not. Help, > please. Thanks. Yes. But your query is not precise. See the posting guide and provide c

Re: [R] Help with a problem

2007-09-15 Thread Gavin Simpson
On Sat, 2007-09-15 at 12:11 -0400, Letticia Ramlal wrote: > Hello > I was wonderinf if anyone can help me with this problem, it seems > trivial but for some reason I can not figure it out. > > With a single R command complete the following: > create a vector calles seqvec that repeats the sequen

Re: [R] applying math/stat functions to rows in data frame

2007-09-15 Thread Gavin Simpson
On Sat, 2007-09-15 at 09:02 -0700, Gerard Smits wrote: > Hi All, > > There are a variety of functions that can be applied to a variable > (column) in a data frame: mean, min, max, sd, range, IQR, etc. But one their own, these are not equivalents to rowMeans, rowSums etc below. > > I am aware o

Re: [R] applying math/stat functions to rows in data frame

2007-09-15 Thread Marc Schwartz
On Sat, 2007-09-15 at 09:02 -0700, Gerard Smits wrote: > Hi All, > > There are a variety of functions that can be applied to a variable > (column) in a data frame: mean, min, max, sd, range, IQR, etc. > > I am aware of only two that work on the rows, using q1-q3 as example > variables: > > row

Re: [R] Pulling out parts of a generated array in R

2007-09-15 Thread Uwe Ligges
Wayne Aldo Gavioli wrote: > Hello all, > > I was wondering if it was possible to pull out certain parts of an array in R > - > not an array of data that I have created, but an array of data that has been > spit out by R itself. > > More specifically, in the lines of code below: > > >> summar

[R] Pulling out parts of a generated array in R

2007-09-15 Thread Wayne Aldo Gavioli
Hello all, I was wondering if it was possible to pull out certain parts of an array in R - not an array of data that I have created, but an array of data that has been spit out by R itself. More specifically, in the lines of code below: > summary(prcomp(USArrests)) Importance of components:

Re: [R] Help with a problem

2007-09-15 Thread Marc Schwartz
On Sat, 2007-09-15 at 12:11 -0400, Letticia Ramlal wrote: > Hello > I was wonderinf if anyone can help me with this problem, it seems trivial but > for some reason I can not figure it out. > > With a single R command complete the following: > create a vector calles seqvec that repeats the seque

[R] Help with a problem

2007-09-15 Thread Letticia Ramlal
Hello I was wonderinf if anyone can help me with this problem, it seems trivial but for some reason I can not figure it out. With a single R command complete the following: create a vector calles seqvec that repeats the sequence 1, 3,6, 10,15,21.( I was trying to use c() but this does not work

Re: [R] applying math/stat functions to rows in data frame

2007-09-15 Thread Robert A LaBudde
At 12:02 PM 9/15/2007, Gerald wrote: >Hi All, > >There are a variety of functions that can be applied to a variable >(column) in a data frame: mean, min, max, sd, range, IQR, etc. > >I am aware of only two that work on the rows, using q1-q3 as example >variables: > >rowMeans(cbind(q1,q2,q3),na.rm=T

[R] applying math/stat functions to rows in data frame

2007-09-15 Thread Gerard Smits
Hi All, There are a variety of functions that can be applied to a variable (column) in a data frame: mean, min, max, sd, range, IQR, etc. I am aware of only two that work on the rows, using q1-q3 as example variables: rowMeans(cbind(q1,q2,q3),na.rm=T) #mean of multiple variables rowSums (cbi

Re: [R] how to change print limit on screen

2007-09-15 Thread jim holtman
?options > options(max.print=10) > 1:10 [1] 1 2 3 4 5 6 7 8 9 10 [ reached getOption("max.print") -- omitted 0 entries ]] On 9/15/07, Abu Naser <[EMAIL PROTECTED]> wrote: > > Hi all user, > > Is there any way i can chage the print limit ( getOption("max.print")) to > unlimite

Re: [R] Storing Variables of different types

2007-09-15 Thread jim holtman
One technique that I use (with POSIXct dates) is to convert the date to numeric so that it can be stored in an array (which must have the same mode for all variables) and then when I need it, just convert it back as needed. Here is an example: > x <- as.POSIXct("2007-09-15 13:25") > x [1] "2007-0

Re: [R] Storing Variables of different types

2007-09-15 Thread mel
Garavito,Fabian a écrit : > Hi there, > I have an ixjxk array where I want to store dates in the first column of > all sub-matrices (i.e. j=1 is a column with dates) and real numbers in > the rest of the columns...I have been trying many things, but I am > not getting anywhere. > Thank you ve

Re: [R] generate ROC curve using randomForest package

2007-09-15 Thread Christian Schäfer
L L wrote: > I am new here. I would like to compare the performance of the random forest > model with support vector machine. Can anybody let me know how to generate > a ROC curve for random forest model since there is no need to run the > cross-validation. Thank you very much! The ROCR packa

[R] Survival model (time to event data)

2007-09-15 Thread Daniel Malter
High all, I would appreciate input about how the following survival model can be modeled in R and how competing risk models can generally be modeled. Also I would appreciate hints about resources that you are aware of that explain the use of survival models in R in greater detail. The data struct

[R] generate ROC curve using randomForest package

2007-09-15 Thread L L
Hi, I am new here. I would like to compare the performance of the random forest model with support vector machine. Can anybody let me know how to generate a ROC curve for random forest model since there is no need to run the cross-validation. Thank you very much! TL _

[R] Storing Variables of different types

2007-09-15 Thread Garavito,Fabian
Hi there, I have an ixjxk array where I want to store dates in the first column of all sub-matrices (i.e. j=1 is a column with dates) and real numbers in the rest of the columns...I have been trying many things, but I am not getting anywhere. Thank you very much for your help, Fabian Thi

[R] Class probabilities in rpart

2007-09-15 Thread Christian Schäfer
Hi, the predict.rpart() function from the rpart library allows for calculating the class probabilities for a given test case instead of a discrete class label. How are these class probabilities derived? Is it simply the proportion of the majority class to all cases in a leaf node? Thanks in a

Re: [R] HTML reading,

2007-09-15 Thread Gabor Grothendieck
Check out: https://stat.ethz.ch/pipermail/r-help/2007-August/137742.html On 9/15/07, christophe vuadens <[EMAIL PROTECTED]> wrote: > > Hello, > > Sorry for my english, in a R function, I want to read HTML files to analyse > the text. Do somebody now, how can i read the text only in txt Foirmat..

Re: [R] starting with a capital letter

2007-09-15 Thread Ted Harding
On 15-Sep-07 10:21:19, kevinchang wrote: > > Hi everyone, > > I am wondering if there is any built-in funcion that can > determine whether words in a character vector start with > a captial letter or not. Help, please. Thanks. Something like: C<-c("Abc", "aBc", "abC") for(i in (1:length(C))){

Re: [R] starting with a capital letter

2007-09-15 Thread mel
kevinchang a écrit : > I am wondering if there is any built-in funcion that can determine whether > words in a character vector start with a captial letter or not. Help, > please. Thanks. DIY with tolower(). apply tolower() on 1st letter and compare. __

[R] starting with a capital letter

2007-09-15 Thread kevinchang
Hi everyone, I am wondering if there is any built-in funcion that can determine whether words in a character vector start with a captial letter or not. Help, please. Thanks. -- View this message in context: http://www.nabble.com/starting-with-a-capital-letter-tf4447302.html#a12689105 Sent from

[R] how to change print limit on screen

2007-09-15 Thread Abu Naser
Hi all user, Is there any way i can chage the print limit ( getOption("max.print")) to unlimited or specified limit? Thanks in advance _ Feel like a local wherever you go. __ R-help@r-pr

Re: [R] RPM package for Linux RED HAT ENTERPRISE 5

2007-09-15 Thread Prof Brian Ripley
See http://cran.r-project.org/bin/linux/redhat/el5/i386/ The ReadMe there says they should work on RHEL5. I've not used RHEL5, but have a little experience with Centos5, where R builds from the tarball without any problems at all. On Sat, 15 Sep 2007, Ndoye Souleymane wrote: Dear Mr Ripley,

Re: [R] HTML reading,

2007-09-15 Thread Armin Goralczyk
On 9/15/07, christophe vuadens <[EMAIL PROTECTED]> wrote: > > Hello, > > Sorry for my english, in a R function, I want to read HTML files to analyse > the text. Do somebody now, how can i read the text only in txt Foirmat... > > Thanks > -- Have a look at this: http://gking.harvard.edu/readme/

[R] HTML reading,

2007-09-15 Thread christophe vuadens
Hello, Sorry for my english, in a R function, I want to read HTML files to analyse the text. Do somebody now, how can i read the text only in txt Foirmat... Thanks -- View this message in context: http://www.nabble.com/HTML-reading%2C-tf4447190.html#a12688719 Sent from the R help mailing lis

[R] RPM package for Linux RED HAT ENTERPRISE 5

2007-09-15 Thread Ndoye Souleymane
Dear Mr Ripley, Dear all, Could you please help me to find an appropriate rpm package to install on RED HAT LINUX ENTERPRISE 5. I have experienced trouble in invoking R with R-2.5.1-1.fc7.i386.rpm. It strats normaly and then it exit me to the prompt like shown below: How to cope with this erro

Re: [R] problem installing Rpmi : mpi.h...Found in /usr/include/lam, yet "libmpi

2007-09-15 Thread Ndoye Souleymane
Dear Mr Ripley, Dear all, Could you please help me to find an appropriate rpm package to install on RED HAT LINUX ENTERPRISE 5. I have experienced trouble in invoking R with R-2.5.1-1.fc7.i386.rpm. It strats normaly and then it exit me to the prompt like shown below: How to cope with this erro