Re: [R] File names for mac newby

2020-01-21 Thread R. Mark Sharp via R-help
Open the terminal application in the Utilities folder. Select the file you want to use in R in a Finder window and drag it to the terminal applications command line prompt and then release the file. The absolute path of the file will be entered in the command line of the terminal’s window. Thoug

[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 any

Re: [R] How my r package convert into higher r version

2020-01-21 Thread Jim Lemon
Hi Ulavappa, This is only a guess, but there was recently a change in the "barplot" function that broke a lot of packages. If any functions in your package call the "barplot" function, it may have been dropped from the repositories for newer versions of R. Jim On Wed, Jan 22, 2020 at 12:56 AM Ula

Re: [R] N Sizes between Pairs of Columns using cor(, , , use = 'pairwise')

2020-01-21 Thread Doran, Harold
Now that’s brilliant! And to get a vector of counts I could extend it to rr <- crossprod(!is.na(tmp)) rr[lower.tri(rr),] Thanks, Bill! From: William Dunlap Sent: Tuesday, January 21, 2020 3:00 PM To: Doran, Harold Cc: r-help@r-project.org Subject: Re: [R] N Sizes between Pairs of Columns usin

Re: [R] File names for mac newby

2020-01-21 Thread Kevin Thorpe
You would also need to drop the c: as that is a DOS/Windows thing. -- Kevin E. Thorpe Head of Biostatistics, Applied Health Research Centre (AHRC) Li Ka Shing Knowledge Institute of St. Michael's Assistant Professor, Dalla Lana School of Public Health University of Toronto email: kevin.tho...@ut

Re: [R] N Sizes between Pairs of Columns using cor(, , , use = 'pairwise')

2020-01-21 Thread William Dunlap via R-help
crossprod(!is.na(tmp)) Bill Dunlap TIBCO Software wdunlap tibco.com On Tue, Jan 21, 2020 at 11:56 AM Doran, Harold wrote: > I'm trying to find an efficient way to find the N size on correlations > produced when using the pairwise option in cor(). > > Here is a sample to illustrate: > > ### Cre

[R] N Sizes between Pairs of Columns using cor(, , , use = 'pairwise')

2020-01-21 Thread Doran, Harold
I'm trying to find an efficient way to find the N size on correlations produced when using the pairwise option in cor(). Here is a sample to illustrate: ### Create a sample data frame tmp <- data.frame(v1 = rnorm(10), v2 = rnorm(10), v3 = rnorm(10), v4 = rnorm(10)) ### Create some random miss

Re: [R] File names for mac newby

2020-01-21 Thread James Spottiswoode
OSX is based on BSD UNIX so paths use the forward slash as separator, e.g. temps <- read.table("c:/Users/DFP/Documents/ah/house/HouseTemps.txt",header=T,row.names=1) Best James > On Jan 21, 2020, at 9:20 AM, David wrote: > > I moved to a mac a few months ago after years in windows, and I'm st

Re: [R] File names for mac newby

2020-01-21 Thread William Michels via R-help
Hi David, Often on a Mac you can "right click" (or on a laptop--press down with two fingers), and a pop-up will give you the option to "Copy File Path". (You can also find this option in a Finder window under the "Finder -> Services" menu bar) .This is the path you should use to import your file i

[R] File names for mac newby

2020-01-21 Thread David
I moved to a mac a few months ago after years in windows, and I'm still learning basics.  I'm wanting to create a data frame based on a text file called HouseTemps.txt.  That's a file within one called house which is within one called ah.  That may further be in one called  Documents.  I tried

Re: [R] How my r package convert into higher r version

2020-01-21 Thread Jeff Newmiller
a) Wrong mailing list... Per the Posting Guide you probably need [1]. b) In the absence of a specific question, you should probably demonstrate that you have read and followed [2]. c) These mailing lists use plain text only... sumbitting questions with HTML formatting is strongly frowned on bec

[R] How my r package convert into higher r version

2020-01-21 Thread Ulavappa Angadi
Dear all please help me to how my r package (version 3.0.) convert into higher r version (3.6) while installing in higher version R it showing package mbFerns_1.0.1.zip is not available (for R version 3.6.0) With regards Angadi U B Principal. Scientist CABin, IASRI, Pusa, New Delhi [[a

[R] [R-pkgs] forestError 0.1.0: Random forest conditional prediction intervals, squared errors, and biases

2020-01-21 Thread Benjamin Lu
Hi all, I’m writing to introduce a new package, forestError. This package estimates conditional response quantiles (prediction intervals), conditional mean squared prediction errors, conditional biases, and conditional prediction error distribution functions for random forests using new methods pr

Re: [R] Mixed format

2020-01-21 Thread Rui Barradas
Hello, Inline. Às 09:22 de 21/01/20, Chris Evans escreveu: I think that might risk giving the wrong date for a date like 1/3/1990 which I think in Val's data is mdy data not dmy. As I read the data, where the separator is "/" the format is mdy and where the separator is "-" it's dmy. Mayb

Re: [R] Mixed format

2020-01-21 Thread peter dalgaard
Perhaps flogging a dead horse here, but notice that your desired output has lines C and D in conflicting formats, since you can't have 19 in both 1st and 2nd position. Also, it is not clear that A-C are not yy-mm-dd, with B being November 20 2022. If you can ensure that formats are at least co

Re: [R] Mixed format

2020-01-21 Thread Chris Evans
I think that might risk giving the wrong date for a date like 1/3/1990 which I think in Val's data is mdy data not dmy. As I read the data, where the separator is "/" the format is mdy and where the separator is "-" it's dmy. So I would go for: library(lubridate) DFX$dnew[grep("-", DFX$ddate