Re: [R] I have Problem using the Pipe Command

2024-06-19 Thread Richard O'Keefe
You can get an external 1TB hard drive for NZD 60 if you shop around. That's USD 37 or GBP 29. How much data do you have and how valuable? You don't need a whole 'nother laptop to backup! If you did, you could get a 2nd-hand laptop adequate for the purpose for NZD 150 (USD 92, GBP 72). Again, how m

Re: [R] I have Problem using the Pipe Command

2024-06-19 Thread Ogbos Okike
Dear Martin, I agree with you. I am anxious to upgrade. But I am afraid of losing some data on my only one system. I do not have enough backup. I am planning to buy a backup laptop before venturing to upgrade. But if there is any possibility of upgrading without losing my documents/data, I would

[R] I have Problem using the Pipe Command: PROBLEM SOLVED!

2024-06-19 Thread Ogbos Okike
Dear Eric, This is too great! I quickly changed |> to %>% and it worked like margic. Ben suggested that earlier but I thought I had to open the installed 'magrittr' with gedit in order to edit it. Following your pointers now, I simply changed the |> in my code to %>% to I have great success and pe

Re: [R] I have Problem using the Pipe Command

2024-06-19 Thread Martin Maechler
> Duncan Murdoch > on Tue, 18 Jun 2024 12:25:49 -0400 writes: > On 2024-06-18 12:17 p.m., Ben Bolker wrote: >> You probably have to update your R version. The native pipe |> wasn't >> introduced until R version 4.4. R.version.string (among others) will >> tell you wha

Re: [R] I have Problem using the Pipe Command

2024-06-19 Thread Eric Berger
So all is good. You are successfully using the R pipe %>% (before it became part of R). If you want to use the newer pipe that is part of R, i.e. |> instead of %>% you will have to install a more recent version of R. Your previous email with sessionInfo() showed that you are using R version 3.4.4

Re: [R] I have Problem using the Pipe Command

2024-06-18 Thread Eric Berger
In your R session do library(magrittr) 1:10 %>% sum() This should output 55. If that does not work send the results, include the output of sessionInfo() showing that you have loaded magrittr. On Wed, Jun 19, 2024 at 9:43 AM Ogbos Okike wrote: > Dear Eric, > Good morning from Nigeria. > > Ple

Re: [R] I have Problem using the Pipe Command

2024-06-18 Thread Eric Berger
Please show the output of > sessionInfo() On Tue, Jun 18, 2024 at 7:49 PM Ogbos Okike wrote: > Thanks, Duncan for contributing. I quickly tried entering the command on a > new line. But the error pointed specifically to the point. It didn't run. > Best regards > Ogbos > > On Tue, Jun 18, 2024 a

Re: [R] I have Problem using the Pipe Command

2024-06-18 Thread Ogbos Okike
Thanks, Duncan for contributing. I quickly tried entering the command on a new line. But the error pointed specifically to the point. It didn't run. Best regards Ogbos On Tue, Jun 18, 2024 at 5:38 PM Duncan Murdoch wrote: > On 2024-06-18 12:17 p.m., Ben Bolker wrote: > > You probably have to

Re: [R] I have Problem using the Pipe Command

2024-06-18 Thread Ogbos Okike
Yes, Ben and others. Many thanks for your swift response. I have quickly installed the 'magrittr' package. It was installed successfully. But I tried to edit it using EDIT(magrittr). But it didn't work. Please, guide me further on how to edit it. Thank you very much. Ogbos On Tue, Jun 18, 2024

Re: [R] I have Problem using the Pipe Command

2024-06-18 Thread Duncan Murdoch
On 2024-06-18 12:17 p.m., Ben Bolker wrote: You probably have to update your R version. The native pipe |> wasn't introduced until R version 4.4. R.version.string (among others) will tell you what version you have. Typo: it was introduced in R 4.1.0. Another possible problem is with line

Re: [R] I have Problem using the Pipe Command

2024-06-18 Thread Iris Simmons
My guess would be that you're using an older version of R. The pipe was added in R 4.1. It cannot be used in earlier versions as the syntax is invalid. You could use the dplyr pipe if you want further back compatibility. On Tue, Jun 18, 2024, 12:14 Ogbos Okike wrote: > Greetings to everyone and

Re: [R] I have Problem using the Pipe Command

2024-06-18 Thread Ben Bolker
You probably have to update your R version. The native pipe |> wasn't introduced until R version 4.4. R.version.string (among others) will tell you what version you have. If you don't want to do that, install and load the 'magrittr' package and change |> to %>% everywhere. On 2024-06-18

[R] I have Problem using the Pipe Command

2024-06-18 Thread Ogbos Okike
Greetings to everyone and thank you for your readiness to help. I have problems using the pipe command (|>). Once I have it in any script on my system, it won't. The error message will say: unexpected '>' I loaded the two packages below to see if it would handle it. But the problem remains. lib