Hi Josh,
Here is a suggestion:
colnames(x)[1] <- 'mynewname'
colnames(x)
# [1] "mynewname" "apples""bananas" "cherries"
HTH,
Jorge
On Wed, Jun 9, 2010 at 1:45 PM, Josh B <> wrote:
> Hi all,
>
> I have a very simple problem that I cannot seem to find the answer to.
> Consider the follow
Try:
names(x)[1] <- 'pears'
On Wed, Jun 9, 2010 at 2:45 PM, Josh B wrote:
> Hi all,
>
> I have a very simple problem that I cannot seem to find the answer to.
> Consider the following toy dataset:
>
> x <- read.table(textConnection("V1 apples bananas cherries
> indv.1 7 8 4 3
> indv.2 7 7 4 9")
2 matches
Mail list logo