Re: [R] Printing vector

2019-07-23 Thread Steven
Thank you Lei. I incorporate Bill Dunlap's idea of flagging with FORTRAN stars when field width is short. It works great and serves what I need. Thank you all. I love R! Steven Linus Chen 於 2019/7/23 下午 05:46 寫道: Dear Steven, The function "write()" has a parameter "columns". And sprint() ca

Re: [R] Printing vector

2019-07-23 Thread Steven
Very nice indeed. Thank you gentlemen. Steven Michael Friendly 於 2019/7/24 上午 01:23 寫道: Nice to see William Dunlap take the trouble to mimic the classic Fortran behavior of printing for numbers that don't fit in the given width :) -Michael On 7/22/19 6:33 p.m., William Dunlap via R-hel

Re: [R] Regarding R licensing usage guidance

2019-07-23 Thread Abby Spurdle
> I highly recommend using a language other than R if you don't plan to distribute source code with your software. I disagree. I don't think the goal of this forum is to dis-incentivise the use of R. Yes, users are subject to the GPL. But beyond that, what they do is up to them. [[altern

Re: [R] [FORGED] Re: Regarding R licensing usage guidance

2019-07-23 Thread Rolf Turner
Jeff: Your comments are often (almost always?) a bit rough about the edges, and on the recipient, but are always cogent. Although John M. has a valid point, I tend to agree with you. I would say that if you want to make money, trying to sell your own software is a bad way to go about it,

Re: [R] Regarding R licensing usage guidance

2019-07-23 Thread Jeff Newmiller
Your feelings are noted, but my comment about skills was not directed at the person of Anamika but at their skills, so no, it was not ad hominem. Regarding the word "odious"... I think that wrapping GPL software in a proprietary blob is ethically flawed, and that word is appropriate regardless

Re: [R] Regarding R licensing usage guidance

2019-07-23 Thread Abby Spurdle
> > I do not intend to use hard work of community and > > earn profit on it. > No, that's not right. The problem comes if you try to distribute copies > of R or R packages. You are allowed to make a profit. : ) [[alternative HTML version deleted]] ___

Re: [R] Regarding R licensing usage guidance

2019-07-23 Thread Weiwen Ng, MPH
The ad hominem comment about Google skills is also out of line. Knowing what to search for is often not trivial. The problem is magnified if English isn't your native language. On Tue, Jul 23, 2019 at 3:59 PM John Maindonald wrote: > I think this unfair, certainly the ‘odious’ comment. Very man

Re: [R] Regarding R licensing usage guidance

2019-07-23 Thread John Maindonald
I think this unfair, certainly the ‘odious’ comment. Very many of us have been able to contribute because supported to do such work while occupying relatively comfortable academic positions. In the process of getting there, we have benefited enormously from the work of those who have gone before.

Re: [R] Regarding R licensing usage guidance

2019-07-23 Thread Patrick (Malone Quantitative)
Again, consult an IP lawyer whom you are paying for legal advice. On Tue, Jul 23, 2019 at 4:15 PM Duncan Murdoch wrote: > > On 23/07/2019 2:38 p.m., ANAMIKA KUMARI wrote: > > Hi Team > > > > Thank you for your reply. I do not intend to use hard work of community and > > earn profit on it. I do no

Re: [R] Regarding R licensing usage guidance

2019-07-23 Thread Duncan Murdoch
On 23/07/2019 2:38 p.m., ANAMIKA KUMARI wrote: Hi Team Thank you for your reply. I do not intend to use hard work of community and earn profit on it. I do not intend to do any changes or modifications in existing R source code and build software over it. I am just using R as language to develop

Re: [R] Regarding R licensing usage guidance

2019-07-23 Thread ANAMIKA KUMARI
Hi Team Thank you for your reply. I do not intend to use hard work of community and earn profit on it. I do not intend to do any changes or modifications in existing R source code and build software over it. I am just using R as language to develop my own work, the same way people use Java or pyt

Re: [R] Printing vector

2019-07-23 Thread Michael Friendly
Nice to see William Dunlap take the trouble to mimic the classic Fortran behavior of printing for numbers that don't fit in the given width :) -Michael On 7/22/19 6:33 p.m., William Dunlap via R-help wrote: The following mimics Fortran printing with format F.. print1 <- function (x, perL

Re: [R] How to rename file names with condition

2019-07-23 Thread David Winsemius
On 7/23/19 6:30 AM, danielmessay--- via R-help wrote: Could somebody please help me on this? I have many files on my computer and would like to change its names so that it would be more meaningful for me. The filenames are in the following format: cvcvcv198307.xlsx I want to change it in su

Re: [R] How to rename file names with condition

2019-07-23 Thread Eric Berger
Assuming you have the vector of .xlsx file names as oldFilenames then newname <- function(oldname) { yr <- substr(oldname,7,10) m <- as.numeric(substr(oldname,11,12)) mo <- as.integer( m/3 + 1 - 0.1 ) i <- c(3,1,2)[ m%%3 + 1 ] sprintf("Domain%s-%d-%d.txt",yr,mo,i) } for ( s in oldFi

[R] How to rename file names with condition

2019-07-23 Thread danielmessay--- via R-help
Could somebody please help me on this? I have many files on my computer and would like to change its names so that it would be more meaningful for me. The filenames are in the following format: cvcvcv198307.xlsx I want to change it in such a way that cvcvcv into Domain1983 want to keep it 07 in

Re: [R] Printing vector

2019-07-23 Thread Steven
Thank you, Gentlemen. That serves my need. Bill's routine is great. Also, Rui: Is there a way to get rid of the filled "NA" and use space instead. Using fill = "" does not help either; it causes all numbers to be embraced with quotations. Finally, I have no idea why Rui's message did not reach

Re: [R] Printing vector

2019-07-23 Thread Linus Chen
Dear Steven, The function "write()" has a parameter "columns". And sprint() can do do some formatting in C style. x <- rnorm(100) s <- sprintf( fmt="%8.2f" ,x ) write(s, file="", ncolumns=7L) Cheers, Lei On Mon, 22 Jul 2019 at 07:37, Steven wrote: > > Is there a convenient way to print a vect