Hello R-users
I have a situation like this
x=c(1,3,2)
y=data.frame("a"=1:3, "b"=4:6, "c"=7:9)*2
So we have
> t(t(x))
[,1]
[1,]1
[2,]3
[3,]2
And
> y
a b c
1 2 8 14
2 4 10 16
3 6 12 18
I would like to obtain a vector with number taken from the data.frame: x is
needed as
> Da: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]
> Per conto di Luca Braglia
> Inviato: venerdì 11 settembre 2009 10.17
> A: r-help@r-project.org
> Oggetto: [R] how to do this?
> in this case the ouput should be
>
> 2
> 16
> 12
>
Obvio
> Da: Linlin Yan [mailto:yanlinli...@gmail.com]
> Inviato: venerdì 11 settembre 2009 11.19
> A: Luca Braglia
> Cc: r-help@r-project.org
> Oggetto: Re: [R] how to do this?
>
> Try this:
> > y[matrix(c(seq_along(x), x), ncol = 2)]
> [1] 2 16 12
Very interesting!
Hello *
I would like to reshape wide the following dataset:
> rl <- read.dta("intermedi/rapporti_lavoro.dta")
> [c("id_rl","prog","sil_pi","sil_cf","sil_dat_avv")]
> dim(rl)
[1] 12964 5
> object.size(rl)
1194728 bytes
> head(rl)
id_rl prog sil_pi sil_cf sil_dat_avv
1 638
Hello *
i have to rename a lot of variables, and, given that they have regular name
constructs, I would like to use regexps.
Here's a dump of my head(names(df))
varnames <- c("id.quest", "txt.1.3", "col1.1.3", "col2.1.3", "col3.1.3",
"col4.1.3", "col5.1.3", "txt.2.3", "col1.2.3", "col2.2.3", "
Mmm, just Friday ... :)
Thank you jim & gabor
> -Messaggio originale-
> Da: jim holtman
> [mailto:jholt...@gmail.com]
> Inviato: venerdì 2 ottobre 2009
> 14.12
> A: Luca Braglia
> Cc: r-help@r-project.org
> Oggetto: Re: [R] help with
> regexp mass subst
Hello everybody
I'd like to match exactly numbers from 1 to 27.
I've tried a character class like [1-27], but it matches 1,2 and 7.
How to tell R (pcre) to interpret 27 "correctly"?
Have been fastly looking throughout pcre man pages, without success.
Many thanks
Luca
___
Hello *
is possible to have something like the LaTeX \href in Rd ?
\url doesn't fit very well, and I didn't find much about.
I have a long (external to the help system, a www one) url but i
would like it to be "hidden" from a small word with the link.
Please CC me! ;)
thanks in advance
Luca
On 27/01/10 - 08:54, Gabor Grothendieck wrote:
> One approach would be to use one of the URL shortening services to
> define a shorter URL. The shorter URL would then appear rather than
> the long original one (although there would still be a URL shown so
> its not quite the functionality you ask
Hello everybody.
I've a problem with stepAIC inside a boot function (i'm trying to do
bootstrap backward elimination, with a "statistic" function that allow one
to specify the formula of a coxph model)
For the moment the function would be aimed storing selected vars
However I've a problem in the
Hello everybody.
I've a problem with stepAIC inside a boot function (i'm trying to do
bootstrap backward elimination, with a "statistic" function that allow one
to specify the formula of a coxph model)
For the moment the function would be aimed storing selected vars
However I've a problem in the
Hello,
> install.packages("pROC")
Installing package into
‘/home/l/R/x86_64-pc-linux-gnu-library/3.0’
(as ‘lib’ is unspecified)
provo con l'URL
'http://cran.mirror.garr.it/mirrors/CRAN/src/contrib/pROC_1.7.1.tar.gz'
Warning in download.file(url, destfile, method, mode = "wb", ...)
:
connesso a '
2014-03-28 19:09 GMT+01:00 Dirk Eddelbuettel :
> Luca Braglia gmail.com> writes:
>> g++ -shared -o pROC.so RcppExports.o delong.o perfsAll.o >
>> Rcpp:::LdFlags() > > -L/usr/lib/R/lib -lR
>> g++: error: >: File o directory non esistente
>
> This can happ
and your hunch was correct, thank you!
cheers
Luca
2014-03-29 10:02 GMT+01:00 Luca Braglia :
> 2014-03-28 19:09 GMT+01:00 Dirk Eddelbuettel :
>> Luca Braglia gmail.com> writes:
>>> g++ -shared -o pROC.so RcppExports.o delong.o perfsAll.o >
>>> Rcpp:::LdFlags
Dear R users,
I'm trying figuring out with forest plot and rmeta. Here's my code...
library(rmeta)
tabletext <- structure(c("", NA, "Sex", "[F]", "[M]", NA,
"Age class", "(0,60]", "(60,80]", NA,
"Karnofsky class", "[70;90]",
Hello *
does anybody know a free (as in freedom) equivalent for Stat
Transfer
http://stattransfer.com/
Thank you
Bye
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.
On 08/12/07 - 10:29, Marc Schwartz wrote:
>
> On Sat, 2007-12-08 at 12:24 +0100, Luca Braglia wrote:
> > Hello *
> >
> > does anybody know a free (as in freedom) equivalent for Stat
> > Transfer
> >
> > http://stattransfer.com/
> >
> >
Hello R-user
bug seekers are needed!
In order to perform these simple tasks you have to use a copy of SPSS
and obviously R.
The problem is that date conversion of data coming from SPSS
gives wrong results, if we follow ?as.POSIXct
## SPSS dates (R-help 2006-02-17)
z <- c(10485849600, 104
c and xtable, and if I didn't miss something, they
don't include something like that.
Thank you
Luca
--
Luca Braglia, aka Bragliozzo
http://bragliozzo.altervista.org
__
R-help@r-project.org mailing list
https://stat.
x27;vmmin' non finito
that freely translated to english means "starting value in
'vmmin' not finished (or finite, more likely)"
what does this mean? How can I have my summary?
Thank you
Luca
--
Luca Braglia, aka Bragliozzo
http://braglio
-------
> . log close
>log: z:/home/luca/stata_oprob.log
> log type: text
> closed on: 15 Mar 2008, 10:13:50
>
th
rwise I'll submit a bug report
ok
On 15/03/08 - 10:29, Luca Braglia wrote:
> hello everybody
>
> solved the problem with summary, now I have another one
>
> eg I estimate
>
> > try.op <- polr(
> >as.ordered(sod.sit.ec.fam) ~
>
On 15/03/08 - 15:21, Luca Braglia wrote:
> Hello everybody
>
> as I said, i'm not a ordered probit guru, but what happened seems
> to me a little strange.
>
> Here I put my dataset
>
> http://bragliozzo.altervista.org/asd.dta
my fault: i forgot the new antilee
23 matches
Mail list logo