[R] Fwd: Re: Reading xpt files into R

2018-04-14 Thread WRAY NICHOLAS via R-help
Original Message -- From: WRAY NICHOLAS To: peter dalgaard Date: 14 April 2018 at 20:18 Subject: Re: [R] Reading xpt files into R Well yesterday I'd downloaded the "foreign" package and tried to open the xpt file using that:

[R] Reading xpt files into R

2018-04-13 Thread WRAY NICHOLAS via R-help
Hello R folk I have an xpt file which I have been trying to open into R in R studio On the net I found guidance which says that I need packages Hmisc and SASxport which I have successfully loaded. I had also found some code which says that this would allow me to read the xpt file into R:

[R] Limit in Directory Hierarchy?

2018-03-25 Thread WRAY NICHOLAS via R-help
A quick question - is there a limit to the number of levels one can go down when setting the directory in R studio? I ask because I have been trying to set the directory to a folder 8 levels down which R studio won't allow, and when I try to set the directory through Session/Set Working

[R] Problems with "predict" function ii

2018-01-31 Thread WRAY NICHOLAS via R-help
I have realised that I should have used "detach" before attaching another dataframe, but even when I do this it's still giving me lots of lines, rather than just one: My code: m<-runif(1,0,1) m mres<-m*(seq(1,12)) mres ssd<-rexp(1,1) ssd devs<-rep(0,length(mres)) for(i in

[R] Problems with "predict" function

2018-01-31 Thread WRAY NICHOLAS via R-help
Hello, I am synthesising some sales data over a twelve month period, and then trying to use the "predict" function, firstly to generate a thirteenth month forecast with upper and lower 95% confidence limits. So far so good But what I then want to do is add the upper sales value at the 95th

[R] Data invisible to read.csv

2017-11-01 Thread WRAY NICHOLAS via R-help
Hello This relates to trying to upload csv files to R. Essentially I have some v large csv files, but in the column where the dates are appears the column entry "00:00.0" for every line. But in the formula bar appears a date as well, for example "01/04/09 00:00.0", and this never appears in