[R] Error in split.default

Jim Lemon jim at bitwrit.com.au
Fri May 9 07:09:44 CEST 2014


On Thu, 8 May 2014 09:01:06 PM Jason Rupert wrote:
> > split(df, Status)
> 
> Error in split.default(x = seq_len(nrow(x)), f = f, drop = drop, ...) :
>   object 'Status' not found
> 
> > names(PCR_duplicatedCheck_df)
> 
>  [1] "Key"  "MinCreated"  "MaxUpdated"         
>  [4] "Status"
> 
> I am totally confused...what do I need to try next?
> 
Hi Jason,
First, try this:

split(PCR_duplicatedCheck_df,PCR_duplicatedCheck_df$Status)

Then, if you don't have a copy of PCR_duplicatedCheck_df named "df" 
in your workspace, and you haven't "attached" it, that is the cause of 
the error.

Jim



More information about the R-help mailing list