Skip to content
Prev 246136 / 398506 Next

Changing column names

You don't give us much to go on, but some variant of

country <- c("US", "France", "UK", "NewZealand", "Germany", "Austria", "Italy", "Canada")
result <- read.csv("result.csv", header = FALSE)

names(result) <- country

should do what you want.
Message-ID: <1BDAE2969943D540934EE8B4EF68F95FB27A48C238@EXNSW-MBX03.nexus.csiro.au>
In-Reply-To: <188671.64978.qm@web120302.mail.ne1.yahoo.com>