search for: lavezzi

Displaying 4 results from an estimated 4 matches for "lavezzi".

2011 Jan 14
2
selecting elements in vector
...] FALSE FALSE TRUE TRUE TRUE I do the job. But I wonder whether there is a shorter command to compare the elements of 'list' directly to both "aa" and "bb", avoiding the repetition of '& list!=...' and get a result such as jj thanks! -- Andrea Mario Lavezzi currently visiting the University of Oxford, Nuffield College Dipartimento Studi su Politica, Diritto e Società Piazza Bologni 8 90134 Palermo, Italy tel. ++39 091 23892208 fax ++39 091 6112023 skype: lavezzimario email: lavezzi@unipa.it web: http://www.unipa.it/~lavezzi [[alternative HTML vers...
2007 Nov 15
2
counting strings of identical values in a matrix
...ne sequence of length four in column 3 and one sequence of length one in column 4. (I know I can actually turn the matrix into a vector by using rep(prova)) I would like to get to a vector such as : xx = [1,2,1,1] Can anyone help? Thanks! Mario =============================== Andrea Mario Lavezzi Dipartimento di Studi su Politica Diritto e Societ? Piazza Bologni 8 90134 Palermo tel. ++39 091 6625600 fax ++39 091 6112023 skype: lavezzimario email: lavezzi at unipa.it web: http://www.unipa.it/~lavezzi ===============================
2008 Oct 27
3
counting run lengths
...,rle) for(i in (1:n)[Atr[tt+1,]==0]){ unSpells[i]=tail(ppp[[i]]$lengths,1) } It works, but the for (i in ...) loop slows down the simulation a lot. Any suggestion on how to avoid this loop? (or in general, to speed up this part of the simulation) Thanks!! Mario -- Andrea Mario Lavezzi Dipartimento di Studi su Politica, Diritto e Societ? Universit? di Palermo Piazza Bologni 8 90134 Palermo, Italy tel. ++39 091 6625600 fax ++39 091 6112023 skype: lavezzimario email: lavezzi (at) unipa.it web: http://www.unipa.it/~lavezzi
2013 Mar 12
1
loading data frames and rbind them
...ariables, names as "reaNum12345" ecc. I would like to rbind all of them, but what I get is that I rbind "reaNum12345", i.e. the variable name and not the data it contains. Can anyone help? thanks! Mario -- -- PLEASE NOTICE NEW EMAIL ADDRESS AND HOME PAGE URL Andrea Mario Lavezzi Dipartimento di Studi su Politica, Diritto e Società Università di Palermo Piazza Bologni 8 90134 Palermo, Italy tel. ++39 091 23892208 fax ++39 091 6111268 skype: lavezzimario email: mario.lavezzi (at) unipa.it web: http://www.unipa.it/~mario.lavezzi [[alternative HTML version deleted]]