> Now, how can I add a third column name to that empty df? You could use functions that generate zero-length objects. Examples:
df$newv <- vector(mode="numeric") #logical by default, so <-vector() would give you a zero-length logical df$newi <- integer() df$newf <- factor() S Ellison ******************************************************************* This email and any attachments are confidential. Any use...{{dropped:8}} ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.