2935_es-ES
Desvincular tablas en JSLTal vez solo estoy lento hoy, pero no puedo resolver esto. Todo lo que quiero hacer es crear una tabla de resumen (o algún tipo de tabla vinculada) y cerrar la tabla original sin cerrar la tabla vinculada. ¿Algunas ideas?
Ejemplo:
dt = Nueva Tabla ("cerveza",
Añadir Filas( 4 ),
Nueva columna ("Grupo",
Personaje,
Nominal,
Establecer valores ({"cerveza oscura", "cerveza oscura", "basura", "basura"})
),
Nueva columna ("Cerveza",
Personaje,
Nominal,
Establecer valores (
{"schwarzbier", "munich dunkel", "lager americana ligera", "licor de malta"}
)
),
Establecer estados de fila ([0, 0, 1, 0])
);
bob = dt << Resumen( Grupo( :Grupo ) );
cerrar (dt, no guardar);Re: Desvincular tablas en JSL¡Apuesto a que funcionaría! ¡Gracias!Re: Desvincular tablas en JSLAlgo como esto podría hacer:
style="font-size: 10pt; font-family: "Courier New"; color: black;">dt
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Nuevo
Mesa
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"cerveza"
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
Agregar
Filas (
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">4
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Nuevo
Columna
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"Group"
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
Personaje
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
Nominal
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
Colocar
Valores (
{
style="font-size: 10pt; font-family: "Courier New"; color: púrpura;">"oscuro
cerveza dorada"
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: púrpura;">"oscuro
cerveza dorada"
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"basura"
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"basura"
style="font-size: 10pt; font-family: "Courier New"; color: negro;">}
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
style="font-size: 10pt; font-family: "Courier New"; color: rgb(0, 0, 221);">Nuevo
Columna
style="font-size: 10pt; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"Cerveza"
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
Personaje
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
Nominal
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
Colocar
Valores (
{
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"schwarzbier"
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"munich
dunkel"
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"light
lager americana"
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"malt
espíritu"
style="font-size: 10pt; font-family: "Courier New"; color: negro;">}
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
Colocar
Estados de fila (
[
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">0
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">0
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">1
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">0
style="font-size: 10pt; font-family: "Courier New"; color: black;">]
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: black;">)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">bob
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">=
style="font-size: 10pt; font-family: "Courier New"; color: black;">
dt
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
Resumen (
Grupo (
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">:
style="font-size: 10pt; font-family: "Courier New"; color: black;">Grupo
)
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">bob
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;"><<
style="font-size: 10pt; font-family: "Courier New"; color: black;">
Subconjunto (
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
Producción
Mesa (
style="font-size: 10pt; font-family: "Courier New"; color: purple;">"Cerveza
Resumen"
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">,
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
estilo="">
Copiar
fórmula (
style="font-size: 10pt; font-family: "Courier New"; color: verde azulado;">0
style="font-size: 10pt; font-family: "Courier New"; color: black;">
)
style="font-size: 10pt; font-family: "Courier New"; color: black;">)
style="font-size: 10pt; font-family: "Courier New"; color: azul marino;">;
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; font-family: "Courier New"; color: black;">
style="font-size: 10pt; line-height: 115%; font-family: "Courier New"; color: rgb(0, 0, 221);">Cerrar
style="font-size: 10pt; line-height: 115%; font-family: "Courier New"; color: black;">(
style="font-size: 10pt; line-height: 115%; font-family: "Courier New"; color: black;">
dt
style="font-size: 10pt; line-height: 115%; font-family: "Courier New"; color: navy;">,
style="font-size: 10pt; line-height: 115%; font-family: "Courier New"; color: black;">
sin guardar )
style="font-size: 10pt; line-height: 115%; font-family: "Courier New"; color: navy;">;Re: Desvincular tablas en JSLParece que esta es una nueva función para JMP 9, que uso la mayor parte del tiempo. Tengo un par de scripts que comparto con los usuarios de JMP 8. ¿Alguien sabe cómo hacerlo en JMP 8?Re: Desvincular tablas en JSLNo importa. Me lo imaginé. Estaba buscando "desvincular" en la Guía de secuencias de comandos. La búsqueda de "Enlace" me llevó finalmente a él.
De forma predeterminada, una tabla de resumen está vinculada a la tabla de datos original. Si desea producir un resumen que no esté vinculado a la tabla de datos original, agregue esta opción a su mensaje de resumen:
summDt << Resumen( Grupo( col ), Media( :altura ),
Enlace a la tabla de datos original ( 0 )
);