Skip to content

list to data.frame

1 message · Benjamin.STABLER@odot.state.or.us

#
as.data.frame() does not work but as.data.frame.list() does.  Any thoughts?

as.data.frame(time.by.orig)
Error in as.data.frame.default(time.by.orig) : 
        can't coerce array into a data.frame

as.data.frame.list(time.by.orig)
-Works fine

-----Original Message-----
From: Richards, Tom [mailto:richards at upci.pitt.edu]
Sent: Thursday, December 19, 2002 10:24 AM
To: STABLER Benjamin
Subject: RE: [R] list to data.frame


It's because there is no list method for data.frame(), but there is a method
called as.data.frame.list, and thus as.data.frame(time.by.orig) should work
(I haven't tried).

Tom Richards