[R] how to do this?

2009-09-11 Thread Luca Braglia
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

[R] R: how to do this?

2009-09-11 Thread Luca Braglia
> 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

[R] R: how to do this?

2009-09-11 Thread Luca Braglia
> 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!

[R] problems with reshape

2009-09-14 Thread Luca Braglia
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

[R] help with regexp mass substitution

2009-10-02 Thread Luca Braglia
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", "

[R] R: help with regexp mass substitution

2009-10-05 Thread Luca Braglia
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

[R] help with regexps

2009-10-07 Thread Luca Braglia
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 ___

[R] href and Rd

2010-01-27 Thread Luca Braglia
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

Re: [R] href and Rd

2010-01-27 Thread Luca Braglia
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

[R] help with stepAIC and boot

2014-03-05 Thread Luca Braglia
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

[R] help with stepAIC and boot

2014-03-07 Thread Luca Braglia
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

[R] help with pROC installation on a Debian box (Rcpp related)

2014-03-28 Thread Luca Braglia
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 '

Re: [R] help with pROC installation on a Debian box (Rcpp related)

2014-03-29 Thread 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() > > -L/usr/lib/R/lib -lR >> g++: error: >: File o directory non esistente > > This can happ

Re: [R] help with pROC installation on a Debian box (Rcpp related)

2014-03-29 Thread Luca Braglia
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

[R] help with rmeta package

2012-04-21 Thread Luca Braglia
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]",

[R] [OT] A free (as in freedom) replacement for StatTransfer

2007-12-08 Thread Luca Braglia
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.

Re: [R] [OT] A free (as in freedom) replacement for StatTransfer

2007-12-08 Thread Luca Braglia
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/ > > > >

[R] Is this a documentation bug? Spss dates import

2009-03-11 Thread Luca Braglia
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

[R] regression output to latex

2008-03-02 Thread Luca Braglia
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.

[R] help with summary(polr_model)

2008-03-13 Thread Luca Braglia
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

[R] again with polr

2008-03-15 Thread Luca Braglia
------- > . log close >log: z:/home/luca/stata_oprob.log > log type: text > closed on: 15 Mar 2008, 10:13:50 > th

[R] is this a bug? [was Re: again with polr]

2008-03-15 Thread Luca Braglia
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) ~ >

Re: [R] is this a bug? [was Re: again with polr]

2008-03-15 Thread Luca Braglia
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