Re: [R] R ioanalysis pkg

2020-11-10 Thread Jim Lemon
Hi Gaspar, I can see why you are having trouble with this. The "as.inputoutput" function seems to be the core. While the manual claims you can just input the "Z", "RS_label" and and "X" matrices to "as.inputoutput" and get the "InputOutput" object that you need for all the other functions, it

Re: [R] R ioanalysis pkg

2020-11-10 Thread David Winsemius
On 11/10/20 5:08 PM, Bert Gunter wrote: There are around 20,000 specialized packages for R. This list is set up to help on standard R features and packages, but cannot possibly be expected to support 20,000 packages. As the posting guide says (did you read it??!): "If the question relates to

Re: [R] R ioanalysis pkg

2020-11-10 Thread Bert Gunter
There are around 20,000 specialized packages for R. This list is set up to help on standard R features and packages, but cannot possibly be expected to support 20,000 packages. As the posting guide says (did you read it??!): "If the question relates to a *contributed package* , e.g., one

[R] R ioanalysis pkg

2020-11-10 Thread Gaspar Núñez
Hi, Hope you are doing well, I´m trying to start working with ioanalysis package, however its being difficult for me to prepare data from my own input-output table, import it into R in order to apply the ioanalysis functions Any help on this will be highly appreciated. Please note that I do not

[R-es] Help propensity score

2020-11-10 Thread Cristian Rodelo-Haad
Hola chic@s, alguien con experiencia en propensión score matching? Planteo duda: Clasicamente el PSM se ha utilizado en un intento de homogeneizar cohortes de enfermos quienes han estado “expuestos” a un tratamiento x Vs aquellos que no han estado expuestos (no expuestos). Esto aplica para

Re: [ESS] how to change default emacs behavior, upon running R code, from 2 side-by-by side frames to top-and-bottom frames?

2020-11-10 Thread Marc Schwartz via ESS-help
Hi, FWIW, I had the same issue at some point in the past, and I have the following in my .emacs to change the behavior: (add-to-list 'display-buffer-alist '("*R" (display-buffer-reuse-window display-buffer-at-bottom) (window-width . 0.5) (reusable-frames . nil))) That was provided here on

Re: [ESS] how to change default emacs behavior, upon running R code, from 2 side-by-by side frames to top-and-bottom frames?

2020-11-10 Thread Tyler Smith via ESS-help
Christopher W. Ryan via ESS-help writes: When I execute a line of R code, the R buffer opens up as expected, but it opens in a frame adjacent to the frame containing my source buffer. I would like it to open the R buffer as a frame below my source code, rather than adjacent to it. How can

Re: [R] Remove all factor levels from an R dataframe

2020-11-10 Thread Eric Berger
Hi John, I was thinking that you created df1 in a way that set the 'year' column as a factor when this is not what you wanted to do. The data.frame() function takes an argument stringsAsFactors which controls this behavior. For R versions 3.6.3 or earlier, the default setting is

Re: [R] Remove all factor levels from an R dataframe

2020-11-10 Thread Jim Lemon
Sure John, df1<-df1[order(as.character(df1$year),decreasing=TRUE),] Jim On Tue, Nov 10, 2020 at 8:05 PM John wrote: > Thanks Jim. Can we do descending order? > > Jim Lemon 於 2020年11月10日 週二 下午4:56寫道: > >> Hi John, >> >> df1<-sapply(df1,as.character) >> >> Should do what you ask. The error

Re: [R] Remove all factor levels from an R dataframe

2020-11-10 Thread John
Thanks Jim. Can we do descending order? Jim Lemon 於 2020年11月10日 週二 下午4:56寫道: > Hi John, > > df1<-sapply(df1,as.character) > > Should do what you ask. The error message probably means that you should > do this: > > df1<-df1[order(as.character(df1$year)),] > > as "year" is the name of the first

Re: [R] Remove all factor levels from an R dataframe

2020-11-10 Thread Jim Lemon
Hi John, df1<-sapply(df1,as.character) Should do what you ask. The error message probably means that you should do this: df1<-df1[order(as.character(df1$year)),] as "year" is the name of the first column in df1, not a separate object. Jim On Tue, Nov 10, 2020 at 6:57 PM John wrote: > Hi, >