[R] formatting column names of data frame

2013-05-17 Thread Patrick Leyshock
Is there any way to format the headers of data frames, for printing?

I am using Sweave to generate formatted reports.  In Sweave, I read in a
data.frame:

  result - read.table(path.to.table);

then display it:

  print.data.frame(result);

This gives me what I expect in the eventual final output:

RecordAverage  Maximum
1   34  899
2   14  15
3   433 1003
... ... ...

What I am hoping to do is distinguish one or more of the column headers,
for example, I want Average or Maximum to be bold, underlined, etc.,
just some way to make the column name stand out visually.

Any idea if this is possible?  Any suggestions appreciated.

[[alternative HTML version deleted]]

__
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.


Re: [R] memory profiling

2010-11-22 Thread Patrick Leyshock
 Using:

   summaryRprof(memory=both)

 did the trick, thank you.  I had not been using that setting when calling
 summaryRprof.

 Thanks, Patrick

 2010/11/20 Uwe Ligges lig...@statistik.tu-dortmund.de



 On 19.11.2010 21:48, Patrick Leyshock wrote:

 I'm trying to configure Version 2.12.0 or R to do memory profiling.

 I've reconfigured the code:

 % ./compile --enable-memory-profiling=YES

 and verified that it's configured correctly by examining the output.  I
 then
 rebuild R:

 % make

 Then I fire up R and run a script, using Rprof with the memory-profiling
 switch set to TRUE:

 Rprof(output, memory.profiling=TRUE);
 # a bunch of R code
 Rprof(NULL);



 Wen I do

 summaryRprof(memory=both)

 I see an additional column ...

 but since you have not said what you tried exactly, we cannot help very
 much.

 Uwe Ligges



  When I examine the output, however, using either R CMD Rprof from the
 shell,
 or summaryRprof from within R, the output I see is identical to the
 output I
 got when I ran R BEFORE I recompiled with memory profiling enabled.

 Anyone see something that I'm missing?

 Thanks, Patrick

[[alternative HTML version deleted]]

 __
 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.




[[alternative HTML version deleted]]

__
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.


Re: [R] memory profiling

2010-11-22 Thread Patrick Leyshock
Using:

  summaryRprof(memory=both)

did the trick, thank you.  I had not been using that setting when calling
summaryRprof.

Thanks, Patrick

2010/11/20 Uwe Ligges lig...@statistik.tu-dortmund.de



 On 19.11.2010 21:48, Patrick Leyshock wrote:

 I'm trying to configure Version 2.12.0 or R to do memory profiling.

 I've reconfigured the code:

 % ./compile --enable-memory-profiling=YES

 and verified that it's configured correctly by examining the output.  I
 then
 rebuild R:

 % make

 Then I fire up R and run a script, using Rprof with the memory-profiling
 switch set to TRUE:

 Rprof(output, memory.profiling=TRUE);
 # a bunch of R code
 Rprof(NULL);



 Wen I do

 summaryRprof(memory=both)

 I see an additional column ...

 but since you have not said what you tried exactly, we cannot help very
 much.

 Uwe Ligges



  When I examine the output, however, using either R CMD Rprof from the
 shell,
 or summaryRprof from within R, the output I see is identical to the output
 I
 got when I ran R BEFORE I recompiled with memory profiling enabled.

 Anyone see something that I'm missing?

 Thanks, Patrick

[[alternative HTML version deleted]]

 __
 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.



[[alternative HTML version deleted]]

__
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.


[R] memory profiling

2010-11-19 Thread Patrick Leyshock
I'm trying to configure Version 2.12.0 or R to do memory profiling.

I've reconfigured the code:

% ./compile --enable-memory-profiling=YES

and verified that it's configured correctly by examining the output.  I then
rebuild R:

% make

Then I fire up R and run a script, using Rprof with the memory-profiling
switch set to TRUE:

Rprof(output, memory.profiling=TRUE);
# a bunch of R code
Rprof(NULL);

When I examine the output, however, using either R CMD Rprof from the shell,
or summaryRprof from within R, the output I see is identical to the output I
got when I ran R BEFORE I recompiled with memory profiling enabled.

Anyone see something that I'm missing?

Thanks, Patrick

[[alternative HTML version deleted]]

__
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.