3229_de-DE
Konvertieren numerischer Daten in ZeichenIch musste mehrere Datentypspalten als numerische Daten in jmp importieren (zum Beispiel codiert 1-4). Ich möchte die Zahlen in sinnvollere Zeichen umwandeln. In einer Spalte mit der Bezeichnung "SITE" möchte ich beispielsweise folgende Änderung vornehmen:
1 == DL
2 == SL
3 == KA
4 == MP
Sollte dies im Formeleditor mit einer Reihe von IF-Anweisungen geschehen, oder gibt es einen saubereren Weg? Wenn ich IF-Anweisungen verwende, wie kann ich dann die ursprünglichen numerisch codierten Spalten löschen? Danke im Voraus.Re: Konvertieren numerischer Daten in ZeichenWie wäre es mit der Spalte recode (die Menüoption, keine Formel)? Dies kann entweder die Werte an Ort und Stelle, in einer anderen Spalte oder in einer Formel austauschen.Re: Konvertieren numerischer Daten in Zeichen
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-family: Arial;"> Ich denke die Funktion "Übereinstimmung"
würde am besten funktionieren. Erstellen Sie einfach eine neue Spalte namens SITE und
Verwenden Sie die folgende Formel (ersetzen: Spalte 1 mit Ihrer Referenz)
Säule).
Übereinstimmung (: Spalte 1,
style = "font-family: Arial;">
1, "DL",
2, "SL",
3 "KA",
4, "MP"
);
style = "font-family: Arial;">
Wenn Sie es zu einem Skript machen möchten, machen Sie folgendes:
dt
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; color: rgb (0, 0, 221);"> aktuell
Datentabelle
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;"> ()
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;"> site_col
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;"> =
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
dt
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;"> <<
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "">
style = "font-size: 10pt; font-family:" Courier New "; color: rgb (0, 0, 221);"> New
Säule
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;"> (
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: lila;"> "SITE"
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "">
Charakter
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "">
Nominal
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "">
Formel (
style = "font-size: 10pt; font-family:" Courier New "; color: rgb (0, 0, 221);"> Übereinstimmung
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;"> (
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;">:
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;"> Spalte
1
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: blaugrün;"> 1
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: lila;"> "DL"
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: blaugrün;"> 2
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: lila;"> "SL"
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: blaugrün;"> 3
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: lila;"> "KA"
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: blaugrün;"> 4
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;">,
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: lila;"> "MP"
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
)
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "">
)
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">)
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;"> site_col
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;"> <<
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
Formel löschen
style = "font-size: 10pt; font-family:" Courier New "; Farbe: navy;">;
style = "font-size: 10pt; font-family:" Courier New "; Farbe: schwarz;">
style = "font-size: 10pt; Zeilenhöhe: 115%; font-family:" Courier New "; Farbe: schwarz;"> dt
style = "font-size: 10pt; Zeilenhöhe: 115%; font-family:" Courier New "; Farbe: navy;"> <<
style = "font-size: 10pt; Zeilenhöhe: 115%; font-family:" Courier New "; Farbe: schwarz;">
Spalten löschen (
style = "font-size: 10pt; Zeilenhöhe: 115%; font-family:" Courier New "; color: navy;">:
style = "font-size: 10pt; Zeilenhöhe: 115%; font-family:" Courier New "; color: black;"> Column
1 )
style = "font-size: 10pt; Zeilenhöhe: 115%; font-family:" Courier New "; color: navy;">;
Comments
There are no comments yet