Re: [R] how to separate string from numbers in a large txt file

2019-05-16 Thread David Winsemius
On 5/16/19 3:53 PM, Michael Boulineau wrote: OK. So, I named the object test and then checked the 6347th item test <- readLines ("hangouts-conversation.txt) test [6347] [1] "2016-10-21 10:56:37 Admit#8242" Perhaps where it was getting screwed up is, since the end of this is a number (8242)

Re: [R] Bounding box on plotting files inserted into a LaTeX document

2019-05-16 Thread Marc Schwartz via R-help
> On May 16, 2019, at 7:04 PM, Patrick Connolly > wrote: > > I'm trying to write basic latex code to insert a pdf graphic into a > document. I can use Rstudio to knit an Rmd file successfully > inserting the plot into the document. I can get the latex code if the > "save tex" box is ticked,

[R] Bounding box on plotting files inserted into a LaTeX document

2019-05-16 Thread Patrick Connolly
I'm trying to write basic latex code to insert a pdf graphic into a document. I can use Rstudio to knit an Rmd file successfully inserting the plot into the document. I can get the latex code if the "save tex" box is ticked, so I get the correct syntax used. I don't need all the fancy things t

Re: [R] how to separate string from numbers in a large txt file

2019-05-16 Thread Michael Boulineau
OK. So, I named the object test and then checked the 6347th item > test <- readLines ("hangouts-conversation.txt) > test [6347] [1] "2016-10-21 10:56:37 Admit#8242" Perhaps where it was getting screwed up is, since the end of this is a number (8242), then, given that there's no space between the

Re: [R] how to separate string from numbers in a large txt file

2019-05-16 Thread David Winsemius
On 5/16/19 12:30 PM, Michael Boulineau wrote: Thanks for this tip on etiquette, David. I will be sure and not do that again. I tried the read.fwf from the foreign package, with a code like this: d <- read.fwf("hangouts-conversation.txt", widths= c(10,10,20,40),

Re: [R] how to separate string from numbers in a large txt file

2019-05-16 Thread Michael Boulineau
Thanks for this tip on etiquette, David. I will be sure and not do that again. I tried the read.fwf from the foreign package, with a code like this: d <- read.fwf("hangouts-conversation.txt", widths= c(10,10,20,40), col.names=c("date","time","person","comment"),