Re: [R] Multiply

2023-08-04 Thread avi.e.gross
[See the end for an interesting twist on moving a column to row.names.] Yes, many ways to do things exist but it may make sense to ask for what the user/OP really wants. Sometimes the effort to make a brief example obscures things. Was there actually any need to read in a file containing

Re: [R] Technical Help Request for "Version Differences" (i.e., CYTOFKIT package)

2023-08-04 Thread Ivan Krylov
Dear Murat Delman, Both your messages came through, and I'm replying to the one that was the first chronologically. I have taken a look at the cytofkit package. It used to be a Bioconductor package, but was removed, most likely because it failed to build and pass a check:

Re: [R] Multiply

2023-08-04 Thread Rui Barradas
Às 19:03 de 04/08/2023, Val escreveu: Thank you, Avi and Ivan. Worked for this particular Example. Yes, I am looking for something with a more general purpose. I think Ivan's suggestion works for this. multiplication=as.matrix(dat1[,-1]) %*% as.matrix(dat2[match(dat1[,1], dat2[,1]),-1])

Re: [R] Technical Help Request for "Version Differences" (i.e., CYTOFKIT package)

2023-08-04 Thread Eric Berger
Hi Murat, I am not sure why you are using R 3.5. CRAN has R 4.3.1 https://cran.r-project.org/bin/windows/base/ I suggest you start over and install R 4.3.1 and then your cytofkit install might work. Good luck, Eric On Fri, Aug 4, 2023 at 5:47 PM Murat DELMAN wrote: > > Dear Ms./Mr., > > > I

Re: [R] Multiply

2023-08-04 Thread Val
Thank you, Avi and Ivan. Worked for this particular Example. Yes, I am looking for something with a more general purpose. I think Ivan's suggestion works for this. multiplication=as.matrix(dat1[,-1]) %*% as.matrix(dat2[match(dat1[,1], dat2[,1]),-1]) Res=data.frame(ID = dat1[,1], Index =

Re: [R] Technical Help Request for "Version Differences" (i.e., CYTOFKIT package)

2023-08-04 Thread Bert Gunter
Dear Murat: See the "posting guide" (link below) for how and what to post on this list. I believe that in that guide it is recommended that you first update your R version and packages to the latest versions (R 3.5 is rather old now). You should probably reinstall R and all packages from the

Re: [R] Multiply

2023-08-04 Thread avi.e.gross
Val, A data.frame is not quite the same thing as a matrix. But as long as everything is numeric, you can convert both data.frames to matrices, perform the computations needed and, if you want, convert it back into a data.frame. BUT it must be all numeric and you violate that requirement by

[R] Technical Help Request for "Version Differences" (i.e., CYTOFKIT package)

2023-08-04 Thread MURAT DELMAN via R-help
Dear Ms./Mr., If the email text and codes below are not properly displayed, you can download the attached Word file, which has exactly the same content. I am a cytometrist and microscopist at Izmir Institute of Technology, Integrated Research Center. I operate a cytometer and

Re: [R] Multiply

2023-08-04 Thread Ivan Krylov
В Fri, 4 Aug 2023 09:54:07 -0500 Val пишет: > I want to multiply two data frames as shown below, > > dat1 <-read.table(text="ID, x, y, z > A, 10, 34, 12 > B, 25, 42, 18 > C, 14, 20, 8 ",sep=",",header=TRUE,stringsAsFactors=F) > > dat2 <-read.table(text="ID, weight, weiht2 > A, 0.25,

[R] Multiply

2023-08-04 Thread Val
Hi all, I want to multiply two data frames as shown below, dat1 <-read.table(text="ID, x, y, z A, 10, 34, 12 B, 25, 42, 18 C, 14, 20, 8 ",sep=",",header=TRUE,stringsAsFactors=F) dat2 <-read.table(text="ID, weight, weiht2 A, 0.25, 0.35 B, 0.42, 0.52 C, 0.65,

[R] Technical Help Request for "Version Differences" (i.e., CYTOFKIT package)

2023-08-04 Thread Murat DELMAN
Dear Ms./Mr., I sent an email to this email address from my institutional address muratdel...@iyte.edu.tr, but could not make sure if my email reached you because sometimes emails are not delivered to the target due to server issues and country-related limitations. I wanted to send you the same

Re: [R] Problems with facets in ggplot2

2023-08-04 Thread Rui Barradas
Às 11:08 de 04/08/2023, Nick Wray escreveu: Hello I am wrestling with ggplot – I have produced a facetted plot of flows under various metrics but I can’t find info on the net which tells me how to do three things I have created some simplified mock data to illustrate (and using a colour-blind

[R] Problems with facets in ggplot2

2023-08-04 Thread Nick Wray
Hello I am wrestling with ggplot – I have produced a facetted plot of flows under various metrics but I can’t find info on the net which tells me how to do three things I have created some simplified mock data to illustrate (and using a colour-blind palette): library(ggplot2)