Your code is messed up because you posted in HTML. Also, it is not reproducible 
(e.g. no sample data, incomplete analysis code). (See 
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example
 for more on reproducibility.) Also, this looks very much like homework and the 
Posting Guide (mentioned in the footer of this email) indicates that homework 
is off topic here, and that you should rely on resources provided by your 
educational institution.

If you want to put all of these various values in one table, you will need to 
write code to do so, since you have to specify how you want that table laid 
out. E.g.

resultdf <- data.frame( Mean=mean(res), StdDev=SD(res))

but mixing single valued measures such as mean with vector valued measures such 
as residuals in a single table usually requires repeating the SVM in many rows, 
which is why this often is avoided.

Your unnecessary and inappropriate use of as.data.frame also suggests that you 
need to spend some time studying the Introduction to R document that comes with 
the software learning the difference between vectors, lists and data frames.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnew...@dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.

Enzo Cocca <enzo....@gmail.com> wrote:
>hi
>
>I have this code for a cross validation:
>
>>res <- as.data.frame(CV_Pb_var)$residual>      sqrt(mean(res^2))>     
>mean(res)>      mean(res^2/as.data.frame(CV_Pb_var)$var1.var)
>
>
>I can not seem to export everything in one table
>
>
> also  can I to be exported it graphically?
>
>
>thanks
>
>
>enzo

______________________________________________
R-help@r-project.org mailing list
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.

Reply via email to