[R] noob requesting help

capital_P petervw48 at hotmail.com
Mon Jun 18 14:32:37 CEST 2012


Rui Barradas wrote
> 
> Try
> 
> names(departures) <- NULL
> dep <- data.frame(departures[ !sapply(departures, is.null) ])
> 
> You now have data.frame 'dep'.
> 

dep <- data.frame(departures[ !sapply(departures, is.null) ])
Error in data.frame(`121.1` = list(device_info_serial = integer(0), hour =
integer(0),  : 
  arguments imply differing number of rows: 0, 1, 2

> dep <- departures
> names(dep) <- NULL
> dep <- data.frame(dep)
Error in data.frame(list(device_info_serial = integer(0), hour = integer(0), 
: 
  arguments imply differing number of rows: 0, 1, 2

--
View this message in context: http://r.789695.n4.nabble.com/noob-requesting-help-tp4632803p4633691.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list