"The problem is that it gives the result that I want."

That's a new sort of problem.

You show two different merge() commands. What do you expect to happen,
vs what does happen?

Sarah

On Mon, Mar 26, 2012 at 10:12 AM, MSousa <ricardosousa2...@clix.pt> wrote:
> Thanks for the reply.
>
>    I am using the function you gave me.
>
> complete.travel<-merge(travel, city, by.x = "Source", by.y = "cod", all =
> TRUE)
> complete.travel<-merge(travel, city, by.x = "Destine", by.y = "cod", all =
> TRUE
>
>
> The problem is that it gives the result that I want
>   The idea is based on the column of source and intended Identify the
> cities and put a new data structure
>
> The idea is something like this.
> pos Source     city       Destine  city_destine
> 1      1       Barcelona   2       Madrid
> 1      1       Barcelona   3       Lisbon
> 2      3       Lisbon      4       Milan
> 3      2       Madrid      4       Milan
>
>

-- 
Sarah Goslee
http://www.functionaldiversity.org

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to