Re: [R] noob requesting help

2012-06-18 Thread capital_P
Rui Barradas wrote > > sorry about the misleading tip. > This should do it. > > do.call(rbind, dep) > No problem at all. That did the trick. Thank you both so much for your help. I am forever in your debt. -- View this message in context: http://r.789695.n4.nabble.com/noob-requesting-help-

Re: [R] noob requesting help

2012-06-18 Thread capital_P
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

Re: [R] noob requesting help

2012-06-18 Thread capital_P
David Winsemius wrote > > That's going to remove a lot of rows. > > Since you are not telling us what columns correspond to those > concepts, I'm going to use the terms you are. Something along the > lines of: > > require(lattice) > histogram( ~ hours | bird, data=dat2, nint =24 , xlim=c(0

Re: [R] noob requesting help

2012-06-17 Thread capital_P
Rui Barradas wrote > > It's stringsAsFactors = FALSE, just one '='. > > sapply(dat, length) > > It should return 4 times the value 34773. > > use dput() > it worked! > dat2 <- data.frame(dat, stringsAsFactors = FALSE) > sapply(dat2, length) device_info_serial hour

Re: [R] noob requesting help

2012-06-16 Thread capital_P
David Winsemius wrote > >> Try >> >> dat2 <- data.frame(do.call(cbind, dat), stringsAsFactors=FALSE) > > Use instead: > > dat2 <- data.frame( dat, stringsAsFactors=FALSE) > Both do not seem to work: > dat2 <- data.frame(do.call(cbind, dat), stringsAsFactors=FALSE) Error: cannot allocate vect

Re: [R] noob requesting help

2012-06-13 Thread capital_P
Rui Barradas wrote > > Sorry, but the output of dput() starts with 'structure', not like what > you've posted. > And there are much more than 20 dates in the beginning. > > The posting guide is easy to find > apologies for my earlier ignorance. It seems the output of dput(head(data, 20) is t

[R] noob requesting help

2012-06-08 Thread capital_P
I'm fairly new to R and still learning how to use it. I could really use some help with the following problem. I have a huge .csv file containing thousands of measurements on 34 different birds. Measurements include longitude, latitude, altitude, speed, time, etc. All birds have a different number