Skip to content

"Ghost" values after subsetting

3 messages · Jacob Kasper, Sarah Goslee

#
Hi Jacob,

You don't give us enough information to answer your question. Specifically,
what is your dataframe?
str(data)
would be helpful (and calling your data data is not usually wise).

My guess is that Dags is actually a factor -- do you want it to be a factor? --
and so you are retaining all of the levels. You need to think about how you
are getting the data into R, whether you want a factor for that column, and
whether you should drop the unused levels.

Reading the help for factor may be enlightening.

Sarah
On Thu, Jan 13, 2011 at 3:57 AM, Jacob Kasper <jacobkasper at gmail.com> wrote: