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
: [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
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)
;
> 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
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
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
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
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
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
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
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
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
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
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
14 matches
Mail list logo