Re: [Rd] Building R for windows tools link

2005-05-12 Thread Gregor GORJANC
Prof Brian Ripley wrote:
> On Thu, 12 May 2005, Gregor GORJANC wrote:
> 
>> Prof Brian Ripley wrote:
>>
>>> On Wed, 11 May 2005, Gorjanc Gregor wrote:
>>>
>>>> Hello!
>>>>
>>>> I think that link to page of Duncan Murdoch (bellow) should be given
>>>>
>>>> http://www.murdoch-sutherland.com/Rtools/
>>>>
>>>> at
>>>>
>>>> http://developer.r-project.org/.
>>>
>>>
>>>
>>> Are you saying that it is given incorrectly?  I can't see it.
>>> That site is for the development of R, not for users building R, so it
>>> does not seem appropriate to link from there.
>>
>> No, it isn't given incorrectly. I was surprised that it isn't there. I
>> agree to some point with you, but building R is probably also part of the
>> development.
> 
> 
> As the front page says
> 
> `This site is intended as an intermediate repository for more or less
> finalized ideas and plans for the R statistical system.'
> 
> What exactly is unclear about that?  How to build current R is not part
> of the development of R.

Nothing is unclear. I still think that building is part of the development.
I'm sure that R-devils, uups I meant R-devels, don't want to develop
something that is not buildable. Anyway, lets end with this disscussion. I
will remember that mentioned link is in R-admin manual.

-- 
Lep pozdrav / With regards,
Gregor Gorjanc

--
University of Ljubljana
Biotechnical FacultyURI: http://www.bfro.uni-lj.si/MR/ggorjan
Zootechnical Department mail: gregor.gorjanc  bfro.uni-lj.si
Groblje 3   tel: +386 (0)1 72 17 861
SI-1230 Domzale fax: +386 (0)1 72 17 888
Slovenia, Europe
--
"One must learn by doing the thing; for though you think you know it,
 you have no certainty until you try." Sophocles ~ 450 B.C.

__
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Building R for windows tools link

2005-05-11 Thread Gregor GORJANC
Prof Brian Ripley wrote:
> On Wed, 11 May 2005, Gorjanc Gregor wrote:
> 
>> Hello!
>>
>> I think that link to page of Duncan Murdoch (bellow) should be given
>>
>> http://www.murdoch-sutherland.com/Rtools/
>>
>> at
>>
>> http://developer.r-project.org/.
> 
> 
> Are you saying that it is given incorrectly?  I can't see it.
> That site is for the development of R, not for users building R, so it
> does not seem appropriate to link from there.
No, it isn't given incorrectly. I was surprised that it isn't there. I
agree to some point with you, but building R is probably also part of the
development.

>> It's easy to launch Google and find mentioned page, but it took me quite
>> some time to do this, because I was sure, that it is noted somewhere
>> on {www,CRAN}.r-project.org. Maybe I didn't read carefully ...
> 
> It _is_ in the R-admin manual, the place building R for Windows is
> discussed (as from 2.1.0).  Apart from in that manual I am unaware of it
> being on the main R web sites.
OK, it looks like I'll have to update a bookmark in my head.

-- 
Lep pozdrav / With regards,
Gregor Gorjanc

--
University of Ljubljana
Biotechnical FacultyURI: http://www.bfro.uni-lj.si/MR/ggorjan
Zootechnical Department mail: gregor.gorjanc  bfro.uni-lj.si
Groblje 3   tel: +386 (0)1 72 17 861
SI-1230 Domzale fax: +386 (0)1 72 17 888
Slovenia, Europe
--
"One must learn by doing the thing; for though you think you know it,
 you have no certainty until you try." Sophocles ~ 450 B.C.

__
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] CRAN website: link targets

2005-03-25 Thread Gregor GORJANC
Hello R-masters!
R and CRAN webpages use HTML frames for layout. Links to files such as PDF 
are therefore opened within frame. However, with PDFs this can be 
distracting if you have a small monitor, since left frame can be small for 
viewing PDFs with bookmark toolbar in the left in Acrobat Reader. It isn't 
such a bug problem with others i.e. (K)Ghostview etc, but it can be still 
small to look at.

I suggest to add targets to all links to PDF files. If one wants to see 
that link will be opened in new frame/tab then target="_blank" should used, 
otherwise target="_top" will cause that PDF will be opened "over all 
frames" of current website.

I can help if you find this idea good and don't find time to do it.
--
Lep pozdrav / With regards,
Gregor Gorjanc
---
University of Ljubljana
Biotechnical FacultyURI: http://www.bfro.uni-lj.si/MR/ggorjan
Zootechnical Department mail: gregor.gorjanc  bfro.uni-lj.si
Groblje 3   tel: +386 (0)1 72 17 861
SI-1230 Domzale fax: +386 (0)1 72 17 888
Slovenia, Europe
__
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] corrupt data frame: columns will be truncated or padded with NAs in: format.data.frame(x, digits = digits)

2005-02-14 Thread Gregor GORJANC
Hello!
Sending this also to r-help so anyone can read it also there and maybe also 
help me with my puzzle if this trivial and I don't see it.

Prof Brian Ripley wrote:
[... removed some ...]
You add a column, not replace part of a non-existent column.  Isn't that 
obvious, given what you wrote?
# OK. If I do
tmp <- data.frame(y1=1:4, f1=factor(c("A", "B", "C", "D")))
tmp[1:2, "y2"] <- 2
tmp
# I am changing nonexistent column y2 in data frame tmp.
# If I do
tmp <- data.frame(y1=1:4, f1=factor(c("A", "B", "C", "D")))
tmp$y2 <- NA
tmp[1:2, "y2"] <- 2
tmp
# I am changing existent column. I understand now the difference. However,
# it is weird for me that this is OK (if column y2 does not yet exist)
tmp["y2"] <- 2
# but this is not
tmp[1:2, "y2"] <- 2
There is a lot of basic documentation on data manipulation in R/S, and a 
whole chapter in MASS4.  Somehow most other people don't seem to find 
this a problem.
I just ordered MASS4 last week and I am eager to get it in my hands. In 
meanwhile I read quite some documentation and what I more or less saw is

tmp <- data.frame(y1=1:4, f1=factor(c("A", "B", "C", "D")))
tmp$y2 <- 1:4
tmp$y3 <- 2*tmp$y1
...
...
i.e. everybody is adding full column to data frame. But I would like to add 
just one part.

--
Lep pozdrav / With regards,
Gregor GORJANC
---
University of Ljubljana
Biotechnical Faculty   URI: http://www.bfro.uni-lj.si
Zootechnical Departmentmail: gregor.gorjanc  bfro.uni-lj.si
Groblje 3  tel: +386 (0)1 72 17 861
SI-1230 Domzalefax: +386 (0)1 72 17 888
Slovenia
__
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Wishlist: simple legend options (PR#7400)

2005-02-14 Thread Gregor GORJANC
I added link to https://svn.r-project.org/R/trunk/NEWS in files
http://www.bfro.uni-lj.si/MR/ggorjan/sources.html
http://www.bfro.uni-lj.si/MR/ggorjan/banner.shtml
Uwe Ligges wrote:
Gregor GORJANC wrote:
Hello Uwe.
Thanks for the response. I was searching in bug repository for 
something else and found that wish. Hoewever I tried to do a search 
for that, so I would not bother R-devel team. I was not successfull in 
finding any meaningfull comments on legend in

http://developer.r-project.org/R.svnlog.2005

Right, because it was done last year:
http://developer.r-project.org/R.svnlog.2004
has (among other legend related entries):

r32089 | murdoch | 2004-12-02 17:17:43 -0500 (Thu, 02 Dec 2004) | 1 line
Changed paths:
   M /trunk/NEWS
   M /trunk/src/library/graphics/R/legend.R
   M /trunk/src/library/graphics/man/legend.Rd
legend() enhancements from PR#7400

You are right with NEWS file in R-devel. It really documents this 
improvement. Very nice. You guys really do an excellent job. I did not 
looked in NEWS file since it is kind of "hidden" i.e. one needs to 
download the R-devel and look in that file. But I confes, it is my 
blame, not of R-devel folk. However I think, that it would be nice 
that link to NEWS file would be accessible directly from R websites. I 
wrote few lines of HTML code that could be added to CRAN webpages for 
this. I hope r-team or CRAN maintainers will find this usefull.

The file is much more easily available via SVN:
https://svn.r-project.org/R/trunk/NEWS
Uwe Ligges


Look files:
* A replacement for http://cran.at.r-project.org/sources.html. I added 
link to last R-devel and R-patched archives and to corresponding NEWS 
files. However there are now no NEWS files at 
ftp://ftp.stat.math.ethz.ch/Software/R. I suggest that NEWS files for 
last R-devel and R-patched should be there, but since there are two, 
they could be named NEWS-devel and NEWS-patched or something alike. 
Maybe one could even divide directories ro R-devel and R-pacthed.

File is available at:
http://www.bfro.uni-lj.si/MR/ggorjan/sources.html
* A replacement for http://cran.at.r-project.org/banner.shtml. I added 
the same as above.

File is available at:
http://www.bfro.uni-lj.si/MR/ggorjan/banner.shtml
Uwe Ligges wrote:
Gorjanc Gregor wrote:
Hello!
I was loooking in R-bugs and found under wishlist-fullfilled wish 
for "smart" placement of a legend. This has already been done in 
package
gplots in function smartlegend.

One question. This "bug-report" is under wishlist-fullfilled. Is it 
really
fullfilled? 


Yes, in the current developer release (AKA R-devel, to be R-2.1.0), 
as you can easily see in the correpsonding NEWS file and the svn logs.

Why do you follow up into the bug repository?
Uwe Ligges

Mail from Elizabeth
---
It would be nice if legend had the option of some default locations 
you could
choose instead of entering specific coordinates, like "topleft",
"topright","topcenter", etc. based on par("usr") coordinates. I know 
I've wanted
it so often I've made my own simple non-robust wrap-around, so I 
don't have to
remember or parse the xjust and yjust options necessary to make it 
work. Of
course there should be the option of entering in your own coordinates.
Also it would be nice to be able to put a optional title inside your 
legend.
Currently I just make my title the first value in my legend vector, 
and then fix
the other options so no symbols plot next to it. But this isn't 
always a pretty
result and can be a pain if your symbols are complicated.

Thanks,
Elizabeth
Response to Elizabeth by Duncan Murdoch
-------
--
Lep pozdrav / With regards,
Gregor GORJANC
---
University of Ljubljana
Biotechnical Faculty   URI: http://www.bfro.uni-lj.si
Zootechnical Departmentemail: gregor.gorjanc  bfro.uni-lj.si
Groblje 3  tel: +386 (0)1 72 17 861
SI-1230 Domzalefax: +386 (0)1 72 17 888
Slovenia
__
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel





--
Lep pozdrav / With regards,
Gregor GORJANC
---
University of Ljubljana
Biotechnical Faculty   URI: http://www.bfro.uni-lj.si
Zootechnical Departmentmail: gregor.gorjanc  bfro.uni-lj.si
Groblje 3  tel: +386 (0)1 72 17 861
SI-1230 Domzalefax: +386 (0)1 72 17 888
Slovenia
__
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] corrupt data frame: columns will be truncated or padded with NAs in: format.data.frame(x, digits = digits)

2005-02-14 Thread Gregor GORJANC
Hello!
Prof Brian Ripley wrote:
You did create a corrupt data frame by using *replacement* on part of 
something that did not exist.  The simple workaround is not to do that. 
One can argue about what should happen in such a case and currently R 
assumes that you know what you are doing and will only treat the data 
frame as a list. We could make this an error, but that would add an 
overhead to be paid by careful users too.
I agree to some extent, however I was very surprised of this behaviour. I 
often deal with data that have missing values and now I really do not know 
how to manage such data. How can one add a column to existing data frame
in such a way, that you don't get corrupted data frames as in my example?

(tmp <- data.frame(y1=1:4, f1=factor(c("A", "B", "C", "D"
  y1 f1
1  1  A
2  2  B
3  3  C
4  4  D
# Add new column, which is not full (missing some data for last
# records)
tmp[1:2, "y2"] <- 2
tmp
 y1 f1   y2
1  1  A2
2  2  B2
3  3  C 
4  4  D 
Warning message:
corrupt data frame: columns will be truncated or padded with NAs
in: format.data.frame(x, digits = digits)
I hope that this is not the best solution:
tmp <- data.frame(y1=1:4, f1=factor(c("A", "B", "C", "D")))
tmp$y2 <- NA
tmp[1:2, "y2"] <- 2
tmp
If you really want to understand what is going on here, please read the 
source code: R is a volunteer project and the volunteers do not have 
time to explain each and every one of your error messages to you -- we 
have already had several goes over including data frames in data frames.
I try to and I hope I did not take to much of your time.
[... removed the rest ...]
--
Lep pozdrav / With regards,
Gregor GORJANC
---
University of Ljubljana
Biotechnical Faculty   URI: http://www.bfro.uni-lj.si
Zootechnical Departmentmail: gregor.gorjanc  bfro.uni-lj.si
Groblje 3  tel: +386 (0)1 72 17 861
SI-1230 Domzalefax: +386 (0)1 72 17 888
Slovenia
__
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Wishlist: simple legend options (PR#7400)

2005-02-14 Thread Gregor GORJANC
Hello Uwe.
Thanks for the response. I was searching in bug repository for something 
else and found that wish. Hoewever I tried to do a search for that, so I 
would not bother R-devel team. I was not successfull in finding any 
meaningfull comments on legend in

http://developer.r-project.org/R.svnlog.2005
You are right with NEWS file in R-devel. It really documents this 
improvement. Very nice. You guys really do an excellent job. I did not 
looked in NEWS file since it is kind of "hidden" i.e. one needs to download 
the R-devel and look in that file. But I confes, it is my blame, not of 
R-devel folk. However I think, that it would be nice that link to NEWS file 
would be accessible directly from R websites. I wrote few lines of HTML 
code that could be added to CRAN webpages for this. I hope r-team or CRAN 
maintainers will find this usefull.

Look files:
* A replacement for http://cran.at.r-project.org/sources.html. I added link 
to last R-devel and R-patched archives and to corresponding NEWS files. 
However there are now no NEWS files at 
ftp://ftp.stat.math.ethz.ch/Software/R. I suggest that NEWS files for last 
R-devel and R-patched should be there, but since there are two, they could 
be named NEWS-devel and NEWS-patched or something alike. Maybe one could 
even divide directories ro R-devel and R-pacthed.

File is available at:
http://www.bfro.uni-lj.si/MR/ggorjan/sources.html
* A replacement for http://cran.at.r-project.org/banner.shtml. I added the 
same as above.

File is available at:
http://www.bfro.uni-lj.si/MR/ggorjan/banner.shtml
Uwe Ligges wrote:
Gorjanc Gregor wrote:
Hello!
I was loooking in R-bugs and found under wishlist-fullfilled wish for 
"smart" placement of a legend. This has already been done in package
gplots in function smartlegend.

One question. This "bug-report" is under wishlist-fullfilled. Is it 
really
fullfilled? 

Yes, in the current developer release (AKA R-devel, to be R-2.1.0), as 
you can easily see in the correpsonding NEWS file and the svn logs.

Why do you follow up into the bug repository?
Uwe Ligges

Mail from Elizabeth
---
It would be nice if legend had the option of some default locations 
you could
choose instead of entering specific coordinates, like "topleft",
"topright","topcenter", etc. based on par("usr") coordinates. I know 
I've wanted
it so often I've made my own simple non-robust wrap-around, so I don't 
have to
remember or parse the xjust and yjust options necessary to make it 
work. Of
course there should be the option of entering in your own coordinates.
Also it would be nice to be able to put a optional title inside your 
legend.
Currently I just make my title the first value in my legend vector, 
and then fix
the other options so no symbols plot next to it. But this isn't always 
a pretty
result and can be a pain if your symbols are complicated.

Thanks,
Elizabeth
Response to Elizabeth by Duncan Murdoch
-------
--
Lep pozdrav / With regards,
Gregor GORJANC
---
University of Ljubljana
Biotechnical Faculty   URI: http://www.bfro.uni-lj.si
Zootechnical Departmentemail: gregor.gorjanc  bfro.uni-lj.si
Groblje 3  tel: +386 (0)1 72 17 861
SI-1230 Domzalefax: +386 (0)1 72 17 888
Slovenia
__
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


--
Lep pozdrav / With regards,
Gregor GORJANC
---
University of Ljubljana
Biotechnical Faculty   URI: http://www.bfro.uni-lj.si
Zootechnical Departmentmail: gregor.gorjanc  bfro.uni-lj.si
Groblje 3  tel: +386 (0)1 72 17 861
SI-1230 Domzalefax: +386 (0)1 72 17 888
Slovenia
__
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Option for "Delete downloaded files (y/N)?" in install.packages()

2005-01-04 Thread Gregor GORJANC
Hello!
Thanks to Thomas and Brian for answers!
Prof Brian Ripley wrote:
...
Is it possible to include some option in install.packages() for
Delete downloaded files (y/N)? at the end of that process. It can
be quite anoying if you must install several packages and wait
meanwhile to type y/n for each package separately.
It does happen at the end of the process: you are using one call for the 
several packages?  Something like install.packages(c("pkg1, "pkg2", 
"pkg3"))?
Yes, it does happen at the end of the process, but I wrote a simple script, 
which installs all favourite packages and it does one by one. I could
modify it to use the whole list at once also, but there is apparently no 
need since my wish/proposal is already solved in R-devel.

In R-devel you are not asked at all, and even now you will not be asked 
if you specify destdir.
Yes, I know for the last one, but then you must delete them by "hand"!
--
Lep pozdrav / With regards,
Gregor GORJANC
---
University of Ljubljana
Biotechnical Faculty   URI: http://www.bfro.uni-lj.si
Zootechnical Departmentmail: gregor.gorjanc  bfro.uni-lj.si
Groblje 3  tel: +386 (0)1 72 17 861
SI-1230 Domzalefax: +386 (0)1 72 17 888
Slovenia
__
R-devel@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] Modes again

2004-11-26 Thread Gregor GORJANC
Hello!
I write once more. I slightly modified your code Ross and now it returns 
all modes from the distribution. I changed the name of the funtion to 
distinguish the difference. I do not like the name simpleMode, however 
mode is already taken by another function (The (Storage) Mode of an Object).

It would be nice to have some additional options for number of 
observations in modes, however this is above my current programming 
skills in R. I don't like the use of cat for returning the result. That 
is the reason I am sending this mail also to R-devel list. Maybe anybody 
there can solve the issue. Quite some users asked for mode calculation 
function and it would really nice to have it in R by default.

modus <- function (x) {
# Returns the modes of a value set
# Based on Ross NELSONs code from 2004-11-16 (on R-help mailling list)
# create a table with the values sorted by frequency
sortvar <- sort(table(x))
# get the max frequency
maxfreq <- max(sortvar)
# find values with high frequency
modeTable <- which(sortvar == maxfreq)
# get the name (value) of the most frequent value
themoderesult <- names(modeTable)
# Report
return(themoderesult)
# data(CO2)
# modus(CO2$uptake)
# rm(CO2)
}
--
Lep pozdrav / With regards / Con respeto,
Gregor GORJANC
---
University of Ljubljana
Biotechnical Faculty   URI: http://www.bfro.uni-lj.si
Zootechnical Departmentmail: gregor.gorjanc  bfro.uni-lj.si
Groblje 3  tel: +386 (0)1 72 17 861
SI-1230 Domzalefax: +386 (0)1 72 41 005
Slovenia
__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel