Re: [R] "Ghost" values after subsetting

2011-01-13 Thread Jacob Kasper
It is a factor, thank you for pointing me in the right direction. Jacob On Thu, Jan 13, 2011 at 11:12, Sarah Goslee wrote: > 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

Re: [R] "Ghost" values after subsetting

2011-01-13 Thread 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 o

[R] "Ghost" values after subsetting

2011-01-13 Thread Jacob Kasper
I am using subset to select the data I want to use for my analysis and find that after I subset my data frame on one column I get ghost values in the other columns. here is an example: > table(data$Dags) 2008/04/12 2008/04/13 2008/04/16 2008/04/17 2008/04/19 2008/05/06 103