Quantcast
Channel: Minitab | Minitab
Viewing all articles
Browse latest Browse all 828

Merge Data as You Open It

$
0
0

Did you know about the Minitab Network group on LinkedIn? It’s the one managed by Eston Martz, of Minitab blog fame. I like to see what the members are talking about, which recently got me into some discussions about Raman spectroscopy data.

An incredibly fine 5-carat emerald crystal, that has it all: bright grass-green color, glassy luster, a fine termination, and most of all, TOP gemminess.Not having much experience with Raman spectroscopy data, I thought I’d learn more about it and found the RRUFFTM Project.

The idea is that if you have a Raman device, you can analyze a mineral sample and compare your results to information in the database so that you can identify your mineral. Not having a Raman device, the site is still exciting to me because all of the RRUFFTM data are available in ZIP files that you can download and use to illustrate some neat things in Minitab.

So let’s say that you download one of the ZIP files from the RRUFFTM Project. The ZIP file contains a few thousand text files with intensity data for different minerals. Some minerals have a small number of files. Some minerals, like beryl, have many files.

Turns out beryl’s pretty cool. In its pure form, it’s colorless, but it comes in a variety of colors. In the presence of different ions, beryl can be aquamarine, maxixe, goshenite, heliodor, and emerald.

I extracted just the beryl files into a folder on my computer. Now, I want to analyze the files in Minitab. If I open the worksheet in Minitab without any adjustments, I get something like this:

This worksheet puts sample identification information with the measurements, so you can't analyze the data.

While I could certainly rearrange this with formulas, I need only a few steps to open the file ready to analyze.

  1. Use the preview to find where the data begin.Choose File > Open Worksheet.
  2. Select the text file.
  3. Click Preview.
  4. Scroll down so that you can see the first row of numbers, in this case, row 13.
  5. Click OK to close the preview.
  6. Click Options.
  7. In First Row of Data, select Use row. Enter the row that had the data in the preview. In this case, 13.

Now you’ve solved the problem of including identifying information about the mineral in the worksheet. The other problem is that Minitab places all of the data in a single column unless you tell it how to divide the data. If you click OK in Options and click Preview again, you can see the problem. Finish the Options with these steps:

  1. In Single character separator, select Comma.
  2. Click OK twice.

Now your data is in a nice, analyzable format. But remember that there are more than 30 files with data on beryl. To analyze them together in Minitab, the data need to be in same worksheet.

Minitab has two nice features that make this easy to do.

  • If the file organization stays the same, then you don’t have to respecify the first row of data or the single character separator. Minitab remembers the settings.
  • Minitab gives you the option to merge the worksheet that you’re opening into the active worksheet.

Try these steps:

  1. Choose File > Open Worksheet. (Minitab even remembers that you want to open a text file.)
  2. Select the next text file.
  3. Select Merge.
  4. Click OK.

    You can choose to merge a worksheet with the active worksheet instead of opening a new worksheet.

The new data appears in the worksheet with the first data. You can finish this with the rest of the files to get all of the data in a single worksheet.

The new worksheet contains the data from both text files.

The options that Minitab provides for opening and merging data sources make it easy to get a wide variety of data ready for analysis. The data features are a good complement to the easy graphs and analyses that you can do in Minitab.

The image of the emerald is by Rob Lavinsky and is licensed under this Creative Commons License.

Viewing all articles
Browse latest Browse all 828

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>