[R] Log plus one transformation in R

John Sorkin jsorkin at grecc.umaryland.edu
Mon Dec 12 17:35:35 CET 2016

I all you need to do is
newvalue <- log(x+1)

John David Sorkin M.D., Ph.D.
Professor of Medicine
Chief, Biostatistics and Informatics
University of Maryland School of Medicine Division of Gerontology and
Geriatric Medicine
Baltimore VA Medical Center
10 North Greene Street
Baltimore, MD 21201-1524
(Phone) 410-605-7119
(Fax) 410-605-7913 (Please call phone number above prior to faxing) 
>>> Faradj Koliev <faradj.g at gmail.com> 12/12/16 11:24 AM >>>
Hi all, 

How do I perform log(x+1) in R? 

log1p_trans() from the package ”scales" doesn’t seem to work for me. 

R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
PLEASE do read the posting guide
and provide commented, minimal, self-contained, reproducible code.
Confidentiality Statement:
This email message, including any attachments, is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. Any unauthorized use, disclosure or distribution is
prohibited. If you are not the intended recipient, please contact the
sender by reply email and destroy all copies of the original message. 

More information about the R-help mailing list