Hello,

I am having trouble with the merge function.

I am trying to merge two dataframes.

Before I merge them I can get the value labels by using the command

attr(Dataframe_1$MyVariable,"value.labels")
attr(Dataframe_2$MyVariable,"value.lables")

Personen unter 15 Jahren Präsenz- und Zivildiener      Nicht-Erwerbsperson
                       9                        4                        3
              Arbeitslos             Erwerbstätig
                       2                        1


Personen unter 15 Jahren Präsenz- und Zivildiener      Nicht-Erwerbsperson
                       9                        4                        3
              Arbeitslos             Erwerbstätig
                       2                        1


The value labels vor both Dataframes are the same so that shouldn't be a
problem.

After merging if I type in the same commands again, I get

NULL .

Are the value labels lost by merging? Is there a way that they can be
preserved?

Thank you very much for your help in advance!!

Marion

        [[alternative HTML version deleted]]

______________________________________________
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