Re: [R] [FORGED] Extracting specified pages from a lattice ("trellis") object.

2018-04-26 Thread Paul Murrell

Hi

Does this not do what you want ... ?

allpages <- dotplot(variety ~ yield | year * site, data=barley,
layout=c(2,2))
page2 <- allpages[1:2, 3:4]
print(page2)

Paul

On 24/04/18 17:51, Rolf Turner wrote:


On 24/04/18 15:17, Paul Murrell wrote:


Hi

I think the subsetting works by giving you the panels for the 
corresponding levels of the conditioning variable(s).  Note that, if 
there is more than one conditioning variable, you will need more than 
one subsetting index.


For example, taking this plot with two conditioning variables and 12 
panels in total ...


dotplot(variety ~ yield | year * site, data=barley)

... this produces three pages ...

dotplot(variety ~ yield | year * site, data=barley,
 layout=c(2,2))

... and this produces the second page (both panels for the first 
conditioning variable and the third and fourth panels for the second 
conditioning variable) ...


dotplot(variety ~ yield | year * site, data=barley,
 layout=c(2,2))[1:2, 3:4]

Hope that helps.


Hmm.  Thanks Paul.  I may be able to work with that.  But what I really 
wanted was to take


     bar <- dotplot(variety ~ yield | year * site, data=barley)

and then do (something like)

     foo <- bar[]

so that foo contains only the second page of bar, and then do print(foo)
to get a plot of (just) the second page.  Without re-issuing a 
(modified) plot command.


Is that not at all possible?

cheers,

Rolf.



--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
p...@stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/

__
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] help with tdm matrix and knn

2018-04-26 Thread Eivind K . Døvik

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Hello,

I downloaded your .rar-file and looked through your R-code. You should 
revise your script. Specifically, start by looking at what data set you 
are referring to when training your knn-model: you never create the object 
"modeldata".


Best of luck.

Eivind K. Dovik
Bergen, NO

Public key 5D9BA1B4
-BEGIN PGP SIGNATURE-

iQIzBAEBCAAdFiEE6y4swLA4T88WeBLTnPuPlYAtwfoFAlriRYkACgkQnPuPlYAt
wfpd4g//R+p5rJP6rO8yMfSzKyWCs6yd4T2CtaSknrwlSIhjRRYvrx3QbL/wZXG0
FRvb5ImKMXu2OJAI5s+dFsmiVqlJIVNAsNdDoPQbwBpTB7KIrd6/wlb5mXTVMdVA
nmpLMTcCz6sIo+R+xUEW+SiDktYlAOL8cS3ZEoLfP2eaFTGpr2lA9Dzra1UwsKEI
jV3fJUYj6HP6474z94G3qDxmhQTpDy3TFNgupoWZJrbtT0sro1q9TiiFIr3tsuH0
UL5rsyv8fJq8rL2ArVlDEX1zMHo0cjqC3rk0yWb8Agi8k5kvkxNF2bQxjWUeuI6w
+JS4FM6mo9g+aeTfRDoAYeYdT9ZOQMHKaZmv3yAXSTb89e9FHsantIwHl3SdvDDQ
GeMy2QuErduItv3KdzBvRmctWFSNqAhZfVcPHfkMqhlgd3lk9WcKHtIgS93R/Amv
Z4GAA6omRX/bEr3jB5cBK+vuNfYxhX3iwWrGniCMDBbSYLWuR6O62TvGvntsehnm
Y0Lt5VaeoJyoUCIAPKjC1X3mo4/FHNxoc6qJezQP1ChiSUrUJlJ7NnDypu7vO0jV
IiX0uQgWxLizX9hBMRMLtU3UaSt6VhJzEiP8ciFk1xihi7FgjDYOJFpOY2j79rKS
M5bx67eCp4JZMrY4uZMiDPFd5X9Lx3I6t6iLK1Z1kmeWRgs+nIw=
=r2Ve
-END PGP SIGNATURE-


On Thu, 26 Apr 2018, nevergiveupno20...@gmail.com wrote:


hello sir
im working on text classification using java and r programming

i start with exporting a document term matrix (tdm) from my java programme 
using corpus

and now i try to apply knn algorithem using the matrix and r

but i cant do that

any help sir

here my data
here my script
https://mega.nz/#!Q6J2ibAA!4PadiOKbP7rLodyiRrVsdKl-D2ZP7LYm0gaz94uBmF8

itry to post put icant whay!!




_
Sent from http://r.789695.n4.nabble.com

__
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] Package 'data.table' in version R-3.5.0 not successfully being installed

2018-04-26 Thread Dénes Tóth

You might find this discussion useful, too:
https://github.com/Rdatatable/data.table/issues/2797


On 04/26/2018 11:01 PM, Henrik Bengtsson wrote:

If you're installing packages to the default location in your home
account and you didn't remove those library folders, you still have
you R 3.4 package installs there, e.g.


dir(dirname(.libPaths()[1]), full.names = TRUE)

[1] "/home/hb/R/x86_64-pc-linux-gnu-library/3.4"
[2] "/home/hb/R/x86_64-pc-linux-gnu-library/3.5"
[3] "/home/hb/R/x86_64-pc-linux-gnu-library/3.6"

/Henrik

On Thu, Apr 26, 2018 at 11:41 AM, Akhilesh Singh
 wrote:

You are right. I do take backups. But, this time I was too sure that
nothing will go wrong. But, this was over-confidence. I need to take more
care in future. Thanks anyway.

With regards,

Dr. A.K. Singh

On Thu 26 Apr, 2018, 11:49 PM Duncan Murdoch, 
wrote:


On 26/04/2018 1:54 PM, Akhilesh Singh wrote:

My thanks to Dr. John Fox and Dr. Duncan Murdoch. But, I have upgraded
all my R-3.4.3 libraries to R-3.5.0, and I have not backed-up copies of
old version. So, I would give a try each to the solutions suggested by
John Fox and Dengan Murdoch.


Here is some unsolicited advice:  I would strongly recommend that you
make it a higher priority to have backups available.  In my experience
computer hardware is becoming quite reliable, but software isn't, and
the person next to the keyboard isn't either.  (My last desperate need
for a backup was due to a hardware failure 2 years ago, but it wasn't
the manufacturer's fault:  my laptop accidentally drowned.)

Backups can save you a lot of grief in the event of a mistake, or a
software or hardware failure.  But even in the case of routine events
like software updates that don't go as planned, they can save time.

Duncan Murdoch




With regards,

Dr. A.K. Singh

On Thu 26 Apr, 2018, 9:44 PM Duncan Murdoch, > wrote:

 On 26/04/2018 10:33 AM, Fox, John wrote:
  > Dear A.K. Singh,
  >
  > As you discovered, the data.table package has an error under R
 3.5.0 that prevents CRAN from distributing a Windows binary for the
 package. The reason that you weren't able to install the package
 from source is apparently that you haven't installed the R
 package-building tools for Windows. See
 .
  >
  > Because a number of users of my Rcmdr and car packages have
 contacted me with a similar issue, as a temporary work-around I've
 placed a Windows binary for the data.table package on my website at
 <

https://socialsciences.mcmaster.ca/jfox/.Pickup/data.table_1.10.4-3.zip>.

 You should be able to install the package from there via the command
  >
  >
   install.packages("

https://socialsciences.mcmaster.ca/jfox/.Pickup/data.table_1.10.4-3.zip;,
repos=NULL, type="win.binary")

  >
  > I expect that this problem will go away when the maintainer of
 the data.table package fixes the error.

 You can see the errors in the package on this web page:

 https://cloud.r-project.org/web/checks/check_results_data.table.html

 Currently it is failing self-tests on all platforms except r-oldrel,
 which is the previous release of R.  I'd recommend backing out of R
 3.5.0 and going to R 3.4.4 if that's a possibility for you.

 Yet another possibility is to use a version of data.table from

Github,

 which is newer than the version on CRAN and may have fixed the

errors,

 but that would require an installation from source, which not every
 Windows user is comfortable with.

 Duncan Murdoch


On 26-Apr-2018 9:44 PM, "Duncan Murdoch" > wrote:

 On 26/04/2018 10:33 AM, Fox, John wrote:
  > Dear A.K. Singh,
  >
  > As you discovered, the data.table package has an error under R
 3.5.0 that prevents CRAN from distributing a Windows binary for the
 package. The reason that you weren't able to install the package
 from source is apparently that you haven't installed the R
 package-building tools for Windows. See
 .
  >
  > Because a number of users of my Rcmdr and car packages have
 contacted me with a similar issue, as a temporary work-around I've
 placed a Windows binary for the data.table package on my website at
 <

https://socialsciences.mcmaster.ca/jfox/.Pickup/data.table_1.10.4-3.zip>.

 You should be able to install the package from there via the command
  >
  >
   install.packages("

https://socialsciences.mcmaster.ca/jfox/.Pickup/data.table_1.10.4-3.zip;,
repos=NULL, type="win.binary")

  >
  > I expect that this problem will go away when the maintainer of
 the data.table package fixes the error.

 You can see the errors in the package on 

Re: [R] Package 'data.table' in version R-3.5.0 not successfully being installed

2018-04-26 Thread Henrik Bengtsson
If you're installing packages to the default location in your home
account and you didn't remove those library folders, you still have
you R 3.4 package installs there, e.g.

> dir(dirname(.libPaths()[1]), full.names = TRUE)
[1] "/home/hb/R/x86_64-pc-linux-gnu-library/3.4"
[2] "/home/hb/R/x86_64-pc-linux-gnu-library/3.5"
[3] "/home/hb/R/x86_64-pc-linux-gnu-library/3.6"

/Henrik

On Thu, Apr 26, 2018 at 11:41 AM, Akhilesh Singh
 wrote:
> You are right. I do take backups. But, this time I was too sure that
> nothing will go wrong. But, this was over-confidence. I need to take more
> care in future. Thanks anyway.
>
> With regards,
>
> Dr. A.K. Singh
>
> On Thu 26 Apr, 2018, 11:49 PM Duncan Murdoch, 
> wrote:
>
>> On 26/04/2018 1:54 PM, Akhilesh Singh wrote:
>> > My thanks to Dr. John Fox and Dr. Duncan Murdoch. But, I have upgraded
>> > all my R-3.4.3 libraries to R-3.5.0, and I have not backed-up copies of
>> > old version. So, I would give a try each to the solutions suggested by
>> > John Fox and Dengan Murdoch.
>>
>> Here is some unsolicited advice:  I would strongly recommend that you
>> make it a higher priority to have backups available.  In my experience
>> computer hardware is becoming quite reliable, but software isn't, and
>> the person next to the keyboard isn't either.  (My last desperate need
>> for a backup was due to a hardware failure 2 years ago, but it wasn't
>> the manufacturer's fault:  my laptop accidentally drowned.)
>>
>> Backups can save you a lot of grief in the event of a mistake, or a
>> software or hardware failure.  But even in the case of routine events
>> like software updates that don't go as planned, they can save time.
>>
>> Duncan Murdoch
>>
>>
>> >
>> > With regards,
>> >
>> > Dr. A.K. Singh
>> >
>> > On Thu 26 Apr, 2018, 9:44 PM Duncan Murdoch, > > > wrote:
>> >
>> > On 26/04/2018 10:33 AM, Fox, John wrote:
>> >  > Dear A.K. Singh,
>> >  >
>> >  > As you discovered, the data.table package has an error under R
>> > 3.5.0 that prevents CRAN from distributing a Windows binary for the
>> > package. The reason that you weren't able to install the package
>> > from source is apparently that you haven't installed the R
>> > package-building tools for Windows. See
>> > .
>> >  >
>> >  > Because a number of users of my Rcmdr and car packages have
>> > contacted me with a similar issue, as a temporary work-around I've
>> > placed a Windows binary for the data.table package on my website at
>> > <
>> https://socialsciences.mcmaster.ca/jfox/.Pickup/data.table_1.10.4-3.zip>.
>> > You should be able to install the package from there via the command
>> >  >
>> >  >
>> >   install.packages("
>> https://socialsciences.mcmaster.ca/jfox/.Pickup/data.table_1.10.4-3.zip;,
>> repos=NULL, type="win.binary")
>> >  >
>> >  > I expect that this problem will go away when the maintainer of
>> > the data.table package fixes the error.
>> >
>> > You can see the errors in the package on this web page:
>> >
>> > https://cloud.r-project.org/web/checks/check_results_data.table.html
>> >
>> > Currently it is failing self-tests on all platforms except r-oldrel,
>> > which is the previous release of R.  I'd recommend backing out of R
>> > 3.5.0 and going to R 3.4.4 if that's a possibility for you.
>> >
>> > Yet another possibility is to use a version of data.table from
>> Github,
>> > which is newer than the version on CRAN and may have fixed the
>> errors,
>> > but that would require an installation from source, which not every
>> > Windows user is comfortable with.
>> >
>> > Duncan Murdoch
>> >
>> >
>> > On 26-Apr-2018 9:44 PM, "Duncan Murdoch" > > > wrote:
>> >
>> > On 26/04/2018 10:33 AM, Fox, John wrote:
>> >  > Dear A.K. Singh,
>> >  >
>> >  > As you discovered, the data.table package has an error under R
>> > 3.5.0 that prevents CRAN from distributing a Windows binary for the
>> > package. The reason that you weren't able to install the package
>> > from source is apparently that you haven't installed the R
>> > package-building tools for Windows. See
>> > .
>> >  >
>> >  > Because a number of users of my Rcmdr and car packages have
>> > contacted me with a similar issue, as a temporary work-around I've
>> > placed a Windows binary for the data.table package on my website at
>> > <
>> https://socialsciences.mcmaster.ca/jfox/.Pickup/data.table_1.10.4-3.zip>.
>> > You should be able to install the package from there via the command
>> >  >
>> >  >
>> >   install.packages("
>> 

[R] help with tdm matrix and knn

2018-04-26 Thread nevergiveupno20015
hello sir
im working on text classification using java and r programming

i start with exporting a document term matrix (tdm) from my java programme 
using corpus

and now i try to apply knn algorithem using the matrix and r

but i cant do that 

any help sir

here my data 
here my script
https://mega.nz/#!Q6J2ibAA!4PadiOKbP7rLodyiRrVsdKl-D2ZP7LYm0gaz94uBmF8

itry to post put icant whay!!




_
Sent from http://r.789695.n4.nabble.com

__
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] Package 'data.table' in version R-3.5.0 not successfully being installed

2018-04-26 Thread Akhilesh Singh
You are right. I do take backups. But, this time I was too sure that
nothing will go wrong. But, this was over-confidence. I need to take more
care in future. Thanks anyway.

With regards,

Dr. A.K. Singh

On Thu 26 Apr, 2018, 11:49 PM Duncan Murdoch, 
wrote:

> On 26/04/2018 1:54 PM, Akhilesh Singh wrote:
> > My thanks to Dr. John Fox and Dr. Duncan Murdoch. But, I have upgraded
> > all my R-3.4.3 libraries to R-3.5.0, and I have not backed-up copies of
> > old version. So, I would give a try each to the solutions suggested by
> > John Fox and Dengan Murdoch.
>
> Here is some unsolicited advice:  I would strongly recommend that you
> make it a higher priority to have backups available.  In my experience
> computer hardware is becoming quite reliable, but software isn't, and
> the person next to the keyboard isn't either.  (My last desperate need
> for a backup was due to a hardware failure 2 years ago, but it wasn't
> the manufacturer's fault:  my laptop accidentally drowned.)
>
> Backups can save you a lot of grief in the event of a mistake, or a
> software or hardware failure.  But even in the case of routine events
> like software updates that don't go as planned, they can save time.
>
> Duncan Murdoch
>
>
> >
> > With regards,
> >
> > Dr. A.K. Singh
> >
> > On Thu 26 Apr, 2018, 9:44 PM Duncan Murdoch,  > > wrote:
> >
> > On 26/04/2018 10:33 AM, Fox, John wrote:
> >  > Dear A.K. Singh,
> >  >
> >  > As you discovered, the data.table package has an error under R
> > 3.5.0 that prevents CRAN from distributing a Windows binary for the
> > package. The reason that you weren't able to install the package
> > from source is apparently that you haven't installed the R
> > package-building tools for Windows. See
> > .
> >  >
> >  > Because a number of users of my Rcmdr and car packages have
> > contacted me with a similar issue, as a temporary work-around I've
> > placed a Windows binary for the data.table package on my website at
> > <
> https://socialsciences.mcmaster.ca/jfox/.Pickup/data.table_1.10.4-3.zip>.
> > You should be able to install the package from there via the command
> >  >
> >  >
> >   install.packages("
> https://socialsciences.mcmaster.ca/jfox/.Pickup/data.table_1.10.4-3.zip;,
> repos=NULL, type="win.binary")
> >  >
> >  > I expect that this problem will go away when the maintainer of
> > the data.table package fixes the error.
> >
> > You can see the errors in the package on this web page:
> >
> > https://cloud.r-project.org/web/checks/check_results_data.table.html
> >
> > Currently it is failing self-tests on all platforms except r-oldrel,
> > which is the previous release of R.  I'd recommend backing out of R
> > 3.5.0 and going to R 3.4.4 if that's a possibility for you.
> >
> > Yet another possibility is to use a version of data.table from
> Github,
> > which is newer than the version on CRAN and may have fixed the
> errors,
> > but that would require an installation from source, which not every
> > Windows user is comfortable with.
> >
> > Duncan Murdoch
> >
> >
> > On 26-Apr-2018 9:44 PM, "Duncan Murdoch"  > > wrote:
> >
> > On 26/04/2018 10:33 AM, Fox, John wrote:
> >  > Dear A.K. Singh,
> >  >
> >  > As you discovered, the data.table package has an error under R
> > 3.5.0 that prevents CRAN from distributing a Windows binary for the
> > package. The reason that you weren't able to install the package
> > from source is apparently that you haven't installed the R
> > package-building tools for Windows. See
> > .
> >  >
> >  > Because a number of users of my Rcmdr and car packages have
> > contacted me with a similar issue, as a temporary work-around I've
> > placed a Windows binary for the data.table package on my website at
> > <
> https://socialsciences.mcmaster.ca/jfox/.Pickup/data.table_1.10.4-3.zip>.
> > You should be able to install the package from there via the command
> >  >
> >  >
> >   install.packages("
> https://socialsciences.mcmaster.ca/jfox/.Pickup/data.table_1.10.4-3.zip;,
> repos=NULL, type="win.binary")
> >  >
> >  > I expect that this problem will go away when the maintainer of
> > the data.table package fixes the error.
> >
> > You can see the errors in the package on this web page:
> >
> > https://cloud.r-project.org/web/checks/check_results_data.table.html
> >
> > Currently it is failing self-tests on all platforms except r-oldrel,
> > which is the previous release of R.  I'd recommend backing out of R
> > 3.5.0 and going to R 3.4.4 if that's a possibility for you.
> >
> > Yet another 

Re: [R] Package 'data.table' in version R-3.5.0 not successfully being installed

2018-04-26 Thread Akhilesh Singh
My thanks to Dr. John Fox and Dr. Duncan Murdoch. But, I have upgraded all
my R-3.4.3 libraries to R-3.5.0, and I have not backed-up copies of old
version. So, I would give a try each to the solutions suggested by John Fox
and Dengan Murdoch.

With regards,

Dr. A.K. Singh

On Thu 26 Apr, 2018, 9:44 PM Duncan Murdoch, 
wrote:

> On 26/04/2018 10:33 AM, Fox, John wrote:
> > Dear A.K. Singh,
> >
> > As you discovered, the data.table package has an error under R 3.5.0
> that prevents CRAN from distributing a Windows binary for the package. The
> reason that you weren't able to install the package from source is
> apparently that you haven't installed the R package-building tools for
> Windows. See .
> >
> > Because a number of users of my Rcmdr and car packages have contacted me
> with a similar issue, as a temporary work-around I've placed a Windows
> binary for the data.table package on my website at <
> https://socialsciences.mcmaster.ca/jfox/.Pickup/data.table_1.10.4-3.zip>.
> You should be able to install the package from there via the command
> >
> >   install.packages("
> https://socialsciences.mcmaster.ca/jfox/.Pickup/data.table_1.10.4-3.zip;,
> repos=NULL, type="win.binary")
> >
> > I expect that this problem will go away when the maintainer of the
> data.table package fixes the error.
>
> You can see the errors in the package on this web page:
>
> https://cloud.r-project.org/web/checks/check_results_data.table.html
>
> Currently it is failing self-tests on all platforms except r-oldrel,
> which is the previous release of R.  I'd recommend backing out of R
> 3.5.0 and going to R 3.4.4 if that's a possibility for you.
>
> Yet another possibility is to use a version of data.table from Github,
> which is newer than the version on CRAN and may have fixed the errors,
> but that would require an installation from source, which not every
> Windows user is comfortable with.
>
> Duncan Murdoch
>
>
On 26-Apr-2018 9:44 PM, "Duncan Murdoch"  wrote:

On 26/04/2018 10:33 AM, Fox, John wrote:
> Dear A.K. Singh,
>
> As you discovered, the data.table package has an error under R 3.5.0 that
prevents CRAN from distributing a Windows binary for the package. The
reason that you weren't able to install the package from source is
apparently that you haven't installed the R package-building tools for
Windows. See .
>
> Because a number of users of my Rcmdr and car packages have contacted me
with a similar issue, as a temporary work-around I've placed a Windows
binary for the data.table package on my website at <
https://socialsciences.mcmaster.ca/jfox/.Pickup/data.table_1.10.4-3.zip>.
You should be able to install the package from there via the command
>
>   install.packages("
https://socialsciences.mcmaster.ca/jfox/.Pickup/data.table_1.10.4-3.zip;,
repos=NULL, type="win.binary")
>
> I expect that this problem will go away when the maintainer of the
data.table package fixes the error.

You can see the errors in the package on this web page:

https://cloud.r-project.org/web/checks/check_results_data.table.html

Currently it is failing self-tests on all platforms except r-oldrel,
which is the previous release of R.  I'd recommend backing out of R
3.5.0 and going to R 3.4.4 if that's a possibility for you.

Yet another possibility is to use a version of data.table from Github,
which is newer than the version on CRAN and may have fixed the errors,
but that would require an installation from source, which not every
Windows user is comfortable with.


Duncan Murdoch

[[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-es] kappa

2018-04-26 Thread Manuel Mendoza


El vector era el resultado de un apply, y no sé por qué salía como una  
lista. Se me solucionó cuando lo saqué como character y después lo  
pasé a factor, como la columna con la que tenía que compararlo. No sé  
muy bien por qué tuve primero que generarlo como character y después  
pasarlo a factor (directamente no me dejaba) pero como funcionó, no me  
calenté más la cabeza.


Muchos (supongo que la mayoría) hemos aprendido R solos, combinando el  
"ensayo y error" con búsquedas en Internet, por lo que no siempre  
sabemos porqué se hacen las cosas cómo se hacen.

Un saludo.



Quoting "Carlos J. Gil Bellosta" :


¡Pero todos queremos saber la solución!

El jue., 26 abr. 2018 a las 17:42, Manuel Mendoza ()
escribió:




Bueno, lo solucioné, era una tontería.



Quoting Manuel Mendoza :

> Buenas, ¿alguien sabe qué puede ser este error?
>
> data es una df y las columnas 23 y 24 son las que quiero comparar;
> están bien.
>
> testK<-kappa2(data[,c(23,24)], "equal")
>
> Error in sort.list(y) : 'x' must be atomic for 'sort.list'
> Have you called 'sort' on a list?












































> --
--
Dr Manuel Mendoza
Department of Biogeography and Global Change
National Museum of Natural History (MNCN)
Spanish Scientific Council (CSIC)
C/ Serrano 115bis, 28006 MADRID
Spain

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es




--
Dr Manuel Mendoza
Department of Biogeography and Global Change
National Museum of Natural History (MNCN)
Spanish Scientific Council (CSIC)
C/ Serrano 115bis, 28006 MADRID
Spain

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R] Package 'data.table' in version R-3.5.0 not successfully being installed

2018-04-26 Thread David Winsemius

> On Apr 26, 2018, at 5:07 AM, Akhilesh Singh  
> wrote:
> 
> Dear Sir,
> 
> I am using R on Windows OS platform. I upgraded my R-system to version
> R-3.5.0. While upgrading my libraries in R as well as in RStudio, I am
> stuck up in the package 'data.table', which is required by many other
> packages in R-codes in my R-Markdown files.
> 
> I tried to install 'data.table' from "USA-berkely" and "UK-bristol"  as
> well as "RStudio" mirrors when the following errors are being shown:
> 
> From  USA-berkely and UK-bristol mirrors:
> =
> Package which is only available in source form, and may need
>  compilation of C/C++/Fortran: ‘data.table’
>  These will not be installed
> Warning message:
> In download.file(url, destfile = f, quiet = TRUE) :
>  InternetOpenUrl failed: ''
> 
> From RStudio mirror:
> 
> Package which is only available in source form, and may need compilation of
>  C/C++/Fortran: ‘data.table’
>  These will not be installed
> 
> Afterwards, I consulted google users, I downloaded the source package:
> "data.table_1.10.4-3.tar.gz" from CRAN, stored it on desktop, and tried
> following command for installing from source only:
> 
> 
> install.packages("C:\\Users\\Dr. A.K.
> Singh\\Desktop\\data.table_1.10.4-3.tar.gz", repos = NULL, type="source")
> 
> This generated following errors messages:
> 
>> install.packages("C:\\Users\\Dr. A.K.
> Singh\\Desktop\\data.table_1.10.4-3.tar.gz", repos = NULL, type="source")
> Installing package into ‘C:/Users/Dr. A.K.
> Singh/Documents/R/win-library/3.5’
> (as ‘lib’ is unspecified)
> * installing *source* package 'data.table' ...
> ** package 'data.table' successfully unpacked and MD5 sums checked
> ** libs
> Warning in system(cmd) : 'make' not found

I'm guessing you don't have the proper Rtools installation for 3.5:

https://cran.r-project.org/bin/windows/Rtools/index.html

Rtools35.exe
https://cran.r-project.org/bin/windows/Rtools/Rtools35.exe


> ERROR: compilation failed for package 'data.table'
> * removing 'C:/Users/Dr. A.K. Singh/Documents/R/win-library/3.5/data.table'
> * restoring previous 'C:/Users/Dr. A.K.
> Singh/Documents/R/win-library/3.5/data.table'
> In R CMD INSTALL
> Warning message:
> In install.packages("C:\\Users\\Dr. A.K.
> Singh\\Desktop\\data.table_1.10.4-3.tar.gz",  :
>  installation of package
> ‘C:/Users/DRAK~1.SIN/Desktop/data.table_1.10.4-3.tar.gz’ had non-zero exit
> status
>> 
> 
> 
> I is requested to kindly help. I was writing a book using R-Markdown. And I
> am stuck up as described above.
> 
> Dr. A.K. Singh
> Professor and Head
> Department of Agricultural Statistics
> Indira Gandhi Krishi Vishwavidyalaya
> Raipur
> Chhattisgarh
> India
> 
>   [[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.

David Winsemius
Alameda, CA, USA

'Any technology distinguishable from magic is insufficiently advanced.'   
-Gehm's Corollary to Clarke's Third Law

__
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] Package 'data.table' in version R-3.5.0 not successfully being installed

2018-04-26 Thread Duncan Murdoch

On 26/04/2018 1:54 PM, Akhilesh Singh wrote:
My thanks to Dr. John Fox and Dr. Duncan Murdoch. But, I have upgraded 
all my R-3.4.3 libraries to R-3.5.0, and I have not backed-up copies of 
old version. So, I would give a try each to the solutions suggested by 
John Fox and Dengan Murdoch.


Here is some unsolicited advice:  I would strongly recommend that you 
make it a higher priority to have backups available.  In my experience 
computer hardware is becoming quite reliable, but software isn't, and 
the person next to the keyboard isn't either.  (My last desperate need 
for a backup was due to a hardware failure 2 years ago, but it wasn't 
the manufacturer's fault:  my laptop accidentally drowned.)


Backups can save you a lot of grief in the event of a mistake, or a 
software or hardware failure.  But even in the case of routine events 
like software updates that don't go as planned, they can save time.


Duncan Murdoch




With regards,

Dr. A.K. Singh

On Thu 26 Apr, 2018, 9:44 PM Duncan Murdoch, > wrote:


On 26/04/2018 10:33 AM, Fox, John wrote:
 > Dear A.K. Singh,
 >
 > As you discovered, the data.table package has an error under R
3.5.0 that prevents CRAN from distributing a Windows binary for the
package. The reason that you weren't able to install the package
from source is apparently that you haven't installed the R
package-building tools for Windows. See
.
 >
 > Because a number of users of my Rcmdr and car packages have
contacted me with a similar issue, as a temporary work-around I've
placed a Windows binary for the data.table package on my website at
.
You should be able to install the package from there via the command
 >
 > 
  install.packages("https://socialsciences.mcmaster.ca/jfox/.Pickup/data.table_1.10.4-3.zip;, repos=NULL, type="win.binary")

 >
 > I expect that this problem will go away when the maintainer of
the data.table package fixes the error.

You can see the errors in the package on this web page:

https://cloud.r-project.org/web/checks/check_results_data.table.html

Currently it is failing self-tests on all platforms except r-oldrel,
which is the previous release of R.  I'd recommend backing out of R
3.5.0 and going to R 3.4.4 if that's a possibility for you.

Yet another possibility is to use a version of data.table from Github,
which is newer than the version on CRAN and may have fixed the errors,
but that would require an installation from source, which not every
Windows user is comfortable with.

Duncan Murdoch


On 26-Apr-2018 9:44 PM, "Duncan Murdoch" > wrote:


On 26/04/2018 10:33 AM, Fox, John wrote:
 > Dear A.K. Singh,
 >
 > As you discovered, the data.table package has an error under R
3.5.0 that prevents CRAN from distributing a Windows binary for the
package. The reason that you weren't able to install the package
from source is apparently that you haven't installed the R
package-building tools for Windows. See
.
 >
 > Because a number of users of my Rcmdr and car packages have
contacted me with a similar issue, as a temporary work-around I've
placed a Windows binary for the data.table package on my website at
.
You should be able to install the package from there via the command
 >
 > 
  install.packages("https://socialsciences.mcmaster.ca/jfox/.Pickup/data.table_1.10.4-3.zip;, repos=NULL, type="win.binary")

 >
 > I expect that this problem will go away when the maintainer of
the data.table package fixes the error.

You can see the errors in the package on this web page:

https://cloud.r-project.org/web/checks/check_results_data.table.html

Currently it is failing self-tests on all platforms except r-oldrel,
which is the previous release of R.  I'd recommend backing out of R
3.5.0 and going to R 3.4.4 if that's a possibility for you.

Yet another possibility is to use a version of data.table from Github,
which is newer than the version on CRAN and may have fixed the errors,
but that would require an installation from source, which not every
Windows user is comfortable with.


Duncan Murdoch




__
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] Package 'data.table' in version R-3.5.0 not successfully being installed

2018-04-26 Thread Fox, John
Dear Duncan,

I think that your advice to downgrade may make sense if A. K. Singh actually 
needs to use data.table. In the case of the car package, for example, which 
depends on data.table indirectly via the rio package, data.table never gets 
used. As well, the examples and vignettes in data.table appear to work under R 
2.5.0, so it's possible that (much of) the functionality of the package is 
intact.

Best,
 John

> -Original Message-
> From: Duncan Murdoch [mailto:murdoch.dun...@gmail.com]
> Sent: Thursday, April 26, 2018 12:14 PM
> To: Fox, John ; Akhilesh Singh
> 
> Cc: r-help mailing list 
> Subject: Re: [R] Package 'data.table' in version R-3.5.0 not
> successfully being installed
> 
> On 26/04/2018 10:33 AM, Fox, John wrote:
> > Dear A.K. Singh,
> >
> > As you discovered, the data.table package has an error under R 3.5.0
> that prevents CRAN from distributing a Windows binary for the package.
> The reason that you weren't able to install the package from source is
> apparently that you haven't installed the R package-building tools for
> Windows. See .
> >
> > Because a number of users of my Rcmdr and car packages have contacted
> > me with a similar issue, as a temporary work-around I've placed a
> > Windows binary for the data.table package on my website at
> >  > ip>. You should be able to install the package from there via the
> > command
> >
> >
> > install.packages("https://socialsciences.mcmaster.ca/jfox/.Pickup/data
> > .table_1.10.4-3.zip", repos=NULL, type="win.binary")
> >
> > I expect that this problem will go away when the maintainer of the
> data.table package fixes the error.
> 
> You can see the errors in the package on this web page:
> 
> https://cloud.r-project.org/web/checks/check_results_data.table.html
> 
> Currently it is failing self-tests on all platforms except r-oldrel,
> which is the previous release of R.  I'd recommend backing out of R
> 3.5.0 and going to R 3.4.4 if that's a possibility for you.
> 
> Yet another possibility is to use a version of data.table from Github,
> which is newer than the version on CRAN and may have fixed the errors,
> but that would require an installation from source, which not every
> Windows user is comfortable with.
> 
> Duncan Murdoch

__
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 to define mutualy exclusive parameters of a function

2018-04-26 Thread Rui Barradas

Hello,

Inline.

On 4/26/2018 5:42 PM, Berry, Charles wrote:




On Apr 26, 2018, at 6:46 AM, Polychronis Kostoulas 
 wrote:

Dear All,
apologies if this is basic: I am writing a function:

fb<-function(mean, median, mode, a, b=0.95, lower=F)
{}

The arguments mean, median and mode are mutually exclusive (i.e. the user
should define only one of these). How do I code this within the function?



See

?missing


See also the first example in help("switch")

Hope this helps,

Rui Barradas




HTH,

Chuck
__
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 to define mutualy exclusive parameters of a function

2018-04-26 Thread Berry, Charles


> On Apr 26, 2018, at 6:46 AM, Polychronis Kostoulas 
>  wrote:
> 
> Dear All,
> apologies if this is basic: I am writing a function:
> 
> fb<-function(mean, median, mode, a, b=0.95, lower=F)
> {}
> 
> The arguments mean, median and mode are mutually exclusive (i.e. the user
> should define only one of these). How do I code this within the function?
> 

See

?missing

HTH,

Chuck
__
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] Package 'data.table' in version R-3.5.0 not successfully being installed

2018-04-26 Thread Duncan Murdoch

On 26/04/2018 10:33 AM, Fox, John wrote:

Dear A.K. Singh,

As you discovered, the data.table package has an error under R 3.5.0 that prevents 
CRAN from distributing a Windows binary for the package. The reason that you weren't 
able to install the package from source is apparently that you haven't installed the 
R package-building tools for Windows. See 
.

Because a number of users of my Rcmdr and car packages have contacted me with a 
similar issue, as a temporary work-around I've placed a Windows binary for the 
data.table package on my website at 
. You 
should be able to install the package from there via the command


install.packages("https://socialsciences.mcmaster.ca/jfox/.Pickup/data.table_1.10.4-3.zip;,
 repos=NULL, type="win.binary")

I expect that this problem will go away when the maintainer of the data.table 
package fixes the error.


You can see the errors in the package on this web page:

https://cloud.r-project.org/web/checks/check_results_data.table.html

Currently it is failing self-tests on all platforms except r-oldrel, 
which is the previous release of R.  I'd recommend backing out of R 
3.5.0 and going to R 3.4.4 if that's a possibility for you.


Yet another possibility is to use a version of data.table from Github, 
which is newer than the version on CRAN and may have fixed the errors, 
but that would require an installation from source, which not every 
Windows user is comfortable with.


Duncan Murdoch

__
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-es] kappa

2018-04-26 Thread Manuel Mendoza



Bueno, lo solucioné, era una tontería.



Quoting Manuel Mendoza :


Buenas, ¿alguien sabe qué puede ser este error?

data es una df y las columnas 23 y 24 son las que quiero comparar;  
están bien.


testK<-kappa2(data[,c(23,24)], "equal")

Error in sort.list(y) : 'x' must be atomic for 'sort.list'
Have you called 'sort' on a list?














































--

--
Dr Manuel Mendoza
Department of Biogeography and Global Change
National Museum of Natural History (MNCN)
Spanish Scientific Council (CSIC)
C/ Serrano 115bis, 28006 MADRID
Spain

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R] Package 'data.table' in version R-3.5.0 not successfully being installed

2018-04-26 Thread Fox, John
Dear A.K. Singh,

As you discovered, the data.table package has an error under R 3.5.0 that 
prevents CRAN from distributing a Windows binary for the package. The reason 
that you weren't able to install the package from source is apparently that you 
haven't installed the R package-building tools for Windows. See 
.

Because a number of users of my Rcmdr and car packages have contacted me with a 
similar issue, as a temporary work-around I've placed a Windows binary for the 
data.table package on my website at 
. You 
should be able to install the package from there via the command


install.packages("https://socialsciences.mcmaster.ca/jfox/.Pickup/data.table_1.10.4-3.zip;,
 repos=NULL, type="win.binary")

I expect that this problem will go away when the maintainer of the data.table 
package fixes the error.

I hope this helps,
 John

--
John Fox, Professor Emeritus
McMaster University
Hamilton, Ontario, Canada
Web: socialsciences.mcmaster.ca/jfox/



> -Original Message-
> From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Akhilesh
> Singh
> Sent: Thursday, April 26, 2018 8:08 AM
> To: r-help mailing list 
> Subject: [R] Package 'data.table' in version R-3.5.0 not successfully
> being installed
> 
> Dear Sir,
> 
> I am using R on Windows OS platform. I upgraded my R-system to version
> R-3.5.0. While upgrading my libraries in R as well as in RStudio, I am
> stuck up in the package 'data.table', which is required by many other
> packages in R-codes in my R-Markdown files.
> 
> I tried to install 'data.table' from "USA-berkely" and "UK-bristol"  as
> well as "RStudio" mirrors when the following errors are being shown:
> 
> From  USA-berkely and UK-bristol mirrors:
> =
> Package which is only available in source form, and may need
>   compilation of C/C++/Fortran: ‘data.table’
>   These will not be installed
> Warning message:
> In download.file(url, destfile = f, quiet = TRUE) :
>   InternetOpenUrl failed: ''
> 
> From RStudio mirror:
> 
> Package which is only available in source form, and may need compilation
> of
>   C/C++/Fortran: ‘data.table’
>   These will not be installed
> 
> Afterwards, I consulted google users, I downloaded the source package:
> "data.table_1.10.4-3.tar.gz" from CRAN, stored it on desktop, and tried
> following command for installing from source only:
> 
> 
> install.packages("C:\\Users\\Dr. A.K.
> Singh\\Desktop\\data.table_1.10.4-3.tar.gz", repos = NULL,
> type="source")
> 
> This generated following errors messages:
> 
> > install.packages("C:\\Users\\Dr. A.K.
> Singh\\Desktop\\data.table_1.10.4-3.tar.gz", repos = NULL,
> type="source") Installing package into ‘C:/Users/Dr. A.K.
> Singh/Documents/R/win-library/3.5’
> (as ‘lib’ is unspecified)
> * installing *source* package 'data.table' ...
> ** package 'data.table' successfully unpacked and MD5 sums checked
> ** libs
> Warning in system(cmd) : 'make' not found
> ERROR: compilation failed for package 'data.table'
> * removing 'C:/Users/Dr. A.K. Singh/Documents/R/win-
> library/3.5/data.table'
> * restoring previous 'C:/Users/Dr. A.K.
> Singh/Documents/R/win-library/3.5/data.table'
> In R CMD INSTALL
> Warning message:
> In install.packages("C:\\Users\\Dr. A.K.
> Singh\\Desktop\\data.table_1.10.4-3.tar.gz",  :
>   installation of package
> ‘C:/Users/DRAK~1.SIN/Desktop/data.table_1.10.4-3.tar.gz’ had non-zero
> exit status
> >
> 
> 
> I is requested to kindly help. I was writing a book using R-Markdown.
> And I am stuck up as described above.
> 
> Dr. A.K. Singh
> Professor and Head
> Department of Agricultural Statistics
> Indira Gandhi Krishi Vishwavidyalaya
> Raipur
> Chhattisgarh
> India
> 
>   [[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.


Re: [R] How to define mutualy exclusive parameters of a function

2018-04-26 Thread Eric Berger
Hi Pol,
Here is one way:

fb <- function(mean=NULL, median=NULL, mode=NULL, a, b=0.95, lower=F) {

stopifnot ( (is.null(mean) + is.null(median) + is.null(mode)) == 2 )

etc...

}


HTH,
Eric


On Thu, Apr 26, 2018 at 4:46 PM, Polychronis Kostoulas <
polychronis.kostou...@gmail.com> wrote:

> Dear All,
> apologies if this is basic: I am writing a function:
>
> fb<-function(mean, median, mode, a, b=0.95, lower=F)
> {}
>
> The arguments mean, median and mode are mutually exclusive (i.e. the user
> should define only one of these). How do I code this within the function?
>
> Thanks,
> Pol
>
> [[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.
>

[[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] How to define mutualy exclusive parameters of a function

2018-04-26 Thread Polychronis Kostoulas
Dear All,
apologies if this is basic: I am writing a function:

fb<-function(mean, median, mode, a, b=0.95, lower=F)
{}

The arguments mean, median and mode are mutually exclusive (i.e. the user
should define only one of these). How do I code this within the function?

Thanks,
Pol

[[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] Problem building binary data into library file

2018-04-26 Thread Steven Yen
I build binary data files into a library by placing the .rda files at the 
proper \data sub-folder before building the library with the following 
procedure:
1. File -> Open project
2. Build -> Build binary packages.
This has worked up to 3 .rda files.

Now, I add another .rda file to the folder. I received a very strange, 
seemingly unrelated warning message that says:

Warning: object '.Random.seed' is created by more than one data call

The weird thing about this is, repeating the procedure, I sometime can access 
the data file from the library (i.e., by data(filename)), other time I cannot 
access the data file. The data file is big but not so big (571 KB).

Any clues? Why am I getting that warning message?


==
Below is a log with more details.

==> Rcmd.exe INSTALL --build --preclean yenlib3

* installing to library 'C:/Users/syen01/Documents/R/win-library/3.4'
* installing *source* package 'yenlib3' ...
** R
** data
*** moving datasets to lazyload DB
Warning: object '.Random.seed' is created by more than one data call
** preparing package for lazy loading
** help
*** installing help indices
   converting help for package 'yenlib3'
 finding HTML links ... done
 aidshtml
 all.variables   html
  (truncated)
 ate.boprobitE   html
** building package indices
** testing if installed package can be loaded
*** arch - i386
*** arch - x64
* MD5 sums
packaged installation of 'yenlib3' as yenlib3_1.1.0.zip
* DONE (yenlib3)
In R CMD INSTALL
Binary package written to Y:/


[[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] Package 'data.table' in version R-3.5.0 not successfully being installed

2018-04-26 Thread Akhilesh Singh
Dear Sir,

I am using R on Windows OS platform. I upgraded my R-system to version
R-3.5.0. While upgrading my libraries in R as well as in RStudio, I am
stuck up in the package 'data.table', which is required by many other
packages in R-codes in my R-Markdown files.

I tried to install 'data.table' from "USA-berkely" and "UK-bristol"  as
well as "RStudio" mirrors when the following errors are being shown:

>From  USA-berkely and UK-bristol mirrors:
=
Package which is only available in source form, and may need
  compilation of C/C++/Fortran: ‘data.table’
  These will not be installed
Warning message:
In download.file(url, destfile = f, quiet = TRUE) :
  InternetOpenUrl failed: ''

>From RStudio mirror:

Package which is only available in source form, and may need compilation of
  C/C++/Fortran: ‘data.table’
  These will not be installed

Afterwards, I consulted google users, I downloaded the source package:
"data.table_1.10.4-3.tar.gz" from CRAN, stored it on desktop, and tried
following command for installing from source only:


install.packages("C:\\Users\\Dr. A.K.
Singh\\Desktop\\data.table_1.10.4-3.tar.gz", repos = NULL, type="source")

This generated following errors messages:

> install.packages("C:\\Users\\Dr. A.K.
Singh\\Desktop\\data.table_1.10.4-3.tar.gz", repos = NULL, type="source")
Installing package into ‘C:/Users/Dr. A.K.
Singh/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
* installing *source* package 'data.table' ...
** package 'data.table' successfully unpacked and MD5 sums checked
** libs
Warning in system(cmd) : 'make' not found
ERROR: compilation failed for package 'data.table'
* removing 'C:/Users/Dr. A.K. Singh/Documents/R/win-library/3.5/data.table'
* restoring previous 'C:/Users/Dr. A.K.
Singh/Documents/R/win-library/3.5/data.table'
In R CMD INSTALL
Warning message:
In install.packages("C:\\Users\\Dr. A.K.
Singh\\Desktop\\data.table_1.10.4-3.tar.gz",  :
  installation of package
‘C:/Users/DRAK~1.SIN/Desktop/data.table_1.10.4-3.tar.gz’ had non-zero exit
status
>


I is requested to kindly help. I was writing a book using R-Markdown. And I
am stuck up as described above.

Dr. A.K. Singh
Professor and Head
Department of Agricultural Statistics
Indira Gandhi Krishi Vishwavidyalaya
Raipur
Chhattisgarh
India

[[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-es] kappa

2018-04-26 Thread Manuel Mendoza


Buenas, ¿alguien sabe qué puede ser este error?

data es una df y las columnas 23 y 24 son las que quiero comparar; están bien.

testK<-kappa2(data[,c(23,24)], "equal")

Error in sort.list(y) : 'x' must be atomic for 'sort.list'
Have you called 'sort' on a list?
--
Dr Manuel Mendoza
Department of Biogeography and Global Change
National Museum of Natural History (MNCN)
Spanish Scientific Council (CSIC)
C/ Serrano 115bis, 28006 MADRID
Spain

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


[ESS] SOLVED Re: ess-dump-object-into-edit-buffer

2018-04-26 Thread Patrick Connolly
x1On Tue, 24-Apr-2018 at 10:38PM -0400, Ista Zahn wrote:

[...]

|> >
|> > Well, I thought I did that with what I posted on 16/4/18, though I did
|> > neglect to give the system information:
|> 
|> I cannot reproduce it, which means either that you didn't give clear
|> reproduction steps, or that I failed to follow them.

As it turns out, there are more than those two possibilities.  There
is a difference between the set ups, and that difference is not in the
.emacs file.  In fact, there is a ~/.Rprofile which I'd forgotten
about.  The discussion in this thread about the R function dump() led
me find an addition to that file I made centuries ago.

options(deparse.max.lines = 4)

IIRC That was to deal with an issue with the browser() function that
would spew out all the code adjacent to where browser() appeared in
the function.  There was a lot of superflous code filling up screen
real-estate.

I don't understand how that change didn't lead to the current issue at
the time, but removing that line in .Rprofile is the answer to my
question.

Many thanks to all the contributors to this thread,


-- 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.   
   ___Patrick Connolly   
 {~._.~}   Great minds discuss ideas
 _( Y )_ Average minds discuss events 
(:_~*~_:)  Small minds discuss people  
 (_)-(_)  . Eleanor Roosevelt
  
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


[ESS] Shift Underline Produces '<-'

2018-04-26 Thread Miguel Morin
Hello all,

I started using ESS recently. Steven McKinney's solution works as long as I 
only load `.emacs` once. If I write another instruction and load it again, it 
reverts back to default. I fixed it with two toggles, the first forcing it to 
default, the second turning it off:

(ess-toggle-underscore t)
(ess-toggle-underscore nil)

Regards,

Miguel
__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help