[R] LABOR SUPPLY MODELLING WITH R

2016-12-17 Thread Rodriguetti
Hi, I am new to R migrating from Stata. I am estimating through Simulated Maximum Likelihood Estimation a utility function for hours of work in a discrete choice model. I have my own Stata code but I still can't get into a similar R code. Could anyone just recommend me an applied or reproduc

[R] h5r package: cannot find hdf5

2016-12-17 Thread Pedro Montenegro
I'm new to R and Linux, and I have an issue I didn't see solved on the internet. I'm using Ubuntu Mate and installed R version 2.11 since the current version does not support R-kinetics. What happens is that I have hdf5 headers and libraries installed $ whereis hdf5 hdf5: /usr/include/hdf5 But w

Re: [R] data manipulation

2016-12-17 Thread Duncan Mackay
Hi Coming late to the discussion - I deleted the original message I found that I have a cbe.dat that I downloaded some years ago from cowpertwaite's site . And have attached it If it does not get through will do a dput as the file is only 7K Regards Duncan Duncan Mackay Department of Agronom

Re: [R] Infelicity in print output with matrix indexing of `[.data.frame`

2016-12-17 Thread Jeff Newmiller
No, cannot agree. The result of using an n by 2 matrix to index into a rectangular object is a vector. A vector can only have one storage mode for all elements. Some type coercion is necessary to accommodate this. -- Sent from my phone. Please excuse my brevity. On December 17, 2016 2:58:24 PM

Re: [R] Infelicity in print output with matrix indexing of `[.data.frame`

2016-12-17 Thread David Winsemius
> On Dec 17, 2016, at 11:34 AM, Bert Gunter wrote: > > It's documented, David: > > From ?"[.data.frame" > > "Matrix indexing (x[i] with a logical or a 2-column integer matrix i) > using [ is not recommended. For extraction, x is first coerced to a > matrix..." > > ergo characters for a mixed

Re: [R] Infelicity in print output with matrix indexing of `[.data.frame`

2016-12-17 Thread Bert Gunter
It's documented, David: >From ?"[.data.frame" "Matrix indexing (x[i] with a logical or a 2-column integer matrix i) using [ is not recommended. For extraction, x is first coerced to a matrix..." ergo characters for a mixed mode frame. Cheers, Bert Bert Gunter "The trouble with having an open

[R] Infelicity in print output with matrix indexing of `[.data.frame`

2016-12-17 Thread David Winsemius
This puzzle started with an SO posting where the questioner showed output from a dataframe that had been indexed with a matrix. The output appeared to show that numeric values had been coerced to character. Once I got a reproducible example I discovered that the print output was the problem and