[R] Mixed format

2020-01-21 Thread David Luckett
Bearing Peter's warning in mind, the {anytime} package can be useful in this
example:

library(anytime)
DFX$dnew <- anydate(DFX$ddate)
DFX
# First three strings are ambiguous
# Also, string 5 is only OK if its assumed to be the same format as
strings 4 & 6.

# Can add a specific format to those anytime() uses:
getFormats()
addFormats(c("%d-%m-%y"))

DFX$dnew <- anydate(DFX$ddate)
DFX

Cheers
David Luckett
djluck...@gmail.com
0408 750 703

__
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] Analysing diallel and line x tester mating design with multiple location in R

2019-03-29 Thread David Luckett
Hi Gbemisola,
You can find functions for diallel analysis (Griffing and Hayman) and
LxT analysis in several R packages:
agricolae (on CRAN),
DiallelAnalysisR (on CRAN),
plantbreeding (on R-forge), and
AGD-R (on the CIMMYT website; a front-end built on R).

If these are not enough (!) you could try other stand-alone software,
such as: PBTOOLS, GENES, QGAStation, TNAUSTAT, ICRISAT Genstat
scripts, GSCA (not free), or Dial98.

HTH, Cheers
David Luckett
djluck...@gmail.com
0408 750 703

__
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] Can an xyplot() plus legend be saved as an Enhanced Windows Metafile (EMF)?

2011-02-03 Thread david . luckett
I am trying to save some graphical output including a legend in the 
Windows Enhanced Metafile (EMF) format.
This fails when xyplot() is used rather than plot().
Here is a simple example:

require(lattice)
a - c(1:10)
b - c(2,4,5,2,3,5,7,8,9,5)

# Output can be saved (or copied to the clipboard) as a Windows EMF image 
file 
# from the Graphics Device output window.
plot(a , b)
legend(topleft, Test, title=Legend)

# Output cannot be saved (or copied) as an EMF
plot.new()
xyplot(a ~ b)
legend(topleft, Test, title=Legend)

I am using R version 2.12.0 (2010-10-15) on platform i386-pc-mingw32

Thanks for any help or suggestions.

David Luckett
Senior Research Scientist

EH Graham Centre
Charles Sturt University and Industry  Investment NSW
Wagga_Wagga  NSW  2650  Australia
www.GrahamCentre.net   www.industry.nsw.gov.au


This message is intended for the addressee named and may...{{dropped:7}}

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Failed install of package xlsReadWrite

2010-02-10 Thread david . luckett
Does anyone have a work-around for a failed installation of this package?

 library(xlsReadWrite)
xlsReadWrite version (cran shlib)
Copyright (C) 2010 Hans-Peter Suter, Treetron, Switzerland.

!! Your installation contains the cran placeholder shlib (dll/so).
Please get the regular shlib (420 KB) by executing the following command:

xls.getshlib()

However, the xls.getshlib() command fails with this error:

 xls.getshlib()
Loading required package: tools
--- xls.getshlib running... --- 
Error in copyOrDownload(url) : 
  downloading 
'http://dl.dropbox.com/u/2602516/swissrpkg/bin/win32/shlib/xlsReadWrite_1.5.1_dll.zip'
to 'D:\DOCUME~1\lucketd\LOCALS~1\Temp\Rtmp1fxn1L/xlsReadWrite.zip' failed
In addition: Warning message:
In download.file(url, fpzip.temp, method = internal, quiet = TRUE,  :
  unable to connect to 'dl.dropbox.com' on port 80.

I am able to download the required ZIP files and extract the contents 
manually but am not 100% sure 
where they should be located, or how to remove/replace the CRAN 
placeholder.

--
Many thanks for any help.

Dr David Luckett
EH Graham Centre
Charles Sturt University and Industry  Investment NSW
Wagga_Wagga  NSW  2650  Australia


This message is intended for the addressee named and may...{{dropped:6}}

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.