Output In R

classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

Output In R

Shivi82
Hello All,

 As i am a newbie in R so most of you would have seen this question zillion times. I searched for the answer on this forum as well on other various forums however could not find the answer i am looking for.

 I am dplyr package and used a very basic code:
 select(june,city,state,mod)

 The data sheet i am using has more than 3 million observations but the console does not print all of them and show only few options and give a message:
[ reached getOption("max.print") -- omitted 376341 rows ]


 What is the option that i need to add to see all values in the output. Similarly once i scroll down and then if i scroll up i am not able to see the values starting from row #1. Please suggest
Reply | Threaded
Open this post in threaded view
|

Re: Output In R

Scott Tetrick-2
?write.csv and look at with the editor of choice.



On Tue, Aug 18, 2015 at 6:41 AM, Shivi82 <[hidden email]> wrote:

> Hello All,
>
>  As i am a newbie in R so most of you would have seen this question zillion
> times. I searched for the answer on this forum as well on other various
> forums however could not find the answer i am looking for.
>
>  I am dplyr package and used a very basic code:
>  select(june,city,state,mod)
>
>  The data sheet i am using has more than 3 million observations but the
> console does not print all of them and show only few options and give a
> message:
> [ reached getOption("max.print") -- omitted 376341 rows ]
>
>
>  What is the option that i need to add to see all values in the output.
> Similarly once i scroll down and then if i scroll up i am not able to see
> the values starting from row #1. Please suggest
>
>
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/Output-In-R-tp4711227.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> 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]]

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
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 | Threaded
Open this post in threaded view
|

Re: Output In R

Boris Steipe
In reply to this post by Shivi82
That's a very odd request: surely you would not want to visually inspect 3 million rows in the console?

Typically one would assign the (large) results of a function to a variable for further processing. If you need to inspect the beginning and end of your dataset, use head() and tail().

Try getOption("max.print") to see what it is set to: it's a large and reasonable value, remember your console uses memory and at some point it needs to truncate the values you store in the console, to stay within its allotted memory. You can change the "max.print" option, but I can't see how that would be reasonable.

Cheers,
Boris




On Aug 18, 2015, at 8:41 AM, Shivi82 <[hidden email]> wrote:

> Hello All,
>
> As i am a newbie in R so most of you would have seen this question zillion
> times. I searched for the answer on this forum as well on other various
> forums however could not find the answer i am looking for.
>
> I am dplyr package and used a very basic code:
> select(june,city,state,mod)
>
> The data sheet i am using has more than 3 million observations but the
> console does not print all of them and show only few options and give a
> message:
> [ reached getOption("max.print") -- omitted 376341 rows ]
>
>
> What is the option that i need to add to see all values in the output.
> Similarly once i scroll down and then if i scroll up i am not able to see
> the values starting from row #1. Please suggest
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Output-In-R-tp4711227.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> 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.

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
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 | Threaded
Open this post in threaded view
|

Re: Output In R

Loris Bennett-2
In reply to this post by Shivi82
Shivi82 <[hidden email]> writes:

> Hello All,
>
>  As i am a newbie in R so most of you would have seen this question zillion
> times. I searched for the answer on this forum as well on other various
> forums however could not find the answer i am looking for.
>
>  I am dplyr package and used a very basic code:
>  select(june,city,state,mod)
>
>  The data sheet i am using has more than 3 million observations but the
> console does not print all of them and show only few options and give a
> message:
> [ reached getOption("max.print") -- omitted 376341 rows ]
>
>
>  What is the option that i need to add to see all values in the output.
> Similarly once i scroll down and then if i scroll up i am not able to see
> the values starting from row #1. Please suggest

You need to sharpen your searching skills.  The first result of
looking  for

r max.print

via a well-known search engine is a question on StackOverflow.  One of
the answers given there is to set the value of max.print in the
following manner:

options(max.print=999999)

I'll leave finding the appropriate value as an exercise for the reader.

Cheers,

Loris

--
This signature is currently under construction.

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
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 | Threaded
Open this post in threaded view
|

Re: Output In R

glsnow
In reply to this post by Shivi82
I would suggest that instead of trying to view all the results in the
console that you save the result into a object then use the View (note
the capitol V) function to be able to scroll through the results.  The
head and tail functions have already been mentioned and I second their
use for a quick view.  Since you are already using dplyr you should
look at the slice (and possibly filter) function for another way to
display pieces of the resulting object.

On Tue, Aug 18, 2015 at 6:41 AM, Shivi82 <[hidden email]> wrote:

> Hello All,
>
>  As i am a newbie in R so most of you would have seen this question zillion
> times. I searched for the answer on this forum as well on other various
> forums however could not find the answer i am looking for.
>
>  I am dplyr package and used a very basic code:
>  select(june,city,state,mod)
>
>  The data sheet i am using has more than 3 million observations but the
> console does not print all of them and show only few options and give a
> message:
> [ reached getOption("max.print") -- omitted 376341 rows ]
>
>
>  What is the option that i need to add to see all values in the output.
> Similarly once i scroll down and then if i scroll up i am not able to see
> the values starting from row #1. Please suggest
>
>
>
> --
> View this message in context: http://r.789695.n4.nabble.com/Output-In-R-tp4711227.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> 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.



--
Gregory (Greg) L. Snow Ph.D.
[hidden email]

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
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 | Threaded
Open this post in threaded view
|

Re: Output In R

Shivi82
In reply to this post by Boris Steipe
HI Boris,

The reason i want to see or show 3 million rows in console is that i need to present it to a business user.

So here my end objective is to present the final output to the business user. So lets say when i write a code:
select(june,waybill:type,contains("sfxcode")) so here there could be multiple instances where sfx code could appear which will not accommodate in console. I tried using max print option and increased to (max.print=999999) but still only shows few rows of data.

What other option to i have. Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Output In R

Shivi82
In reply to this post by Loris Bennett-2
Hi Loris,

I have already tried options(max.print=999999) but does not show the desired result.
As posted above it want to share the outcome with the business owner where there could be multiple entries.

Reply | Threaded
Open this post in threaded view
|

Re: Output In R

jholtman
At least provide a sample of the data and then the desired output.  All we
get from your email is that it "does not show the desired result" and we
are at a lost to understand what that is.  I know it was suggested that you
write it out as a CSV file and then you can use EXCEL to page through the
data.


Jim Holtman
Data Munger Guru

What is the problem that you are trying to solve?
Tell me what you want to do, not how you want to do it.

On Wed, Aug 19, 2015 at 1:20 AM, Shivi82 <[hidden email]> wrote:

> Hi Loris,
>
> I have already tried options(max.print=999999) but does not show the
> desired
> result.
> As posted above it want to share the outcome with the business owner where
> there could be multiple entries.
>
>
>
>
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/Output-In-R-tp4711227p4711264.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> 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]]

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
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 | Threaded
Open this post in threaded view
|

Re: Output In R

S Ellison-2
In reply to this post by Shivi82
> I have already tried options(max.print=999999) but does not show the desired
> result.
> As posted above it want to share the outcome with the business owner where
> there could be multiple entries.

Then just print the multiple entries. See ?duplicated for finding them

Otherwise, use things like
> head(tail(d, 90000), 30)
or
> d[10000:100030, ]
to print 30 lines at a time.







*******************************************************************
This email and any attachments are confidential. Any use...{{dropped:8}}

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
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 | Threaded
Open this post in threaded view
|

Re: Output In R

Shenglin Chen
This post has NOT been accepted by the mailing list yet.
In reply to this post by Shivi82
Try this:

View(yourdata)

or

options(dplyr.print_max = Inf)

Shenglin
Reply | Threaded
Open this post in threaded view
|

Re: Output In R

Shivi82
In reply to this post by jholtman
Hi Jim,

Please see the sample code:
ak<-read.csv("June.csv", header = TRUE)
ak%>%select(sfxcode,mod,chargedweight)%>%filter(mod=='AIR')

what i am trying to find is selecting the required var and then selecting only AIR as a mode of transportation from mod.
I am getting the output but the total rows which fulfil this condition is 10500 where console shows only 3300.
I want to share the output i.e. 10500 rows to my business. So want to see the possible options to share the results with the business. R Markdown & R Sweave might help - please suggest.
Reply | Threaded
Open this post in threaded view
|

Re: Output In R

Jeff Newmiller
You really should not be using the console as a way to transfer large amounts of data. CSV files are much better, because sane people don't spend their time looking through thousands of rows of data. You should be giving the data to users in a form where they can filter it down for their needs, or better yet you should be filtering it for them to obtain more focused results.

If you won't be dissuaded from dumping this data on people then Sweave and rmarkdown can be used for making large tables. The nuts and bolts of those tools are not really on topic here because they involve only a very little R but mostly need skills in LaTeX or HTML/CSS respectively.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<[hidden email]>        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.

On August 20, 2015 10:25:18 PM PDT, Shivi82 <[hidden email]> wrote:

>Hi Jim,
>
>Please see the sample code:
>ak<-read.csv("June.csv", header = TRUE)
>ak%>%select(sfxcode,mod,chargedweight)%>%filter(mod=='AIR')
>
>what i am trying to find is selecting the required var and then
>selecting
>only AIR as a mode of transportation from mod.
>I am getting the output but the total rows which fulfil this condition
>is
>10500 where console shows only 3300.
>I want to share the output i.e. 10500 rows to my business. So want to
>see
>the possible options to share the results with the business. R Markdown
>& R
>Sweave might help - please suggest.
>
>
>
>--
>View this message in context:
>http://r.789695.n4.nabble.com/Output-In-R-tp4711227p4711335.html
>Sent from the R help mailing list archive at Nabble.com.
>
>______________________________________________
>[hidden email] mailing list -- To UNSUBSCRIBE and more, see
>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.

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
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 | Threaded
Open this post in threaded view
|

Re: Output In R

Shivi82
Thanks Jeff, this is helpful.
The reason i am curious to know this is because I have worked for a long duration in SAS where in it gives us the flexibility to create a data set of our analysis and then we can easily detail out the same to the end user.

In R seems like View or Sweave  or Shiny are the alternative.
Reply | Threaded
Open this post in threaded view
|

Re: Output In R

John Kane
We are talking at cross-purposes here because SAS and R are radically different beasts. Just about everything you did in SAS does not work / is wrong /i s illegal/ is immoral / and possibly fattening.

If you have not seen it, you may find Bob Muenchen's pdf and/or the expanded book R FOR SAS AND SPSS USERS ( https://science.nature.nps.gov/im/datamgmt/statistics/R/documents/R_for_SAS_SPSS_users.pdf ) useful.

It is very easy to create the data set you want. You just need to think in R's somewhat twisted way.  Well if twisted my mind for the first 6 weeks that I used it.

Let's say you are doing some analysis. Don't send the data to the console. Instead save it in a R object (not sure if this is the correct term--I am sure the purists will correct me.)


I am going to create a data.frame called dat1 (pretend it is your data).


#create make-believe data
dat1  <-  data.frame(matrix( rnorm(100), ncol = 5))

#Save dat1 as an R file. Handy for your work not great as a way
#to pass around data unless the client knows R and has R installed

save( dat1, file = "~/Rjunk/ mydata.RData")

#Save as a .csv file. Fast easy and can be opened in any
#text editor, spreadsheet or even a word processor.

write.csv(dat1, file = "~/Rjunk/ mydata.csv")



To produce a Latex file and get a pdf.

One starts with a  .Rnw (i.e. plain text with a .Rnw suffix)  file and then compiles it.
I used the command  Rscript -e "library(knitr); knit('./Shiv1.Rnw')" where Shiv.Rnw was my LaTeX / knitr file.  It is easier and faster to use RStudio for  this.

You will probably need to install the xtable package and depending in your LaTeX version you may need to install booktabs.

########Start Latex file###################
\documentclass[12pt,letterpaper]{article}
\usepackage[utf8]{inputenc}
\usepackage{booktabs}
\title{Magnum Opus Meum}
\author{jrkrideau }
\begin{document}

\maketitle

<<atable, echo=FALSE, results="asis">>=
library(xtable)
dat1  <-  data.frame(matrix( rnorm(100), ncol = 5))
dat1.table  <-  xtable(dat1)
print(dat1.table,
include.rownames=FALSE,
booktabs = TRUE)
@

\end{document}

########End Latex file####################

John Kane
Kingston ON Canada


> -----Original Message-----
> From: [hidden email]
> Sent: Fri, 21 Aug 2015 12:26:50 -0700 (PDT)
> To: [hidden email]
> Subject: Re: [R] Output In R
>
> Thanks Jeff, this is helpful.
> The reason i am curious to know this is because I have worked for a long
> duration in SAS where in it gives us the flexibility to create a data set
> of
> our analysis and then we can easily detail out the same to the end user.
>
> In R seems like View or Sweave  or Shiny are the alternative.
>
>
>
>
> --
> View this message in context:
> http://r.789695.n4.nabble.com/Output-In-R-tp4711227p4711368.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> 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.

____________________________________________________________
FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
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 | Threaded
Open this post in threaded view
|

Re: Output In R

Marc Schwartz-3

> On Aug 22, 2015, at 8:49 AM, John Kane <[hidden email]> wrote:
>
> We are talking at cross-purposes here because SAS and R are radically different beasts. Just about everything you did in SAS does not work / is wrong / is illegal / is immoral / and possibly fattening.


Fortune candidate!

:-)

Regards,

Marc Schwartz


>
> If you have not seen it, you may find Bob Muenchen's pdf and/or the expanded book R FOR SAS AND SPSS USERS ( https://science.nature.nps.gov/im/datamgmt/statistics/R/documents/R_for_SAS_SPSS_users.pdf ) useful.
>
> It is very easy to create the data set you want. You just need to think in R's somewhat twisted way.  Well if twisted my mind for the first 6 weeks that I used it.
>
> Let's say you are doing some analysis. Don't send the data to the console. Instead save it in a R object (not sure if this is the correct term--I am sure the purists will correct me.)
>
>
> I am going to create a data.frame called dat1 (pretend it is your data).
>
>
> #create make-believe data
> dat1  <-  data.frame(matrix( rnorm(100), ncol = 5))
>
> #Save dat1 as an R file. Handy for your work not great as a way
> #to pass around data unless the client knows R and has R installed
>
> save( dat1, file = "~/Rjunk/ mydata.RData")
>
> #Save as a .csv file. Fast easy and can be opened in any
> #text editor, spreadsheet or even a word processor.
>
> write.csv(dat1, file = "~/Rjunk/ mydata.csv")
>
>
>
> To produce a Latex file and get a pdf.
>
> One starts with a  .Rnw (i.e. plain text with a .Rnw suffix)  file and then compiles it.
> I used the command  Rscript -e "library(knitr); knit('./Shiv1.Rnw')" where Shiv.Rnw was my LaTeX / knitr file.  It is easier and faster to use RStudio for  this.
>
> You will probably need to install the xtable package and depending in your LaTeX version you may need to install booktabs.
>
> ########Start Latex file###################
> \documentclass[12pt,letterpaper]{article}
> \usepackage[utf8]{inputenc}
> \usepackage{booktabs}
> \title{Magnum Opus Meum}
> \author{jrkrideau }
> \begin{document}
>
> \maketitle
>
> <<atable, echo=FALSE, results="asis">>=
> library(xtable)
> dat1  <-  data.frame(matrix( rnorm(100), ncol = 5))
> dat1.table  <-  xtable(dat1)
> print(dat1.table,
> include.rownames=FALSE,
> booktabs = TRUE)
> @
>
> \end{document}
>
> ########End Latex file####################
>
> John Kane
> Kingston ON Canada
>
>
>> -----Original Message-----
>> From: [hidden email]
>> Sent: Fri, 21 Aug 2015 12:26:50 -0700 (PDT)
>> To: [hidden email]
>> Subject: Re: [R] Output In R
>>
>> Thanks Jeff, this is helpful.
>> The reason i am curious to know this is because I have worked for a long
>> duration in SAS where in it gives us the flexibility to create a data set
>> of
>> our analysis and then we can easily detail out the same to the end user.
>>
>> In R seems like View or Sweave  or Shiny are the alternative.
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://r.789695.n4.nabble.com/Output-In-R-tp4711227p4711368.html
>> Sent from the R help mailing list archive at Nabble.com.
>>
>> ______________________________________________
>> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
>> 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.
>
> ____________________________________________________________
> FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!
>
> ______________________________________________
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> 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.

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
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 | Threaded
Open this post in threaded view
|

Re: Output In R

John Kane
In reply to this post by John Kane
Hi Shivi,
A correction to my latex/knitr code.  I stupidly forgot the initial problem was the length of the data set.  To get it to print correctly we need to use the LaTeX package 'longtable'.  Clearly too many trees for me to see the forest.
Add \usepackage{longtable} to the Preamble.

#==========Revised code for knitr/R========
<<atable, echo=FALSE, results="asis">>=
library(xtable)
dat1  <-  data.frame(matrix( rnorm(2000), ncol = 5))
dat1.table  <-  xtable(dat1)
print(dat1.table,tabular.environment='longtable',
floating = FALSE,
include.rownames=FALSE,
booktabs = TRUE)
@
#==============end===================

John Kane
Kingston ON Canada


> -----Original Message-----
> From: [hidden email]
> Sent: Sat, 22 Aug 2015 05:49:32 -0800
> To: [hidden email], [hidden email]
> Subject: Re: [R] Output In R
>
> We are talking at cross-purposes here because SAS and R are radically
> different beasts. Just about everything you did in SAS does not work / is
> wrong /i s illegal/ is immoral / and possibly fattening.
>
> If you have not seen it, you may find Bob Muenchen's pdf and/or the
> expanded book R FOR SAS AND SPSS USERS (
https://science.nature.nps.gov/im/datamgmt/statistics/R/documents/R_for_SAS_SPSS_users.pdf

> ) useful.
>
> It is very easy to create the data set you want. You just need to think
> in R's somewhat twisted way.  Well if twisted my mind for the first 6
> weeks that I used it.
>
> Let's say you are doing some analysis. Don't send the data to the
> console. Instead save it in a R object (not sure if this is the correct
> term--I am sure the purists will correct me.)
>
>
> I am going to create a data.frame called dat1 (pretend it is your data).
>
>
> #create make-believe data
> dat1  <-  data.frame(matrix( rnorm(100), ncol = 5))
>
> #Save dat1 as an R file. Handy for your work not great as a way
> #to pass around data unless the client knows R and has R installed
>
> save( dat1, file = "~/Rjunk/ mydata.RData")
>
> #Save as a .csv file. Fast easy and can be opened in any
> #text editor, spreadsheet or even a word processor.
>
> write.csv(dat1, file = "~/Rjunk/ mydata.csv")
>
>
>
> To produce a Latex file and get a pdf.
>
> One starts with a  .Rnw (i.e. plain text with a .Rnw suffix)  file and
> then compiles it.
> I used the command  Rscript -e "library(knitr); knit('./Shiv1.Rnw')"
> where Shiv.Rnw was my LaTeX / knitr file.  It is easier and faster to use
> RStudio for  this.
>
> You will probably need to install the xtable package and depending in
> your LaTeX version you may need to install booktabs.
>
> ########Start Latex file###################
> \documentclass[12pt,letterpaper]{article}
> \usepackage[utf8]{inputenc}
> \usepackage{booktabs}
> \title{Magnum Opus Meum}
> \author{jrkrideau }
> \begin{document}
>
> \maketitle
>
> <<atable, echo=FALSE, results="asis">>=
> library(xtable)
> dat1  <-  data.frame(matrix( rnorm(100), ncol = 5))
> dat1.table  <-  xtable(dat1)
> print(dat1.table,
> include.rownames=FALSE,
> booktabs = TRUE)
> @
>
> \end{document}
>
> ########End Latex file####################
>
> John Kane
> Kingston ON Canada
>
>
>> -----Original Message-----
>> From: [hidden email]
>> Sent: Fri, 21 Aug 2015 12:26:50 -0700 (PDT)
>> To: [hidden email]
>> Subject: Re: [R] Output In R
>>
>> Thanks Jeff, this is helpful.
>> The reason i am curious to know this is because I have worked for a long
>> duration in SAS where in it gives us the flexibility to create a data
>> set
>> of
>> our analysis and then we can easily detail out the same to the end user.
>>
>> In R seems like View or Sweave  or Shiny are the alternative.
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://r.789695.n4.nabble.com/Output-In-R-tp4711227p4711368.html
>> Sent from the R help mailing list archive at Nabble.com.
>>
>> ______________________________________________
>> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
>> 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.
>
> ____________________________________________________________
> FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on
> your desktop!
>
> ______________________________________________
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> 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.

____________________________________________________________
FREE 3D MARINE AQUARIUM SCREENSAVER - Watch dolphins, sharks & orcas on your desktop!

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
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.