Re: [R] R-Package for Recursive Partitioning without Classification or Regression

2017-07-31 Thread Achim Zeileis



On Fri, 28 Jul 2017, Tom D. Harray wrote:


Hello,

I have a question related to recursive partitioning, but I cannot find
an answer, likely because I don't know how to properly word my Google
search query.


I think you are looking for "divisive hierarchical clustering" which is 
the more commonly used term for clustering based on recursive 
partitioning. The classical implementation for this would be diana() from 
the "cluster" package. The "Cluster" task view at 
https://CRAN.R-project.org/view=Cluster also lists "isopam" and 
http://search.r-project.org/cgi-bin/namazu.cgi?query=divisive+clustering&idxname=functions&idxname=views

also gives a few further leads.


All recursive partitioning examples, which I can find, are used for
either classification or regression trees like

  library(tree)
  data(iris)
  tree(Species ~ Sepal.Width + Petal.Width, data = iris)

which implies building a model. However, I would like to split data
like clustering similar to decision tree methods, because I have
nothing to predict.


But do you want to split along observed variables or not? If not, then 
you're in a unsupervised clustering situation (see my comment above). But 
if you want to split along covariates, then this is supervised and you're 
possibly looking for a multivariate regression tree?


Hope that helps,
Z


My question is: Is there a package, which I can use to partition my
data without classification or regression so that it resembles
clustering methods?


Thanks and regards,

Dirk

__
R-help@r-project.org 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.



__
R-help@r-project.org 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.


Re: [R] R-Package for Recursive Partitioning without Classification or Regression

2017-07-31 Thread David L Carlson
I think that diana() or mona() in package cluster are what you are looking for. 
The computational burdens of polythetic divisive clustering methods as they are 
called are substantial so the available methods use shortcuts that should 
provide good, but not necessarily optimal results.

-
David L Carlson
Department of Anthropology
Texas A&M University
College Station, TX 77840-4352

-Original Message-
From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Tom D. Harray
Sent: Friday, July 28, 2017 7:56 AM
To: r-help@r-project.org
Subject: [R] R-Package for Recursive Partitioning without Classification or 
Regression

Hello,

I have a question related to recursive partitioning, but I cannot find
an answer, likely because I don't know how to properly word my Google
search query.


All recursive partitioning examples, which I can find, are used for
either classification or regression trees like

   library(tree)
   data(iris)
   tree(Species ~ Sepal.Width + Petal.Width, data = iris)

which implies building a model. However, I would like to split data
like clustering similar to decision tree methods, because I have
nothing to predict.


My question is: Is there a package, which I can use to partition my
data without classification or regression so that it resembles
clustering methods?


Thanks and regards,

Dirk

__
R-help@r-project.org 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.

__
R-help@r-project.org 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.


Re: [R] How (in general) take out data sets (available in the packages)?

2017-07-31 Thread Ted Beginner via R-help

Suzen, thank you very much for your so useful information (I will try to 
understand it)!
And my sincere gratitude to the moderator!
>"Suzen, Mehmet" < msu...@gmail.com >:
>I also suggest you Hadley's optimized package for interoperating xls
>files with R:
>https://github.com/tidyverse/readxl
>https://cran.r-project.org/web/packages/readxl/index.html





[[alternative HTML version deleted]]

__
R-help@r-project.org 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.


Re: [R] Superscript and subscrib R for legend x-axis and y-axis and colour different subjects in longitudinal data with different colours

2017-07-31 Thread PIKAL Petr
Hi Rosa

something like

plot(1,1, sub=expression(lambda^"2"))

So with your example, do you want something like

plot(c(1:5), CRP7raw[1,], type = "n", xlim=c(1,5), ylim=c(-10,5) ,
  xlab="Day in ICU",
  ylab="CRP (mg/dL)",
  sub = mtext(expression(lambda^2)))

 CRP7graph <- apply(CRP7, 1, lines, col="gray")

Cheers
Petr


> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Rosa Oliveira
> Sent: Friday, July 28, 2017 5:07 PM
> To: r-help mailing list ; R-help@r-project.org
> Subject: [R] Superscript and subscrib R for legend x-axis and y-axis and 
> colour
> different subjects in longitudinal data with different colours
>
> I am trying to make a x-axis and y-axis titles with both a special character 
> and a
> subscript. I am not being able to do this. I think its just a placing of my
> parenthesis, but I've tried (seemingly) everything.
>
> Even more, when I try the blog users code it works.
>
>
>
> Is it because I’m using longitudinal data?
>
>
>
> Even more. Is it possible to colour each one of the 15 lines with a different
> colour?
>
>
>
>
>
>
> library(ggplot2)
> library(reshape)
> library(lattice)
> library(gtable)
> library(grid)
>
> attach(mtcars)
>
> beta0 = rnorm (15, 1, .5)
> beta1 = rnorm (15, -1, .5)
>
> tempo = seq(1:5)
>
> CRP7raw = matrix(NA, 15, 5)
> CRP7 = matrix(NA, 15, 5)
> CRP98raw = matrix(NA, 15, 5)
> CRP98 = matrix(NA, 15, 5)
>
> crp <- for (i in 1:15) {
>   CRP7raw[i,] = beta0[i] + beta1[i] * tempo
>   CRP7[i,] =CRP7raw[i,] + rnorm(5, 0, 2.14)
>
>   CRP98raw[i,] = beta0[i] + beta1[i] * tempo
>   CRP98[i,] =CRP98raw[i,] + rnorm(5, 0, .1)
> }
>
>
> # plot(c(1:5), CRP7raw[1,], type = "n", xlim=c(1,5), ylim=c(-10,5) ,
> #  xlab="Day in ICU",
> #  ylab="CRP (mg/dL)",
> #  sub = mtext(expression(paste(lambda)))
> #
> # CRP7graph <- apply(CRP7, 1, lines, col="gray")
>
>
>
>
>
>
> # plot(c(1:5), CRP98raw[1,], type = "n", xlim=c(1,5), ylim=c(-10,5),
> #  xlab="Day in ICU",
> #  ylab="CRP (mg/dL)")
> # CRP98graph <- apply(CRP98, 1, lines, col="gray")
>
> par(mfrow=c(1,2))
>
> plot(c(1:5), CRP7raw[1,], type = "n", xlim=c(1,5), ylim=c(-10,5) ,
>  xlab="t_i",
>  ylab="y_ij",
>  sub = "lambda = 0.7")
>
>  CRP7graph <- apply(CRP7, 1, lines, col="gray")
>
>
>  plot(c(1:5), CRP98raw[1,], type = "n", xlim=c(1,5), ylim=c(-10,5),
>   xlab="Day in ICU",
>   ylab="CRP (mg/dL",
>   sub = "lambda = 0.98")
>  CRP98graph <- apply(CRP98, 1, lines, col="gray")
>
>
>   [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org 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.


Tento e-mail a jakékoliv k němu připojené dokumenty jsou důvěrné a jsou určeny 
pouze jeho adresátům.
Jestliže jste obdržel(a) tento e-mail omylem, informujte laskavě neprodleně 
jeho odesílatele. Obsah tohoto emailu i s přílohami a jeho kopie vymažte ze 
svého systému.
Nejste-li zamýšleným adresátem tohoto emailu, nejste oprávněni tento email 
jakkoliv užívat, rozšiřovat, kopírovat či zveřejňovat.
Odesílatel e-mailu neodpovídá za eventuální škodu způsobenou modifikacemi či 
zpožděním přenosu e-mailu.

V případě, že je tento e-mail součástí obchodního jednání:
- vyhrazuje si odesílatel právo ukončit kdykoliv jednání o uzavření smlouvy, a 
to z jakéhokoliv důvodu i bez uvedení důvodu.
- a obsahuje-li nabídku, je adresát oprávněn nabídku bezodkladně přijmout; 
Odesílatel tohoto e-mailu (nabídky) vylučuje přijetí nabídky ze strany příjemce 
s dodatkem či odchylkou.
- trvá odesílatel na tom, že příslušná smlouva je uzavřena teprve výslovným 
dosažením shody na všech jejích náležitostech.
- odesílatel tohoto emailu informuje, že není oprávněn uzavírat za společnost 
žádné smlouvy s výjimkou případů, kdy k tomu byl písemně zmocněn nebo písemně 
pověřen a takové pověření nebo plná moc byly adresátovi tohoto emailu případně 
osobě, kterou adresát zastupuje, předloženy nebo jejich existence je adresátovi 
či osobě jím zastoupené známá.

This e-mail and any documents attached to it may be confidential and are 
intended only for its intended recipients.
If you received this e-mail by mistake, please immediately inform its sender. 
Delete the contents of this e-mail with all attachments and its copies from 
your system.
If you are not the intended recipient of this e-mail, you are not authorized to 
use, disseminate, copy or disclose this e-mail in any manner.
The sender of this e-mail shall not be liable for any possible damage caused by 
modifications of the e-mail or by delay with transfer of the email.

In case that this e-mail forms part of business dealings:
- the sender reserves the right to end negotiations about e

Re: [R] Superscript and subscrib R for legend x-axis and y-axis and colour different subjects in longitudinal data with different colours

2017-07-31 Thread Martin Maechler

> Hi Rosa
> something like

> plot(1,1, sub=expression(lambda^"2"))

> So with your example, do you want something like

> plot(c(1:5), CRP7raw[1,], type = "n", xlim=c(1,5), ylim=c(-10,5) ,
>   xlab="Day in ICU",
>   ylab="CRP (mg/dL)",
>   sub = mtext(expression(lambda^2)))

OOps!   Either  plot( ...,  sub = *)
or  plot( ... ) ; mtext(*)

but not both!

>  CRP7graph <- apply(CRP7, 1, lines, col="gray")

> Cheers
> Petr


> > -Original Message-
> > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Rosa 
> > Oliveira
> > Sent: Friday, July 28, 2017 5:07 PM
> > To: r-help mailing list ; R-help@r-project.org
> > Subject: [R] Superscript and subscrib R for legend x-axis and y-axis and 
> > colour
> > different subjects in longitudinal data with different colours
> >
> > I am trying to make a x-axis and y-axis titles with both a special 
> > character and a
> > subscript. I am not being able to do this. I think its just a placing of my
> > parenthesis, but I've tried (seemingly) everything.
> >
> > Even more, when I try the blog users code it works.
> >
> >
> >
> > Is it because I’m using longitudinal data?
> >
> >
> >
> > Even more. Is it possible to colour each one of the 15 lines with a 
> > different
> > colour?
> >
> >
> >
> >
> >
> >
> > library(ggplot2)
> > library(reshape)
> > library(lattice)
> > library(gtable)
> > library(grid)
> >
> > attach(mtcars)
> >
> > beta0 = rnorm (15, 1, .5)
> > beta1 = rnorm (15, -1, .5)
> >
> > tempo = seq(1:5)
> >
> > CRP7raw = matrix(NA, 15, 5)
> > CRP7 = matrix(NA, 15, 5)
> > CRP98raw = matrix(NA, 15, 5)
> > CRP98 = matrix(NA, 15, 5)
> >
> > crp <- for (i in 1:15) {
> >   CRP7raw[i,] = beta0[i] + beta1[i] * tempo
> >   CRP7[i,] =CRP7raw[i,] + rnorm(5, 0, 2.14)
> >
> >   CRP98raw[i,] = beta0[i] + beta1[i] * tempo
> >   CRP98[i,] =CRP98raw[i,] + rnorm(5, 0, .1)
> > }
> >
> >
> > # plot(c(1:5), CRP7raw[1,], type = "n", xlim=c(1,5), ylim=c(-10,5) ,
> > #  xlab="Day in ICU",
> > #  ylab="CRP (mg/dL)",
> > #  sub = mtext(expression(paste(lambda)))
> > #
> > # CRP7graph <- apply(CRP7, 1, lines, col="gray")
> >
> >
> >
> >
> >
> >
> > # plot(c(1:5), CRP98raw[1,], type = "n", xlim=c(1,5), ylim=c(-10,5),
> > #  xlab="Day in ICU",
> > #  ylab="CRP (mg/dL)")
> > # CRP98graph <- apply(CRP98, 1, lines, col="gray")
> >
> > par(mfrow=c(1,2))
> >
> > plot(c(1:5), CRP7raw[1,], type = "n", xlim=c(1,5), ylim=c(-10,5) ,
> >  xlab="t_i",
> >  ylab="y_ij",
> >  sub = "lambda = 0.7")
> >
> >  CRP7graph <- apply(CRP7, 1, lines, col="gray")
> >
> >
> >  plot(c(1:5), CRP98raw[1,], type = "n", xlim=c(1,5), ylim=c(-10,5),
> >   xlab="Day in ICU",
> >   ylab="CRP (mg/dL",
> >   sub = "lambda = 0.98")
> >  CRP98graph <- apply(CRP98, 1, lines, col="gray")
> >
> >
> >   [[alternative HTML version deleted]]
> >
> > __
> > R-help@r-project.org 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.

> 
> Tento e-mail a jakékoliv k němu připojené dokumenty jsou důvěrné a jsou 
> určeny pouze jeho adresátům.
> Jestliže jste obdržel(a) tento e-mail omylem, informujte laskavě neprodleně 
> jeho odesílatele. Obsah tohoto emailu i s přílohami a jeho kopie vymažte ze 
> svého systému.
> Nejste-li zamýšleným adresátem tohoto emailu, nejste oprávněni tento email 
> jakkoliv užívat, rozšiřovat, kopírovat či zveřejňovat.
> Odesílatel e-mailu neodpovídá za eventuální škodu způsobenou modifikacemi či 
> zpožděním přenosu e-mailu.

> V případě, že je tento e-mail součástí obchodního jednání:
> - vyhrazuje si odesílatel právo ukončit kdykoliv jednání o uzavření smlouvy, 
> a to z jakéhokoliv důvodu i bez uvedení důvodu.
> - a obsahuje-li nabídku, je adresát oprávněn nabídku bezodkladně přijmout; 
> Odesílatel tohoto e-mailu (nabídky) vylučuje přijetí nabídky ze strany 
> příjemce s dodatkem či odchylkou.
> - trvá odesílatel na tom, že příslušná smlouva je uzavřena teprve výslovným 
> dosažením shody na všech jejích náležitostech.
> - odesílatel tohoto emailu informuje, že není oprávněn uzavírat za společnost 
> žádné smlouvy s výjimkou případů, kdy k tomu byl písemně zmocněn nebo písemně 
> pověřen a takové pověření nebo plná moc byly adresátovi tohoto emailu 
> případně osobě, kterou adresát zastupuje, předloženy nebo jejich existence je 
> adresátovi či osobě jím zastoupené známá.

> This e-mail and any documents attached to it may be confidential and are 
> intended only for its intended recipients.
> If you received this e-mail by mistake, please immediately inform its sender. 
> Delete the contents of this e-mail with all attachments and its copies from 
> your system.
> If you are not the intended recipi

Re: [R] Superscript and subscrib R for legend x-axis and y-axis and colour different subjects in longitudinal data with different colours

2017-07-31 Thread PIKAL Petr
Hi Martin

see in line

> -Original Message-
> From: Martin Maechler [mailto:maech...@stat.math.ethz.ch]
> Sent: Monday, July 31, 2017 10:52 AM
> To: PIKAL Petr 
> Cc: Rosa Oliveira ; r-help mailing list  project.org>
> Subject: Re: [R] Superscript and subscrib R for legend x-axis and y-axis and
> colour different subjects in longitudinal data with different colours
>
>
> > Hi Rosa
> > something like
>
> > plot(1,1, sub=expression(lambda^"2"))
>
> > So with your example, do you want something like
>
> > plot(c(1:5), CRP7raw[1,], type = "n", xlim=c(1,5), ylim=c(-10,5) ,
> >   xlab="Day in ICU",
> >   ylab="CRP (mg/dL)",
> >   sub = mtext(expression(lambda^2)))
>
> OOps!   Either  plot( ...,  sub = *)
> orplot( ... ) ; mtext(*)
>
> but not both!

You are right, I used a code from OP and did not much think about it. Strangely 
enough, the code worked without any complain. Probably mtext is "stronger" than 
sub and overrides it.

Cheers
Petr

>
> >  CRP7graph <- apply(CRP7, 1, lines, col="gray")
>
> > Cheers
> > Petr
>
>
> > > -Original Message-
> > > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Rosa
> > > Oliveira
> > > Sent: Friday, July 28, 2017 5:07 PM
> > > To: r-help mailing list ; R-help@r-project.org
> > > Subject: [R] Superscript and subscrib R for legend x-axis and y-axis
> > > and colour different subjects in longitudinal data with different
> > > colours
> > >
> > > I am trying to make a x-axis and y-axis titles with both a special
> > > character and a subscript. I am not being able to do this. I think
> > > its just a placing of my parenthesis, but I've tried (seemingly) 
> > > everything.
> > >
> > > Even more, when I try the blog users code it works.
> > >
> > >
> > >
> > > Is it because I’m using longitudinal data?
> > >
> > >
> > >
> > > Even more. Is it possible to colour each one of the 15 lines with a
> > > different colour?
> > >
> > >
> > >
> > >
> > >
> > >
> > > library(ggplot2)
> > > library(reshape)
> > > library(lattice)
> > > library(gtable)
> > > library(grid)
> > >
> > > attach(mtcars)
> > >
> > > beta0 = rnorm (15, 1, .5)
> > > beta1 = rnorm (15, -1, .5)
> > >
> > > tempo = seq(1:5)
> > >
> > > CRP7raw = matrix(NA, 15, 5)
> > > CRP7 = matrix(NA, 15, 5)
> > > CRP98raw = matrix(NA, 15, 5)
> > > CRP98 = matrix(NA, 15, 5)
> > >
> > > crp <- for (i in 1:15) {
> > >   CRP7raw[i,] = beta0[i] + beta1[i] * tempo
> > >   CRP7[i,] =CRP7raw[i,] + rnorm(5, 0, 2.14)
> > >
> > >   CRP98raw[i,] = beta0[i] + beta1[i] * tempo
> > >   CRP98[i,] =CRP98raw[i,] + rnorm(5, 0, .1)
> > > }
> > >
> > >
> > > # plot(c(1:5), CRP7raw[1,], type = "n", xlim=c(1,5), ylim=c(-10,5) ,
> > > #  xlab="Day in ICU",
> > > #  ylab="CRP (mg/dL)",
> > > #  sub = mtext(expression(paste(lambda)))
> > > #
> > > # CRP7graph <- apply(CRP7, 1, lines, col="gray")
> > >
> > >
> > >
> > >
> > >
> > >
> > > # plot(c(1:5), CRP98raw[1,], type = "n", xlim=c(1,5), ylim=c(-10,5),
> > > #  xlab="Day in ICU",
> > > #  ylab="CRP (mg/dL)")
> > > # CRP98graph <- apply(CRP98, 1, lines, col="gray")
> > >
> > > par(mfrow=c(1,2))
> > >
> > > plot(c(1:5), CRP7raw[1,], type = "n", xlim=c(1,5), ylim=c(-10,5) ,
> > >  xlab="t_i",
> > >  ylab="y_ij",
> > >  sub = "lambda = 0.7")
> > >
> > >  CRP7graph <- apply(CRP7, 1, lines, col="gray")
> > >
> > >
> > >  plot(c(1:5), CRP98raw[1,], type = "n", xlim=c(1,5), ylim=c(-10,5),
> > >   xlab="Day in ICU",
> > >   ylab="CRP (mg/dL",
> > >   sub = "lambda = 0.98")
> > >  CRP98graph <- apply(CRP98, 1, lines, col="gray")
> > >
> > >
> > >   [[alternative HTML version deleted]]
> > >
> > > __
> > > R-help@r-project.org 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.
>


Tento e-mail a jakékoliv k němu připojené dokumenty jsou důvěrné a jsou určeny 
pouze jeho adresátům.
Jestliže jste obdržel(a) tento e-mail omylem, informujte laskavě neprodleně 
jeho odesílatele. Obsah tohoto emailu i s přílohami a jeho kopie vymažte ze 
svého systému.
Nejste-li zamýšleným adresátem tohoto emailu, nejste oprávněni tento email 
jakkoliv užívat, rozšiřovat, kopírovat či zveřejňovat.
Odesílatel e-mailu neodpovídá za eventuální škodu způsobenou modifikacemi či 
zpožděním přenosu e-mailu.

V případě, že je tento e-mail součástí obchodního jednání:
- vyhrazuje si odesílatel právo ukončit kdykoliv jednání o uzavření smlouvy, a 
to z jakéhokoliv důvodu i bez uvedení důvodu.
- a obsahuje-li nabídku, je adresát oprávněn nabídku bezodkladně přijmout; 
Odesílatel tohoto e-mailu (nabídky) vylučuje přijetí nabídky ze strany příjemce 
s dodatkem či odchylkou.
- trvá odesílatel na tom, že příslušná sml

Re: [R] Superscript and subscrib R for legend x-axis and y-axis and colour different subjects in longitudinal data with different colours

2017-07-31 Thread Martin Maechler
> PIKAL Petr 
> on Mon, 31 Jul 2017 09:11:18 + writes:

> Hi Martin see in line

>> -Original Message- From: Martin Maechler
>> [mailto:maech...@stat.math.ethz.ch] Sent: Monday, July
>> 31, 2017 10:52 AM To: PIKAL Petr 
>> Cc: Rosa Oliveira ; r-help mailing
>> list  
>> Subject: Re: [R] Superscript and subscrib R for legend
>> x-axis and y-axis and colour different subjects in
>> longitudinal data with different colours
>> 
>> 
>> > Hi Rosa > something like
>> 
>> > plot(1,1, sub=expression(lambda^"2"))
>> 
>> > So with your example, do you want something like
>> 
>> > plot(c(1:5), CRP7raw[1,], type = "n", xlim=c(1,5),
>> ylim=c(-10,5) , > xlab="Day in ICU", > ylab="CRP
>> (mg/dL)", > sub = mtext(expression(lambda^2)))
>> 
>> OOps!  Either plot( ..., sub = *) or plot( ... ) ;
>> mtext(*)
>> 
>> but not both!

> You are right, I used a code from OP and did not much
> think about it. Strangely enough, the code worked without
> any complain. Probably mtext is "stronger" than sub and
> overrides it.

Well, well, "the magic of R"  .
Not quite:  mtext(..) is a valid function call that is evaluated
before plot() finishes; then it returns NULL invisibly, and
'plot(*, sub=NULL)' does nothing "coincidentally" (but for good
reasons)

Martin

> Cheers Petr

>> 
>> > CRP7graph <- apply(CRP7, 1, lines, col="gray")
>> 
>> > Cheers > Petr
>> 
>> 
>> > > -Original Message- > > From: R-help
>> [mailto:r-help-boun...@r-project.org] On Behalf Of Rosa >
>> > Oliveira > > Sent: Friday, July 28, 2017 5:07 PM > >
>> To: r-help mailing list ;
>> R-help@r-project.org > > Subject: [R] Superscript and
>> subscrib R for legend x-axis and y-axis > > and colour
>> different subjects in longitudinal data with different >
>> > colours
>> > >
>> > > I am trying to make a x-axis and y-axis titles with
>> both a special > > character and a subscript. I am not
>> being able to do this. I think > > its just a placing of
>> my parenthesis, but I've tried (seemingly) everything.
>> > >
>> > > Even more, when I try the blog users code it works.
>> > >
>> > >
>> > >
>> > > Is it because I’m using longitudinal data?
>> > >
>> > >
>> > >
>> > > Even more. Is it possible to colour each one of the
>> 15 lines with a > > different colour?
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > > library(ggplot2) > > library(reshape) > >
>> library(lattice) > > library(gtable) > > library(grid)
>> > >
>> > > attach(mtcars)
>> > >
>> > > beta0 = rnorm (15, 1, .5) > > beta1 = rnorm (15, -1,
>> .5)
>> > >
>> > > tempo = seq(1:5)
>> > >
>> > > CRP7raw = matrix(NA, 15, 5) > > CRP7 = matrix(NA, 15,
>> 5) > > CRP98raw = matrix(NA, 15, 5) > > CRP98 =
>> matrix(NA, 15, 5)
>> > >
>> > > crp <- for (i in 1:15) { > > CRP7raw[i,] = beta0[i] +
>> beta1[i] * tempo > > CRP7[i,] = CRP7raw[i,] + rnorm(5, 0,
>> 2.14)
>> > >
>> > > CRP98raw[i,] = beta0[i] + beta1[i] * tempo > >
>> CRP98[i,] = CRP98raw[i,] + rnorm(5, 0, .1) > > }
>> > >
>> > >
>> > > # plot(c(1:5), CRP7raw[1,], type = "n", xlim=c(1,5),
>> ylim=c(-10,5) , > > # xlab="Day in ICU", > > # ylab="CRP
>> (mg/dL)", > > # sub = mtext(expression(paste(lambda)))
>> > > #
>> > > # CRP7graph <- apply(CRP7, 1, lines, col="gray")
>> > >
>> > >
>> > >
>> > >
>> > >
>> > >
>> > > # plot(c(1:5), CRP98raw[1,], type = "n", xlim=c(1,5),
>> ylim=c(-10,5), > > # xlab="Day in ICU", > > # ylab="CRP
>> (mg/dL)") > > # CRP98graph <- apply(CRP98, 1, lines,
>> col="gray")
>> > >
>> > > par(mfrow=c(1,2))
>> > >
>> > > plot(c(1:5), CRP7raw[1,], type = "n", xlim=c(1,5),
>> ylim=c(-10,5) , > > xlab="t_i", > > ylab="y_ij", > > sub
>> = "lambda = 0.7")
>> > >
>> > > CRP7graph <- apply(CRP7, 1, lines, col="gray")
>> > >
>> > >
>> > > plot(c(1:5), CRP98raw[1,], type = "n", xlim=c(1,5),
>> ylim=c(-10,5), > > xlab="Day in ICU", > > ylab="CRP
>> (mg/dL", > > sub = "lambda = 0.98") > > CRP98graph <-
>> apply(CRP98, 1, lines, col="gray")
>> > >
>> > >
>> > > [[alternative HTML version deleted]]
>> > >
>> > > __ > >
>> R-help@r-project.org 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.
>> 

>  Tento e-mail a jakékoliv
> k němu připojené dokumenty jsou důvěrné a jsou určeny
> pouze jeho adresátům.  Jestliže jst

Re: [R] Superscript and subscrib R for legend x-axis and y-axis and colour different subjects in longitudinal data with different colours

2017-07-31 Thread Rosa Oliveira
Hi, everyone,

Before everything, thanks. Lots of thanks ;)

I don’t think you understood everything I need to do.

I want to write t_i instead of "Day in ICU” [i subscript for t] and y_ij 
instead of "CRP (mg/dL)” [ij superscript for y]. The label of the axis… :( 


Can you help me on that task?

Thanks! 

Best,
Rosa Oliveira


> On 31 Jul 2017, at 10:28, Martin Maechler  wrote:
> 
>> PIKAL Petr mailto:petr.pi...@precheza.cz>>
>>on Mon, 31 Jul 2017 09:11:18 + writes:
> 
>> Hi Martin see in line
> 
>>> -Original Message- From: Martin Maechler
>>> [mailto:maech...@stat.math.ethz.ch] Sent: Monday, July
>>> 31, 2017 10:52 AM To: PIKAL Petr 
>>> Cc: Rosa Oliveira ; r-help mailing
>>> list project.org> 
>>> Subject: Re: [R] Superscript and subscrib R for legend
>>> x-axis and y-axis and colour different subjects in
>>> longitudinal data with different colours
>>> 
>>> 
 Hi Rosa > something like
>>> 
 plot(1,1, sub=expression(lambda^"2"))
>>> 
 So with your example, do you want something like
>>> 
 plot(c(1:5), CRP7raw[1,], type = "n", xlim=c(1,5),
>>> ylim=c(-10,5) , > xlab="Day in ICU", > ylab="CRP
>>> (mg/dL)", > sub = mtext(expression(lambda^2)))
>>> 
>>> OOps!  Either plot( ..., sub = *) or plot( ... ) ;
>>> mtext(*)
>>> 
>>> but not both!
> 
>> You are right, I used a code from OP and did not much
>> think about it. Strangely enough, the code worked without
>> any complain. Probably mtext is "stronger" than sub and
>> overrides it.
> 
> Well, well, "the magic of R"  .
> Not quite:  mtext(..) is a valid function call that is evaluated
> before plot() finishes; then it returns NULL invisibly, and
> 'plot(*, sub=NULL)' does nothing "coincidentally" (but for good
> reasons)
> 
> Martin
> 
>> Cheers Petr
> 
>>> 
 CRP7graph <- apply(CRP7, 1, lines, col="gray")
>>> 
 Cheers > Petr
>>> 
>>> 
> -Original Message- > > From: R-help
>>> [mailto:r-help-boun...@r-project.org] On Behalf Of Rosa >
 Oliveira > > Sent: Friday, July 28, 2017 5:07 PM > >
>>> To: r-help mailing list ;
>>> R-help@r-project.org > > Subject: [R] Superscript and
>>> subscrib R for legend x-axis and y-axis > > and colour
>>> different subjects in longitudinal data with different >
 colours
> 
> I am trying to make a x-axis and y-axis titles with
>>> both a special > > character and a subscript. I am not
>>> being able to do this. I think > > its just a placing of
>>> my parenthesis, but I've tried (seemingly) everything.
> 
> Even more, when I try the blog users code it works.
> 
> 
> 
> Is it because I’m using longitudinal data?
> 
> 
> 
> Even more. Is it possible to colour each one of the
>>> 15 lines with a > > different colour?
> 
> 
> 
> 
> 
> 
> library(ggplot2) > > library(reshape) > >
>>> library(lattice) > > library(gtable) > > library(grid)
> 
> attach(mtcars)
> 
> beta0 = rnorm (15, 1, .5) > > beta1 = rnorm (15, -1,
>>> .5)
> 
> tempo = seq(1:5)
> 
> CRP7raw = matrix(NA, 15, 5) > > CRP7 = matrix(NA, 15,
>>> 5) > > CRP98raw = matrix(NA, 15, 5) > > CRP98 =
>>> matrix(NA, 15, 5)
> 
> crp <- for (i in 1:15) { > > CRP7raw[i,] = beta0[i] +
>>> beta1[i] * tempo > > CRP7[i,] = CRP7raw[i,] + rnorm(5, 0,
>>> 2.14)
> 
> CRP98raw[i,] = beta0[i] + beta1[i] * tempo > >
>>> CRP98[i,] = CRP98raw[i,] + rnorm(5, 0, .1) > > }
> 
> 
> # plot(c(1:5), CRP7raw[1,], type = "n", xlim=c(1,5),
>>> ylim=c(-10,5) , > > # xlab="Day in ICU", > > # ylab="CRP
>>> (mg/dL)", > > # sub = mtext(expression(paste(lambda)))
> #
> # CRP7graph <- apply(CRP7, 1, lines, col="gray")
> 
> 
> 
> 
> 
> 
> # plot(c(1:5), CRP98raw[1,], type = "n", xlim=c(1,5),
>>> ylim=c(-10,5), > > # xlab="Day in ICU", > > # ylab="CRP
>>> (mg/dL)") > > # CRP98graph <- apply(CRP98, 1, lines,
>>> col="gray")
> 
> par(mfrow=c(1,2))
> 
> plot(c(1:5), CRP7raw[1,], type = "n", xlim=c(1,5),
>>> ylim=c(-10,5) , > > xlab="t_i", > > ylab="y_ij", > > sub
>>> = "lambda = 0.7")
> 
> CRP7graph <- apply(CRP7, 1, lines, col="gray")
> 
> 
> plot(c(1:5), CRP98raw[1,], type = "n", xlim=c(1,5),
>>> ylim=c(-10,5), > > xlab="Day in ICU", > > ylab="CRP
>>> (mg/dL", > > sub = "lambda = 0.98") > > CRP98graph <-
>>> apply(CRP98, 1, lines, col="gray")
> 
> 
> [[alternative HTML version deleted]]
> 
> __ > >
>>> R-help@r-project.org 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.
>>> 
> 
>>  Tento e-mail a jakékoliv
>> k němu připojené dokumenty jsou důvěrné a jsou určeny
>> pouze jeho adresátům.  Jestliže jste obdržel(a) tent

[R] Access Data Base Reading on Linux Platform

2017-07-31 Thread Lorenzo Isella
Dear All,
I am really far from a database expert (I do prefer flat files as long as
that is reasonable), but I have to deal with an accdb database (Microsoft
Access new format). It all stems from the fact that I run R almost
exclusively on Debian platforms.
I did a bit of googling

http://r.789695.n4.nabble.com/How-to-load-data-from-accdb-into-R-td4656613.html

http://rprogramming.net/connect-to-ms-access-in-r/

https://www.r-bloggers.com/getting-access-data-into-r/

but it seems you cannot go very far unless you can install some microsoft
drivers on your platform.
Hence, my two questions

1) Can I read (I do not need write permissions) an accdb database on linux
using R without resorting to WINE?

2) If 1) is cumbersome, to what R friendly format (excluding for now a csv
dump) I can convert the data base? If this is doable entirely in Linux?
Otherwise, worse comes to worse, how to make this one time conversion from
Windows? I read there are ways from Access to convert everything to mdb,
which should be more R friendly, but I need the opinion of someone more
experienced than me here.

Many thanks

Lorenzo

[[alternative HTML version deleted]]

__
R-help@r-project.org 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.


Re: [R] Access Data Base Reading on Linux Platform

2017-07-31 Thread Marc Schwartz

> On Jul 31, 2017, at 5:51 AM, Lorenzo Isella  wrote:
> 
> Dear All,
> I am really far from a database expert (I do prefer flat files as long as
> that is reasonable), but I have to deal with an accdb database (Microsoft
> Access new format). It all stems from the fact that I run R almost
> exclusively on Debian platforms.
> I did a bit of googling
> 
> http://r.789695.n4.nabble.com/How-to-load-data-from-accdb-into-R-td4656613.html
> 
> http://rprogramming.net/connect-to-ms-access-in-r/
> 
> https://www.r-bloggers.com/getting-access-data-into-r/
> 
> but it seems you cannot go very far unless you can install some microsoft
> drivers on your platform.
> Hence, my two questions
> 
> 1) Can I read (I do not need write permissions) an accdb database on linux
> using R without resorting to WINE?
> 
> 2) If 1) is cumbersome, to what R friendly format (excluding for now a csv
> dump) I can convert the data base? If this is doable entirely in Linux?
> Otherwise, worse comes to worse, how to make this one time conversion from
> Windows? I read there are ways from Access to convert everything to mdb,
> which should be more R friendly, but I need the opinion of someone more
> experienced than me here.
> 
> Many thanks
> 
> Lorenzo


Hi,

As an FYI for future reference, there is a dedicated R and DB list here:

  https://stat.ethz.ch/mailman/listinfo/r-sig-db

That being said, you are likely better off trying to get the data either in MS 
Excel formats, for which there are cross-platform R packages on CRAN that can 
help read the XLS/XLSX data or get CSV files which are easily read in R.

There is a utility called MDBTools (https://github.com/brianb/mdbtools), but it 
only supports the older MDB file format.

A couple of alternatives would be:

Use MDBOpener.com (http://www.mdbopener.com), which provides an online 
conversion tool where you can then export the data from the ACCDB file to 
either Excel or CSV files, if the source of the data cannot do it for you.  

Use Jackcess (http://jackcess.sourceforge.net) which is a Java based library to 
create an application which could be called within R. This would be more 
cumbersome that the aforementioned options and would depend upon how much work 
you want to do to avoid the Excel or CSV based approach.


I have not used any of the above, so cannot speak for either ease of use or the 
validity of the tools.

There is also a general resource here:

  https://www.lifewire.com/accdb-file-2619459

The OpenOffice/LibreOffice based options listed there are likely more work than 
they are worth.

Regards,

Marc Schwartz

__
R-help@r-project.org 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.


Re: [R] Superscript and subscrib R for legend x-axis and y-axis and colour different subjects in longitudinal data with different colours

2017-07-31 Thread PIKAL Petr
Hi


From: Rosa Oliveira [mailto:rosit...@gmail.com]
Sent: Monday, July 31, 2017 11:47 AM
To: Martin Maechler 
Cc: PIKAL Petr ; r-help mailing list 

Subject: Re: [R] Superscript and subscrib R for legend x-axis and y-axis and 
colour different subjects in longitudinal data with different colours

Hi, everyone,

Before everything, thanks. Lots of thanks ;)

I don’t think you understood everything I need to do.

Most probably because you did not tell precisely what you really want.

I want to write t_i instead of "Day in ICU” [i subscript for t] and y_ij 
instead of "CRP (mg/dL)” [ij superscript for y]. The label of the axis… :(

So something like that.
plot(c(1:5), CRP7raw[1,], type = "n", xlim=c(1,5),
ylim=c(-10,5) ,
xlab=expression("t"[i]),
ylab=expression("y"^ij))
mtext(expression(lambda^2))

Cheers
Petr

Can you help me on that task?

Thanks!

Best,
Rosa Oliveira


On 31 Jul 2017, at 10:28, Martin Maechler 
mailto:maech...@stat.math.ethz.ch>> wrote:

PIKAL Petr mailto:petr.pi...@precheza.cz>>
   on Mon, 31 Jul 2017 09:11:18 + writes:


Hi Martin see in line


-Original Message- From: Martin Maechler
[mailto:maech...@stat.math.ethz.ch] Sent: Monday, July
31, 2017 10:52 AM To: PIKAL Petr 
mailto:petr.pi...@precheza.cz>>
Cc: Rosa Oliveira mailto:rosit...@gmail.com>>; r-help 
mailing
list http://project.org>>

Subject: Re: [R] Superscript and subscrib R for legend
x-axis and y-axis and colour different subjects in
longitudinal data with different colours



Hi Rosa > something like


plot(1,1, sub=expression(lambda^"2"))


So with your example, do you want something like


plot(c(1:5), CRP7raw[1,], type = "n", xlim=c(1,5),
ylim=c(-10,5) , > xlab="Day in ICU", > ylab="CRP
(mg/dL)", > sub = mtext(expression(lambda^2)))

OOps!  Either plot( ..., sub = *) or plot( ... ) ;
mtext(*)

but not both!


You are right, I used a code from OP and did not much
think about it. Strangely enough, the code worked without
any complain. Probably mtext is "stronger" than sub and
overrides it.

Well, well, "the magic of R"  .
Not quite:  mtext(..) is a valid function call that is evaluated
before plot() finishes; then it returns NULL invisibly, and
'plot(*, sub=NULL)' does nothing "coincidentally" (but for good
reasons)

Martin


Cheers Petr




CRP7graph <- apply(CRP7, 1, lines, col="gray")


Cheers > Petr



-Original Message- > > From: R-help
[mailto:r-help-boun...@r-project.org] On Behalf Of Rosa >

Oliveira > > Sent: Friday, July 28, 2017 5:07 PM > >
To: r-help mailing list mailto:r-help@r-project.org>>;
R-help@r-project.org > > Subject: [R] Superscript 
and
subscrib R for legend x-axis and y-axis > > and colour
different subjects in longitudinal data with different >

colours


I am trying to make a x-axis and y-axis titles with
both a special > > character and a subscript. I am not
being able to do this. I think > > its just a placing of
my parenthesis, but I've tried (seemingly) everything.


Even more, when I try the blog users code it works.



Is it because I’m using longitudinal data?



Even more. Is it possible to colour each one of the
15 lines with a > > different colour?







library(ggplot2) > > library(reshape) > >
library(lattice) > > library(gtable) > > library(grid)


attach(mtcars)

beta0 = rnorm (15, 1, .5) > > beta1 = rnorm (15, -1,
.5)


tempo = seq(1:5)

CRP7raw = matrix(NA, 15, 5) > > CRP7 = matrix(NA, 15,
5) > > CRP98raw = matrix(NA, 15, 5) > > CRP98 =
matrix(NA, 15, 5)


crp <- for (i in 1:15) { > > CRP7raw[i,] = beta0[i] +
beta1[i] * tempo > > CRP7[i,] = CRP7raw[i,] + rnorm(5, 0,
2.14)


CRP98raw[i,] = beta0[i] + beta1[i] * tempo > >
CRP98[i,] = CRP98raw[i,] + rnorm(5, 0, .1) > > }



# plot(c(1:5), CRP7raw[1,], type = "n", xlim=c(1,5),
ylim=c(-10,5) , > > # xlab="Day in ICU", > > # ylab="CRP
(mg/dL)", > > # sub = mtext(expression(paste(lambda)))

#
# CRP7graph <- apply(CRP7, 1, lines, col="gray")






# plot(c(1:5), CRP98raw[1,], type = "n", xlim=c(1,5),
ylim=c(-10,5), > > # xlab="Day in ICU", > > # ylab="CRP
(mg/dL)") > > # CRP98graph <- apply(CRP98, 1, lines,
col="gray")


par(mfrow=c(1,2))

plot(c(1:5), CRP7raw[1,], type = "n", xlim=c(1,5),
ylim=c(-10,5) , > > xlab="t_i", > > ylab="y_ij", > > sub
= "lambda = 0.7")


CRP7graph <- apply(CRP7, 1, lines, col="gray")


plot(c(1:5), CRP98raw[1,], type = "n", xlim=c(1,5),
ylim=c(-10,5), > > xlab="Day in ICU", > > ylab="CRP
(mg/dL", > > sub = "lambda = 0.98") > > CRP98graph <-
apply(CRP98, 1, lines, col="gray")



[[alternative HTML version deleted]]

__ > >
R-help@r-project.org 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.


 Tento e-mail a jakékoliv
k němu připojené dokumenty jsou d

[R] How automatic Y on install y/n prompts?

2017-07-31 Thread Dimlak Gorkehgz
I am testing most of the models caret supports on a bunch of PCs.
Unfortunately caret "suggested" packages do not include most of the model
packages available to caret. Every time a new version of R comes out I have
to sit in front of each PC and wait for each prompt to press the 1 button
and Enter. Is there an option I could set to tell R or Rstudio to just
install anything asked for? A for every a/s/n prompt too.

[[alternative HTML version deleted]]

__
R-help@r-project.org 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.


Re: [R] How automatic Y on install y/n prompts?

2017-07-31 Thread Bert Gunter
?install.packages

and pay attention to the "dependencies" argument.

Th RStudio interface does not appear to allow for "suggests" packages
(correction appreciated if this is wrong) , which the command line
makes available.

HTH.

Cheers,
Bert


Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Mon, Jul 31, 2017 at 5:07 AM, Dimlak Gorkehgz  wrote:
> I am testing most of the models caret supports on a bunch of PCs.
> Unfortunately caret "suggested" packages do not include most of the model
> packages available to caret. Every time a new version of R comes out I have
> to sit in front of each PC and wait for each prompt to press the 1 button
> and Enter. Is there an option I could set to tell R or Rstudio to just
> install anything asked for? A for every a/s/n prompt too.
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org 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.

__
R-help@r-project.org 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.


[R] find similar words in text

2017-07-31 Thread Riaan Van Der Walt
I am new to R.
Busy with Text Analysis.
 
Need a script to find e.g 
 
whale, whales, whale's, whaler, whalers, whaling,... in Moby Dick
 
Riaan
__
R-help@r-project.org 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.


Re: [R] find similar words in text

2017-07-31 Thread Boris Steipe
You need a stemming algorithm. See here:
  https://cran.r-project.org/web/views/NaturalLanguageProcessing.html

Myself, I've had good experience with Rstem.

B.





> On Jul 31, 2017, at 4:47 PM, Riaan Van Der Walt  
> wrote:
> 
> I am new to R.
> Busy with Text Analysis.
> 
> Need a script to find e.g 
> 
> whale, whales, whale's, whaler, whalers, whaling,... in Moby Dick
> 
> Riaan
> __
> R-help@r-project.org 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.

__
R-help@r-project.org 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.


Re: [R] find similar words in text

2017-07-31 Thread Bert Gunter
**Before** posting:

1. Search: e.g. "text processing R"

2. Check CRAN Task views:
e.g. "Natural Language Processing"
https://cran.r-project.org/web/views/NaturalLanguageProcessing.html

3. Use R's search facility:  e.g. help.search("character") which would
lead you to ?grep among others, which might suggest something like

grep("whal",strsplit(yourtext, split = " ", fixed = TRUE), fixed = TRUE)

... although this is likely too simple minded for a text as large as
Moby Dick. But it depends on what you want to do.

Cheers,
Bert

Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Mon, Jul 31, 2017 at 1:47 PM, Riaan Van Der Walt
 wrote:
> I am new to R.
> Busy with Text Analysis.
>
> Need a script to find e.g
>
> whale, whales, whale's, whaler, whalers, whaling,... in Moby Dick
>
> Riaan
> __
> R-help@r-project.org 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.

__
R-help@r-project.org 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.