[R] vector of character with unequal width

2011-01-05 Thread jose Bartolomei
Dear R users, The best in this new year 2011. I am dealing with a character vector (xx) whose nchar are not the same. Ex. nchar(xx) [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 1 1 1 1 1 1 1 1 1 1 1 1 1 [38] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 3 3 3 4 4 4 4 4 4 4

Re: [R] vector of character with unequal width

2011-01-07 Thread jose Bartolomei
: [R] vector of character with unequal width > > On Wed, Jan 05, 2011 at 03:50:13PM +, jose Bartolomei wrote: > [...] > > > > I was thinking to create a character vector of 0's 9-nchar(xx). > > Then paste it to xx. > > 9-nchar(xx) > > [1] 8 8 8 8 8 8 8

[R] problem running scripts

2011-02-14 Thread jose Bartolomei
Dear all, I have encounter an odd situation. I have various R scripts interconnected via the source () function. After examining the results I noticed that not all the functions or procedures within a script were adequately conducted. Especially with the longest script ( about 180 lines)

Re: [R] problem running scripts

2011-02-18 Thread jose Bartolomei
; > On 14.02.2011 19:58, jose Bartolomei wrote: > > > > > > Dear all, > > > > > > I have encounter an odd situation. > > > > > > I have various R scripts interconnected via the source () function. > > > > > > After examining

[R] create a index.date column

2011-07-27 Thread jose Bartolomei
Dear R users, I created a matrix that tells me the first day of use of a category by id. #Calculate time difference test$tdiff<-as.numeric(difftime(as.Date("2002-09-01"), test$ftime, units = "days")) # obtain the index date per person and dcategory

Re: [R] create a index.date column

2011-07-28 Thread jose Bartolomei
fference from the reference date 2002-09-01. > (2) Determined the numeric value of the date associated with the max > time difference (ndate) > (3) Determined the date associated with the maximum time difference > and assigned it the variable name index.date i

[R] Recomendation on data management problem

2012-07-20 Thread jose Bartolomei
Dear R users, I am dealing with a data set of aprox. 5 millions rows with data inconsistencies. The data.frame is an observation per claim with approximately 2 M unique ID's Furthermore, one individual could have one or more claims. I have found that an individual could have all his/h

Re: [R] Simple reshape problem I am completely missing

2012-07-24 Thread jose Bartolomei
Did you melt first? library(reshape2) ?melt > Date: Tue, 24 Jul 2012 09:17:08 -0800 > From: jrkrid...@inbox.com > To: r-help@r-project.org > Subject: [R] Simple reshape problem I am completely missing > > I seem to be doing something really stupid or missing something really > obvious but wha

Re: [R] Regular Expression

2012-07-24 Thread jose Bartolomei
If you want that output. substr() Can help in your task too. I can not help with regular expression, I will learn too. > Date: Tue, 24 Jul 2012 13:36:25 -0400 > From: bayespoker...@gmail.com > To: r-help@r-project.org > Subject: [R] Regular Expression > > Hi-- > > I have three columns i

Re: [R] LaTeX output for summary.lm object - while displaying the information outside the table

2011-12-06 Thread jose Bartolomei
Hi,Yes, you can use all values within the object For example, data(airquality) obj.lm <- summary(lm(Temp~Ozone, airquality)) names(obj.lm) [1] "call" "terms" "residuals" "coefficients" "aliased" "sigma" [7] "df""r.squared" "adj.r.squared" "fs

Re: [R] Take variables in data.frame and create list of matrices

2011-11-03 Thread jose Bartolomei
If i understood correctly this may help you > dlply(dat, .(id)) $`1` id o r v s 1 1 1 0.5 -1.7131858 -2.0548666 2 1 2 0.5 0.6582979 0.9688939 3 1 3 0.5 -0.6861830 2.4213072 4 1 4 0.5 1.4134171 -0.4540244$`2` id o r v s 5 2 1 0.5 0.2771839 1.06

Re: [R] Take variables in data.frame and create list of matrices

2011-11-03 Thread jose Bartolomei
I missed; using the Hadley Wickham plyr package >library (plyr)> dlply(dat, .(id)) $`1` id o r v s 1 1 1 0.5 -1.7131858 -2.0548666 2 1 2 0.5 0.6582979 0.9688939 3 1 3 0.5 -0.6861830 2.4213072 4 1 4 0.5 1.4134171 -0.4540244$`2` id o r v s 5 2 1

Re: [R] Upgrade R?

2011-11-10 Thread jose Bartolomei
Hi,Don't know if this will help you but...In my short experience and following the guidelines you should first uninstall R. http://cran.r-project.org/doc/manuals/R-admin.html#Installing-R-under-Windows Unistall it from the Windows control panel. The old R version libraries file will be kept on

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