[R] Package Caret

2023-04-13 Thread Gábor Malomsoki
Dear all, When i try to use createDataPartition after calling package 'caret', i get the message: "could not find function createDataPartition" I use: R-4.2.3 for Windows RStudio-2023.03.0-386 Do you have any experience with this failure? Thank you! Best regards Gabor [[alternative

[R] Dowland mistake

2023-04-13 Thread SERKAN DİNGEÇ
I am having difficulty downloading the R software program to my macbook(ventura) personal computer. Looking at the information on your download page, I could not download the xquartz program separately. Additional info=R studio program is now installed on my computer Thank you - thank you.

Re: [R] Split String in regex while Keeping Delimiter

2023-04-13 Thread Leonard Mada via R-help
Dear Emily, I have written a more robust version of the function: extract.nonLetters = function(x, rm.space = TRUE, normalize=TRUE, sort=TRUE) {     if(normalize) str = stringi::stri_trans_nfc(str);     ch = strsplit(str, "", fixed = TRUE);     ch = unique(unlist(ch));     if(sort) ch =

Re: [R] Split String in regex while Keeping Delimiter

2023-04-13 Thread Leonard Mada via R-help
Dear Emily, Using a look-behind solves the split problem in this case. (Note: Using Regex is in most/many cases the simplest solution.) str = c("leucocyten + gramnegatieve staven +++ grampositieve staven ++", "leucocyten – grampositieve coccen +") tokens = strsplit(str, "(?<=[-+])\\s++",

Re: [R] Split String in regex while Keeping Delimiter

2023-04-13 Thread Greg Snow
Since any space that follows 2 or 3 + signs (or - signs) also follows a single + (or -), this can be done with positive look behind, which may be a little simpler: x <- c( 'leucocyten + gramnegatieve staven +++ grampositieve staven ++', 'leucocyten - grampositieve coccen +' ) strsplit(x,

Re: [R] Matrix scalar operation that saves memory?

2023-04-13 Thread Richard O'Keefe
"wear your disc quite badly"? If you can afford a computer with 512 GB of memory, you can afford to pay $100 for a 2 TB external SSD, use it as scratch space, and throw it away after a month of use. A hard drive is expected to last for more than 40,000 hours of constant use. Are you sure that

Re: [R] R-error

2023-04-13 Thread Ivan Krylov
On Thu, 13 Apr 2023 14:53:14 +0800 (GMT+08:00) "Dezhi Wang" wrote: > [New Thread 0x7fffe660a700 (LWP 3791)] > [Thread 0x7fffe660a700 (LWP 3791) exited] > Program received signal SIGSEGV, Segmentation fault. > 0x7fffe50c0fe5 in intel_aes_gcmAAD () from > /lib64/libfreeblpriv3.so You didn't