Re: [R] How do I best create a R procedure from a R file?

2017-02-08 Thread Erich Subscriptions
Rough sketch: lookup.vec <- elencositi$nome.sito names(ookup.vec) <- elencositi$indirezzo.sito dati$FONTE <- lookup.vec(dati$FONTE) This, however, assumes that elencositi has all the values that con occur. > On 8 Feb 2017, at 10:27, Luca Meyer wrote: > > Hi, > > I am

Re: [R] How do I best create a R procedure from a R file?

2017-02-08 Thread PIKAL Petr
dati$FFF, edat$let)] ind<-as.character(ind) dati$FFF <- ifelse(is.na(ind), dati$FFF, ind) > head(dati$FFF, 10) [1] "L" "M" "J" "L" "2" "K" "H" "L" "K" "H" Cheers Petr > -Origi

[R] How do I best create a R procedure from a R file?

2017-02-08 Thread Luca Meyer
Hi, I am working on the following file: > str(elencositi) 'data.frame':641 obs. of 2 variables: $ indirizzo.sito: chr "10ahora.com.ar" "abceconomia.co" "accmag.com" " actu.orange.fr" ... $ nome.sito : chr "10ahora" "ABC economia" "Acc Magazine" "Orange Actu" ... > head(elencositi)