官术网_书友最值得收藏!

Transposing the columns of a worksheet

Data is often structured with categories denoted in a row and multiple observations of these dimensions in subsequent columns. This can be a popular format used in Excel worksheets. Here, we will transpose this into the column format that is preferred by Minitab in the following manner:

Transposing the columns of a worksheet

In the preceding screenshot, we can see that different individuals are listed starting from the second column. Their resting pulse is in first row, and after activity in second row, it is preferable for this data to be transposed.

Getting ready

The data used in this example is in the Pulse workbook.xlx file. To get this data into Minitab, follow the Opening an Excel file in Minitab recipe.

How to do it…

The following instructions will transpose the numeric columns of the Pulse workbook file:

  1. Click on the Data menu and then click on Transpose Columns.
  2. Select the subject columns in the left-hand column panel by selecting C2 and dragging down through the columns till the end of the column list. Then click on Select.

    Tip

    The left-hand pane in the following screenshot will show the available columns that can be selected. We could double-click on each column across, but here it is faster by dragging and selecting to highlight the columns we want. We could also use Shift or Ctrl to allow multiple column selection.

  3. In the Create variable names using column section, enter C1 and click on OK.
    How to do it…

How it works…

Columns of different data types cannot be transposed with this command. We cannot transpose column 1 from the original data into the numeric data held by the subject columns. Row one of the original worksheet becomes column one of the transposed worksheet. Mixing data types will generate an error. Instead, variable names should be optionally identified by the row categories if they are given in a column of the original worksheet. Here, we use column one to identify the column names of the transposed data.

See also

  • The Opening an Excel file in Minitab recipe
  • The Stacking several columns together recipe
  • The Stacking blocks of columns at the same time recipes
主站蜘蛛池模板: 建平县| 色达县| 高唐县| 万盛区| 鹤庆县| 忻州市| 马鞍山市| 康保县| 滦南县| 农安县| 图木舒克市| 菏泽市| 南靖县| 历史| 射洪县| 永川市| 琼中| 永登县| 新干县| 云龙县| 六安市| 丰台区| 瓮安县| 长宁区| 云南省| 平陆县| 扶风县| 吉首市| 治多县| 兴和县| 余江县| 汤原县| 江北区| 崇仁县| 咸阳市| 蒲城县| 临夏市| 嵩明县| 万源市| 昂仁县| 南溪县|