Why does c(...) returns a number instead of the string in the example below?
> Location$NamePrint
[1] Burundi
273 Levels: Afghanistan Africa ...
> ParentLocation$NamePrint
[1] Eastern Africa
273 Levels: Afghanistan Africa ...
> c(Location$NamePrint, ParentLocation$NamePrint)
[1] 36 71
These numbers are the position of the strings in the levels?
My goal is to create a vector with these two elements (their string value), using c(Location$NamePrint, ParentLocation$NamePrint)
as.characterlike thisc(as.character(Location$NamePrint), as.character(ParentLocation$NamePrint))