Skip to content

creating column based on another variable

3 messages · Jeff Miller, Uwe Ligges, John Kane

#
Jeff Miller wrote:
I don't understand the semantics here. You are mixing cities and countries.
Now you are mixing a single country and a whole continent.

Is this some homework?

You should consider to tell R which cities are in the US and which 
countries are in Europe and than try to match appropriately ...
As the footer of this message says:
"PLEASE do read the posting guide 
http://www.R-project.org/posting-guide.html"
which tells you to read introductory material and to specify some code 
examples and details that you already have got. Then it's much easier 
for us to help.

Uwe Ligges
#
--- Jeff Miller <jeffmiller at adsam.com> wrote:

            
?cbind
?write.table
?write.csv

It might be a good idea to read a bit about how R
works.  A handy tutorial is 
http://www.math.ilstu.edu/dhkim/Rstuff/Rtutor.html

and you should have a look at the FAQ and the Intro to
R   both available the main R site
http://www.r-project.org/