Message-ID: <CAM_vjum5FUTgzEE16ZCYgAa0wE16ZdqipYM8-BaykQzK5CqcqQ@mail.gmail.com>
Date: 2013-03-28T15:55:39Z
From: Sarah Goslee
Subject: unique not working
In-Reply-To: <5ADC13CB-9AB7-44A3-BC90-D968AC83706F@me.com>
Hi,
I'm confused.
On Thu, Mar 28, 2013 at 10:49 AM, Nicole Ford <nicoleford74 at gmail.com> wrote:
> i am using mac OSX 10.7.5, running R version 2.15.2 (2012-10-26) -- "Trick or Treat"
>
> when i do:
> uncountry <- unique(wvsAB[,7])
> wvsAB$numcountry <- match(wvsAB$country, uncountry)
> "unstate" isn't attaching.
What's unstate? What does "isn't attaching" mean?
Why don't you provide a sample of your data with dput() and tell us
what you're trying to accomplish so we can help.
>> library(base)
>> uncountry <- unique(wvsAB[,7])
>> wvsAB$numcountry <- match(wvsAB$country, uncountry)
>> ls(wvsAB)
> [1] "age" "country" "cpi" "dem" "diversity" "educ" "gender" "income"
> [9] "net" "numcountry" "trust"
>
> thanks in advance for any help.
>
>
--
Sarah Goslee
http://www.functionaldiversity.org