*************************************************************************

load("D:\\Shopzilla\\CTR\\Data\\Stream 5\\dev_sam2_pos1_2000_50.RData")
ch <- odbcConnectExcel("D:\\Shopzilla\\CTR\\Data\\Stream 5\\pos1_trees.xls", F)
for (x in c(1:10)) {
sqlSave (ch, data.frame(getTree(dev_sam2_pos1.rf, x, "TRUE")), x, T)
}
sqlSave (ch, data.frame(dev_sam2_pos1.rf$importance), 11, T)
odbcClose(ch)
**********************************22222222222222********************
load("D:\\Shopzilla\\CTR\\Data\\Stream 5\\dev_sam2_pos23_2000_50.RData")
ch <- odbcConnectExcel("D:\\Shopzilla\\CTR\\Data\\Stream 5\\pos23_trees.xls", F)
for (x in c(1:10)) {
sqlSave (ch, data.frame(getTree(dev_sam2_pos23.rf, x, "TRUE")), x, T)
}
sqlSave (ch, data.frame(dev_sam2_pos23.rf$importance), 11, T)
odbcClose(ch)
**********************************33333333333333********************
load("D:\\Shopzilla\\CTR\\Data\\Stream 5\\dev_sam2_pos46.RData")
ch <- odbcConnectExcel("D:\\Shopzilla\\CTR\\Data\\Stream 5\\pos46_trees.xls", F)
for (x in c(1:10)) {
sqlSave (ch, data.frame(getTree(dev_sam2_pos46.rf, x, "TRUE")), x, T)
}
sqlSave (ch, data.frame(dev_sam2_pos46.rf$importance), 11, T)
odbcClose(ch)
**********************************44444444444444444********************
load("D:\\Shopzilla\\CTR\\Data\\Stream 5\\dev_sam2_pos711_1000_50.RData")
ch <- odbcConnectExcel("D:\\Shopzilla\\CTR\\Data\\Stream 5\\pos711_trees.xls", F
)
for (x in c(1:10)) {
sqlSave (ch, data.frame(getTree(dev_sam2_pos711.rf, x, "TRUE")), x, T)
}
sqlSave (ch, data.frame(dev_sam2_pos711.rf$importance), 11, T)
odbcClose(ch)
**********************************55555555555555555555********************
load("D:\\Shopzilla\\CTR\\Data\\Stream 5\\dev_sam2_posgt12_500_50.RData")
ch <- odbcConnectExcel("D:\\Shopzilla\\CTR\\Data\\Stream 5\\posgt12_trees.xls",
F)
for (x in c(1:10)) {

sqlSave (ch, data.frame(getTree(dev_sam2_posgt12.rf, x, "TRUE")), x, T)
}
sqlSave (ch, data.frame(dev_sam2_posgt12.rf$importance), 11, T)
odbcClose(ch)
********************************************************************************

> local({pkg <- select.list(sort(.packages(all.available = TRUE)))
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
> utils:::menuInstallPkgs()
--- Please select a CRAN mirror for use in this session --trying URL 'http://cran.stat.nus.edu.sg/bin/windows/contrib/2.9/RODBC_1.3-1.zip'
Content type 'application/zip' length 756974 bytes (739 Kb)
opened URL
downloaded 739 Kb
package 'RODBC' successfully unpacked and MD5 sums checked
The downloaded packages are in
C:\Documents and Settings\Administrator.LATENTVIEWCHN\Local Settings\Tem
p\2\RtmpKm6MDr\downloaded_packages
updating HTML package descriptions
> local({pkg <- select.list(sort(.packages(all.available = TRUE)))
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
> load("D:\\Shopzilla\\CTR\\Data\\Stream 5\\dev_sam2_pos1_2000_50.RData")
> ch <- odbcConnectExcel("D:\\pos1_trees.xls", F)
> for (x in c(1:10)) {
+
+ sqlSave (ch, data.frame(getTree(dev_sam2_pos1.rf, x, "TRUE")), x, T)
+ }
Error in data.frame(getTree(dev_sam2_pos1.rf, x, "TRUE")) :
could not find function "getTree"
> local({pkg <- select.list(sort(.packages(all.available = TRUE)))
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
randomForest 4.5-34
Type rfNews() to see new features/changes/bug fixes.
> for (x in c(1:10)) {
+
+ sqlSave (ch, data.frame(getTree(dev_sam2_pos1.rf, x, "TRUE")), x, T)
+ }
> load("D:\\Shopzilla\\CTR\\Data\\Stream 5\\dev_sam2_pos1_2000_50.RData")
> ch <- odbcConnectExcel("D:\\Shopzilla\\CTR\\Data\\Stream 5\\pos1_trees.xls", F
)
>
> for (x in c(1:10)) {
+
+ sqlSave (ch, data.frame(getTree(dev_sam2_pos1.rf, x, "TRUE")), x, T)
+ }
Warning message:
closing unused RODBC handle 1
>
> odbcClose(ch)
> load("D:\\Shopzilla\\CTR\\Data\\Stream 5\\dev_sam2_pos1_2000_50.RData")
> ch <- odbcConnectExcel("D:\\Shopzilla\\CTR\\Data\\Stream 5\\pos1_trees.xls", F
)
>
> for (x in c(1:10)) {
+
+ sqlSave (ch, data.frame(getTree(dev_sam2_pos1.rf, x, "TRUE")), x, T)

+ }
> sqlSave (ch, data.frame(dev_sam2_pos1.rf$importance, 11, T)
+ odbcClose(ch)
Error: unexpected symbol in:
"sqlSave (ch, data.frame(dev_sam2_pos1.rf$importance, 11, T)
odbcClose"
> dev_sam2_pos1.rf$importance
0
1 MeanDecreaseAccuracy
IND_IMPUTED_MFT
-2.335249e-03 0.0052095738
-2.145464e-03
IND_IMPUTED_MID
-4.958533e-04 0.0016896379
-4.407900e-04
MFT_SPEC2
-1.706909e-02 0.0359470443
-1.573237e-02
IND_IMPUTED_MFT
IND_IMPUTED_MID
MFT_SPEC2
IND_IMPUTED_MFT_SPEC

MeanDecreaseGini
2.1486847
1.5954245
26.2243620
1.6679762

> sqlSave (ch, data.frame(data.frame(dev_sam2_pos1.rf$importance), 11, T)
+ )
Error in sqlSave(ch, data.frame(data.frame(dev_sam2_pos1.rf$importance), :
data.frame dev_sam2_pos1.rf$importance should be a name
> sqlSave (ch, data.frame(dev_sam2_pos1.rf$importance), 11, T)
> odbcClose(ch)
> load("D:\\Shopzilla\\CTR\\Data\\Stream 5\\dev_sam2_pos23_2000_50.RData")
> ch <- odbcConnectExcel("D:\\Shopzilla\\CTR\\Data\\Stream 5\\pos23_trees.xls",
F)
> ls()
[1] "ch"
"dev_sam2_pos1"
"dev_sam2_pos1.rf"
[4] "dev_sam2_pos23"
"dev_sam2_pos23.rf" "x"
> for (x in c(1:10)) {
+
+ sqlSave (ch, data.frame(getTree(dev_sam2_pos23.rf, x, "TRUE")), x, T)
+ }
> sqlSave (ch, data.frame(dev_sam2_pos1.rf$importance), 11, T)
> odbcClose(ch)
> ls()
[1] "ch"
"dev_sam2_pos1"
"dev_sam2_pos1.rf"
[4] "dev_sam2_pos23"
"dev_sam2_pos23.rf" "x"
********************************************************************************
*********
> load("D:\\Shopzilla\\CTR\\Data\\Stream 5\\dev_sam2_pos46.RData")
> ch <- odbcConnectExcel("D:\\Shopzilla\\CTR\\Data\\Stream 5\\pos46_trees.xls",
F)
> ls()
[1] "ch"
"dev_sam2_pos1"
"dev_sam2_pos1.rf"
[4] "dev_sam2_pos23"
"dev_sam2_pos23.rf" "dev_sam2_pos46"
[7] "dev_sam2_pos46.rf" "x"
>
> for (x in c(1:10)) {
+
+ sqlSave (ch, data.frame(getTree(dev_sam2_pos46.rf, x, "TRUE")), x, T)
+ }
> sqlSave (ch, data.frame(dev_sam2_pos1.rf$importance), 11, T)
> odbcClose(ch)
********************************************************************************
******
> load("D:\\Shopzilla\\CTR\\Data\\Stream 5\\dev_sam2_pos711_1000_50.RData")

> ch <- odbcConnectExcel("D:\\Shopzilla\\CTR\\Data\\Stream 5\\pos711_trees.xls",
F)
> ls()
[1] "ch"
"dev_sam2_pos1"
"dev_sam2_pos1.rf"
[4] "dev_sam2_pos23"
"dev_sam2_pos23.rf" "dev_sam2_pos46"
[7] "dev_sam2_pos46.rf" "dev_sam2_pos711"
"dev_sam2_pos711.rf"
[10] "x"
>
> for (x in c(1:10)) {
+
+ sqlSave (ch, data.frame(getTree(dev_sam2_pos711.rf, x, "TRUE")), x, T)
+ }
> sqlSave (ch, data.frame(dev_sam2_pos1.rf$importance), 11, T)
> odbcClose(ch)
********************************************************************************
**********
>
> load("D:\\Shopzilla\\CTR\\Data\\Stream 5\\dev_sam2_posgt12_500_50.RData")
> ch <- odbcConnectExcel("D:\\Shopzilla\\CTR\\Data\\Stream 5\\posgt12_trees.xls"
, F)
> ls()
[1] "ch"
"dev_sam2_pos1"
"dev_sam2_pos1.rf"
[4] "dev_sam2_pos23"
"dev_sam2_pos23.rf" "dev_sam2_pos46"
[7] "dev_sam2_pos46.rf" "dev_sam2_pos711"
"dev_sam2_pos711.rf"
[10] "dev_sam2_posgt12"
"dev_sam2_posgt12.rf" "x"
>
> for (x in c(1:10)) {
+
+ sqlSave (ch, data.frame(getTree(dev_sam2_posgt12.rf, x, "TRUE")), x, T)
+ }
> sqlSave (ch, data.frame(dev_sam2_pos1.rf$importance), 11, T)
> odbcClose(ch)
********************************************************************************
*********
> load("D:\\Shopzilla\\CTR\\Data\\Stream 5\\dev_sam2_pos23_2000_50.RData")
> ch <- odbcConnectExcel("D:\\Shopzilla\\CTR\\Data\\Stream 5\\pos23_trees.xls",
F)
>
> for (x in c(1:10)) {
+
+ sqlSave (ch, data.frame(getTree(dev_sam2_pos23.rf, x, "TRUE")), x, T)
+ }
> sqlSave (ch, data.frame(dev_sam2_pos23.rf$importance), 11, T)
> odbcClose(ch)
********************************************************************************
**********
>
> load("D:\\Shopzilla\\CTR\\Data\\Stream 5\\dev_sam2_pos46.RData")
> ch <- odbcConnectExcel("D:\\Shopzilla\\CTR\\Data\\Stream 5\\pos46_trees.xls",
F)
>
> for (x in c(1:10)) {
+
+ sqlSave (ch, data.frame(getTree(dev_sam2_pos46.rf, x, "TRUE")), x, T)
+ }
> sqlSave (ch, data.frame(dev_sam2_pos46.rf$importance), 11, T)
> odbcClose(ch)
********************************************************************************

**********
>
> load("D:\\Shopzilla\\CTR\\Data\\Stream 5\\dev_sam2_pos711_1000_50.RData")
> ch <- odbcConnectExcel("D:\\Shopzilla\\CTR\\Data\\Stream 5\\pos711_trees.xls",
F)
>
> for (x in c(1:10)) {
+
+ sqlSave (ch, data.frame(getTree(dev_sam2_pos711.rf, x, "TRUE")), x, T)
+ }
> sqlSave (ch, data.frame(dev_sam2_pos711.rf$importance), 11, T)
> odbcClose(ch)
********************************************************************************
**********
>
> load("D:\\Shopzilla\\CTR\\Data\\Stream 5\\dev_sam2_posgt12_500_50.RData")
> ch <- odbcConnectExcel("D:\\Shopzilla\\CTR\\Data\\Stream 5\\posgt12_trees.xls"
, F)
>
> for (x in c(1:10)) {
+
+ sqlSave (ch, data.frame(getTree(dev_sam2_posgt12.rf, x, "TRUE")), x, T)
+ }
> sqlSave (ch, data.frame(dev_sam2_posgt12.rf$importance), 11, T)
> odbcClose(ch)
>
********************************************************************************
*****
R version 2.11.1 (2010-05-31)
Copyright (C) 2010 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
********************************************************************************
****
> load("D:\\Shopzilla\\CTR\\Data\\Stream 5\\dev_sam2_pos1_2000_50.RData")
> ch <- odbcConnectExcel("D:\\pos1_trees.xls", F)
Error: could not find function "odbcConnectExcel"
> local({pkg <- select.list(sort(.packages(all.available = TRUE)),graphics=TRUE)
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
> utils:::menuInstallPkgs()
--- Please select a CRAN mirror for use in this session --trying URL 'http://cran.stat.nus.edu.sg/bin/windows64/contrib/2.11/RODBC_1.3-2.z
ip'

Content type 'application/zip' length 788863 bytes (770 Kb)
opened URL
downloaded 770 Kb
package 'RODBC' successfully unpacked and MD5 sums checked
The downloaded packages are in
C:\Documents and Settings\Administrator.LATENTVIEWCHN\Local Settings\Tem
p\2\RtmphSIXyb\downloaded_packages
> local({pkg <- select.list(sort(.packages(all.available = TRUE)),graphics=TRUE)
+ if(nchar(pkg)) library(pkg, character.only=TRUE)})
> ch <- odbcConnectExcel("D:\\pos1_trees.xls", F)
Error in odbcConnectExcel("D:\\pos1_trees.xls", F) :
odbcConnectExcel is only usable with 32-bit Windows
>

Sign up to vote on this title
UsefulNot useful