Re: [R] Jim Lemon RIP

2023-10-05 Thread Edjabou Vincent
Sorry to hear that! He has been very active answering questions on R. May his soul rest in peace. Best regards Vincent tor. 5. okt. 2023 06.03 skrev roslinazairimah zakaria : > Hi, > Jim is always very helpful. So sorry to hear that. > > On Thu, Oct 5, 2023, 13:45 Ogbos Okike wrote: > > > I'm y

Re: [R] Help with function and survey data

2022-10-31 Thread Edjabou Vincent
0,2)) %>% pivot_wider(names_from = (as.name(x)), values_from = Procent) ) return(my_re) } my_funca(mk =names(dat)[1:9], y = dat$seg_2) Regards, Vincent Edjabou Mobile: +45 31 95 99 33 linkedin.com/vincent Orcid: -0003-2849-6151 Regards, Vincent Edjabou M

[R] Help with function and survey data

2022-10-31 Thread Edjabou Vincent
Dear R-Help I am working with complex survey data using the survey package. I would like to create a function for the generate multi crosstable. The problem is that I am getting error with the following message: "Error in eval(predvars, data, env) : object 'y' not found" Here is the example: libra

Re: [R] Plots not showing up in the RStudio plot pane

2022-02-27 Thread Edjabou Vincent
Hej Try maybe: dev.off() before plotting. Regards, Vincent Edjabou Mobile: +45 31 95 99 33 linkedin.com/vincent Orcid: -0003-2849-6151 On Sat, Feb 26, 2022 at 11:04 PM Md. Moyazzem Hossain wrote: > Dear R-experts, > > I hope that

Re: [R] string concatenation

2020-11-05 Thread Edjabou Vincent
Following John request, I am wondering if it is possible to get this result: Alice, Bob, Charles (without bracket ) Thank you for your help Med venlig hilsen/ Best regards Vincent Edjabou Mobile: +45 31 95 99 33 linkedin.com/vincent O

Re: [R] Avoid duplication in dplyr::summarise

2017-09-09 Thread Edjabou Vincent
Hi Lars I am not very sure what you really want. However, I am suggesting the following code that enables (1) to obtain the full summary of your data and (2) retrieve only mean of X values as function of factors f1 and f2. library(tidyverse) library(psych) df <- data.frame(matrix(rnorm(40), 10, 4