Displaying 2 results from an estimated 2 matches for "col34".
Did you mean:
col3
2006 Jan 26
0
If you want to disconnect a database properly, there is the code:)!!!
...2",
:username => "dbuser2",
:password => "dbuser2")
GenTableAs.set_table_name "table_no_42"
GenTableAs.reset_column_information()
obj1 = GenTableAs.new
@col2 = obj1.class.column_names()
obj1["col12"] = 456
obj1["col34"] = "789"
obj1.save
obj1 = nil
GenTableAs.clear_connection # here we disconnect
again the connection
It should give us the name of the columns of two
different tables of different database in @col1 and
@col2 and save the data to
tables.
So hope this will help who which to...
2006 Jan 23
4
Converting from a dataset to a single "column"
I have a dataset of 3 ?columns? and 5 ?rows?.
temp<-data.frame(col1=c(5,10,14,56,7),col2=c(4,2,8,3,34),col3=c(28,4,52,34,67))
I wish to convert this to a single ?column?, with
column 1 on ?top? and column 3 on ?bottom?.
i.e.
5
10
14
56
7
4
2
8
3
34
28
4
52
34
67
Are there any functions that do this, and that will
work well on much larger datasets (e.g. 1000 rows,
6000 columns)?