[R] creating horizontal dataframes with column names
Alexy Khrabrov
deliverable at gmail.com
Wed Sep 17 05:52:35 CEST 2008
Greetings -- in order to write back to SQL databases, one needs to
create a dataframe with values. I can get column names of an existing
table with sqlColumns. Say I have a vector of values (if they're all
the same type), or a list (if different). How do I create a dataframe
with column names given by my sqlColumns? To make it concrete, how do
we make a dataframe
A B C
1 2 3
out of
column.names <- LETTERS[1:3]
values <- 1:3
?
Cheers,
Alexy
More information about the R-help
mailing list