rows to columns

  1. M

    right join with dplyr make rows columns

    I would like to do right join data1 and data2 by ProductCode and I need to get desired output table below data1=data.frame(ProductCode=c(1,1,1,2,2,3),region=c("A","A","A","B","B","C")) data1 ProductCode region 1 A 1 A 1 A 2 B 2 B 3 C...
  2. B

    “CFINDER” output data importation and calculation of mean of pairs

    Hi, I face a problem: I have to import a text file (from_soft.txt, which is output from "CFINDER" software). It looks like this: [...]CFINDER_output/from_soft: # text-text-text-text-text-text-text-text-text-text- # text-text-text-text-text-text-text-text-text-text- #...
  3. A

    How to transpose Please Help.

    Hi I have just started working on SAS and I am a beginner.. Please help me how to transpose a simple data from rows to columns.. for ex: I have PID 1 2 3 4 5 6 7 8 patient a b c d e f g h room 001 002 003 004 005 006 007 008 I want to have it like PID Patient Room 1...