[R] substituting elements in vector according to sample(unique(vector))

2007-08-28 Thread Arthur Wuster
ub(), but they don't seem to be appropriate. Can anyone provide an elegant solution? Thank you, Arthur Wuster Theoretical and Computational Biology MRC Laboratory of Molecular Biology Cambridge, UK __ R-help@stat.math.ethz.ch mailing list https:

Re: [R] Pb with R.matlab

2006-12-22 Thread Arthur Leblois
Thank you. This was a mistake from me, I actually did not load the package. Sorry for this! Arthur On Fri, 22 Dec 2006, Petr Pikal wrote: > Hi > > you probably installed (downloaded and unpacked) a package but you > forgot to load it to R and therefore R does not know that you w

[R] Pb with R.matlab

2006-12-22 Thread Arthur Leblois
Kb package 'R.matlab' successfully unpacked and MD5 sums checked The downloaded packages are in C:\Documents and Settings\Arthur Leblois\Local Settings\Temp\RtmpPyR7qb\downloaded_packages updating HTML package descriptions > A <- matrix(1:27, ncol=3) > B <- as.

[R] (no subject)

2005-06-13 Thread Arthur
them to me? Thanks. yours Arthur xu __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

[R] (no subject)

2005-01-26 Thread Arthur Andersen
Dear R-help: Is there a way to extract a robust covariance matrix from optim? I am looking for one of the form H V H; where H is the inverse of the Hessian, and V is dLL/dT * dLL/dT’ (LL=Log-likelihood, T=vector of parameters, d is the partial). Optim returns H, which approximates for the c

[R] Heckman's method?

2003-01-30 Thread Arthur Ellen
Are there any functions that include this process? __ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help

Re: Part II Re: [R] read.ssd {foreign} (Reading a permanent SAS d ataset into an R data frame)

2002-12-25 Thread Stephen Arthur
Scot, Thanks for the additional information. On further reflection... whether one uses SAS PROC EXPORT or uses a SAS LIBNAME yourfile XPORT 'yourpathname'; statement, an intermediate file is created in either case. As far as experience tells me now, PROC EXPORT is a far superior choice, because

Re: Part II Re: [R] read.ssd {foreign} (Reading a permanent SAS d ataset into an R data frame)

2002-12-24 Thread Stephen Arthur
Scot, Thanks for the info. I will try your code out to verify the result, but before I do that, will your code (SAS and R) work with variable names that are longer than 8 characters long without truncating the variable name in R? Also, I wonder about using your method or the PROC EXPORT method w

Re: Part II Re: [R] read.ssd {foreign} (Reading a permanent SAS d ataset into an R data frame)

2002-12-23 Thread Stephen Arthur
I'd like to thank the R Core Team for making the parameters clearer for me on how to solve this problem. I think for now I will try to do most data management tasks in SAS (from Oracle) and then use PROC EXPORT in SAS to create a csv file that R can read and then I can do my graphics, for publicat

RE: Part II Re: [R] read.ssd {foreign} (Reading a permanent SAS d ataset into an R data frame)

2002-12-20 Thread Stephen Arthur
Thomas, The SAS data set I PROC CPORTed is [9] the result is [10]. I PROC CIMPORTed [10] back to its orginal state [9], and it worked. So the SAS people think that the error is not with the SAS XPORT file, but with R trying to load a text SAS XPORT file, when it should be loading the SAS XPORT

RE: Part II Re: [R] read.ssd {foreign} (Reading a permanent SAS d ataset into an R data frame)

2002-12-20 Thread Stephen Arthur
wing error message: read.xport("J:\\QM\\Reports\\Sarthur\\SAS_Application\\SAS_Data_Sets\\use") Error in lookup.xport(file) : unable to open file Thanks, Stephen --- Thomas Lumley <[EMAIL PROTECTED]> wrote: > On Fri, 20 Dec 2002, Stephen Arthur wrote: > > > Thanks >

RE: Part II Re: [R] read.ssd {foreign} (Reading a permanent SAS d ataset into an R data frame)

2002-12-20 Thread Stephen Arthur
Thanks > library(foreign) I did do that originally, I just mis-tpyed it, and it did not work. I talked with people at SAS, and they said the PROC COPY SAS code was good, but that I just need to play around with the R parameters for read.ssd Will get back to you on this issue. If you have any a

Part II Re: [R] read.ssd {foreign} (Reading a permanent SAS dataset into an R data frame)

2002-12-20 Thread Stephen Arthur
anyone help me get to the next step of this process? I believe I am close to getting R to read SAS permanent data sets directly, which I would really like to be able to do. Thanks, Stephen --- [EMAIL PROTECTED] wrote: > On Thu, 19 Dec 2002, Stephen Arthur wrote: > > > I just downloa

[R] read.ssd {foreign} (Reading a permanent SAS dataset into an R data frame)

2002-12-19 Thread Stephen Arthur
I just downloaded and installed R 1.6.1 on my Windows machine where I also run SAS. I want to use the 'read.ssd' function so that I can convert a permanent SAS data set into an R data frame. I downloaded and installed the package 'foreign' on my machine, which includes the 'read.ssd' function. I