cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-8292%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%C2%BFFiltrar%20una%20cadena%20usando%20%22me%20gusta%22%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-8292%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CP%3EHola%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EUsando%20el%20siguiente%20ejemplo%2C%20%C2%BFc%C3%B3mo%20podr%C3%ADa%20filtrar%20todos%20los%20nombres%20que%20comienzan%20como%20%22M%22%3F%3C%2FP%3E%3CP%3E%C2%BFEs%20posible%20utilizar%20%22me%20gusta%22%20o%20algo%20similar%3F%3C%2FP%3E%3CP%3EFiltro%20de%20datos(%20Agregar%20filtro(%3C%2FP%3E%3CP%3Ecolumnas%20(%3A%20nombre)%2C%3C%2FP%3E%3CP%3EWhere(%20%3Aname%20like%20M*%20)%20%2F%2F%2F%20%C2%A1No%20funciona%2C%20por%20supuesto!%3C%2FP%3E%3CP%3E)%2C%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EGracias%20por%20tu%20ayuda%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3Eopen(%22%24sample_data%5CGran%20clase.jmp%22)%3B%3C%2FP%3E%3CP%3EGenerador%20de%20gr%C3%A1ficos%20(%3C%2FP%3E%3CP%3ETama%C3%B1o%20(454%2C%20472)%2C%3C%2FP%3E%3CP%3EMostrar%20panel%20de%20control%20(0)%2C%3C%2FP%3E%3CP%3EVariables%20(X%20(%3A%20edad)%2C%20Y%20(%3A%20peso)%2C%20Y%20(%3A%20altura)%2C%20Superposici%C3%B3n%20(%3A%20nombre))%2C%3C%2FP%3E%3CP%3EElementos%20(Posici%C3%B3n%20(1%2C%201)%2C%20Puntos%20(X%2C%20Y%2C%20Leyenda%20(3)%2C%20Jitter%20(1)))%2C%3C%2FP%3E%3CP%3EElementos%20(Posici%C3%B3n%20(1%2C%202)%2C%20Puntos%20(X%2C%20Y%2C%20Leyenda%20(4)%2C%20Jitter%20(1)))%3C%2FP%3E%3CP%3E)%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-8296%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20%C2%BFFiltrar%20una%20cadena%20usando%20%22me%20gusta%22%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-8296%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EGracias%20por%20tu%20ayuda%20%3CSPAN%20__jive_emoticon_name%3D%22happy%22%20__jive_macro_name%3D%22emoticon%22%20class%3D%22jive_macro%20jive_macro_emoticon%20jive_emote%22%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2F5.0.2%2Fimages%2Femoticons%2Fhappy.gif%22%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Egeof%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-8295%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20%C2%BFFiltrar%20una%20cadena%20usando%20%22me%20gusta%22%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-8295%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ELamentablemente%2C%20el%20filtro%20de%20datos%20de%20JMP%20no%20admite%20coincidencias%20de%20cadenas%20parciales.%20Debes%20hacer%20coincidir%20valores%20completos.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3ESin%20embargo%2C%20puede%20encontrar%20todos%20los%20valores%20que%20coincidan%20con%20su%20cadena%20parcial%20y%20luego%20usar%20esa%20lista%20en%20su%20llamada%20al%20filtro%20de%20datos.%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%20color%3A%20%23942193%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3Edt%20%3D%20abierto%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3C%2FSPAN%3E%20%22%24sample_data%5CGran%20clase.jmp%22%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3EGenerador%20de%20gr%C3%A1ficos%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3ETama%C3%B1o%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%20454%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%20472%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3EMostrar%20panel%20de%20control%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%200%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3Evariables%3CSTRONG%3E%20(%3C%2FSTRONG%3E%20X%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3A%3C%2FSPAN%3E%20edad%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%20Y%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3A%3C%2FSPAN%3E%20peso%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%20Y%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3A%3C%2FSPAN%3E%20altura%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%20Cubrir%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3A%3C%2FSPAN%3E%20nombre%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3EElementos%3CSTRONG%3E%20(%3C%2FSTRONG%3E%20Posici%C3%B3n%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%201%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%201%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%20Puntos%3CSTRONG%3E%20(%3C%2FSTRONG%3E%20X%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%20Y%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%20Leyenda%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%203%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%20Estar%20nervioso%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%201%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3EElementos%3CSTRONG%3E%20(%3C%2FSTRONG%3E%20Posici%C3%B3n%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%201%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%202%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%20Puntos%3CSTRONG%3E%20(%3C%2FSTRONG%3E%20X%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%20Y%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%20Leyenda%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%204%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%20Estar%20nervioso%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%201%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3E%2F%2Fcrea%20una%20lista%20de%20nombres%20%C3%BAnicos%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3Eresumir%3C%2FSPAN%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%20lista%20de%20nombres%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3D%3C%2FSPAN%3E%20por%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3A%3C%2FSPAN%3E%20nombre%3CSTRONG%3E%20))%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%2F%2Fcrea%20una%20matriz%20para%20contener%20las%20ubicaciones%20de%20las%20cadenas%20que%20coinciden%20con%20tu%20patr%C3%B3n%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3EX%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3D%3C%2FSPAN%3E%3CSTRONG%3E%20%5B%5D%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%2F%2Frecorre%20la%20lista%20de%20nombres%20que%20almacenan%20las%20coincidencias%20en%20x%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3EPara%3C%2FSPAN%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%20i%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3D%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%201%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%20i%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%26lt%3B%3D%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3E%20N%20art%C3%ADculos%3C%2FSPAN%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%20lista%20de%20nombres%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%20i%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2B%2B%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3ESi%3C%2FSPAN%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3E%20Comienza%20con%3C%2FSPAN%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%20lista%20de%20nombres%3CSTRONG%3E%20%5B%3C%2FSTRONG%3E%20i%3CSTRONG%3E%20%5D%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23942193%3B%22%3E%20%22METRO%22%3C%2FSPAN%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%2F%2F%20%22%7C%2F%22%20es%20el%20operador%20concat%20vertical%20de%20matriz%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3EX%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3D%3C%2FSPAN%3E%20X%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%7C%2F%3C%2FSPAN%3E%20i%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3CSTRONG%3E)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23032ce4%3B%22%3Edt%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%26lt%3B%26lt%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%3CSTRONG%3E%20Filtro%20de%20datos%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23000000%3B%22%3E%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3EUbicaci%C3%B3n%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSTRONG%3E%20%7B%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%20848%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22color%3A%20%23009193%3B%22%3E%3CSTRONG%3E%2024%3C%2FSTRONG%3E%3C%2FSPAN%3E%3CSTRONG%3E%20%7D%3C%2FSTRONG%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3EA%C3%B1adir%20filtro%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3Ecolumnas%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3A%3C%2FSPAN%3E%20nombre%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3ED%C3%B3nde%3CSTRONG%3E%20(%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3A%3C%2FSPAN%3E%20nombre%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3D%3D%3C%2FSPAN%3E%20lista%20de%20nombres%3CSTRONG%3E%20%5B%3C%2FSTRONG%3E%20X%3CSTRONG%3E%20%5D%3C%2FSTRONG%3E%3CSTRONG%3E%20)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%2C%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3CSTRONG%3E)%3C%2FSTRONG%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3CSTRONG%3E)%3C%2FSTRONG%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%20%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%20style%3D%22font-size%3A%2012px%3B%20font-family%3A%20Courier%3B%22%3E%3CSPAN%20style%3D%22color%3A%20%23011993%3B%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-8294%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20%C2%BFFiltrar%20una%20cadena%20usando%20%22me%20gusta%22%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-8294%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ESus%20opciones%20para%20imitar%20una%20declaraci%C3%B3n%20similar%20son%20las%20siguientes%3A%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3EDonde(%20comienza%20con%20(%3Anombre%2C%20%22M%22))%20%2F*%20Nombre%20que%20comienza%20con%20M%20*%2F%3C%2FP%3E%3CP%3EDonde(%20termina%20con%20(%3Anombre%2C%20%22M%22))%20%2F*%20Nombre%20que%20termina%20con%20M%20*%2F%3C%2FP%3E%3CP%3EDonde(%20contiene%20(%3Anombre%2C%20%22M%22))%20%2F*%20El%20nombre%20contiene%20M%20*%2F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-8293%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20%C2%BFFiltrar%20una%20cadena%20usando%20%22me%20gusta%22%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-8293%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ECreo%20que%20la%20funci%C3%B3n%20de%20filtro%20que%20est%C3%A1s%20buscando%20es%3A%3C%2FP%3E%3CP%3Ecomienza%20con%20(nombre%2C%20%22M%22)%3C%2FP%3E%3CP%3E%3C%2FP%3E%3CP%3Emk%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
geof
Level III

Filter a string using "like" ?

Hello,

Using the example below, how could I filter all the names starting like "M"

Is it possible to use "like" or something similar ?

Data Filter( Add Filter(

        columns( :name ),

        Where( :name like M* )       /// Not working of course !

       ),

Thanks for you help

open("$sample_data\Big class.jmp");

Graph Builder(

Size( 454, 472 ),

Show Control Panel( 0 ),

Variables( X( :age ), Y( :weight ), Y( :height ), Overlay( :name ) ),

Elements( Position( 1, 1 ), Points( X, Y, Legend( 3 ), Jitter( 1 ) ) ),

Elements( Position( 1, 2 ), Points( X, Y, Legend( 4 ), Jitter( 1 ) ) )

);

1 ACCEPTED SOLUTION

Accepted Solutions
Jeff_Perkinson
Community Manager Community Manager

Re: Filter a string using "like" ?

Unfortunately, the Data Filter in JMP doesn't support partial string matches. You must match whole values.

However, you can find all the values that match your partial string and then use that list in your call to the data filter.

dt = open("$sample_data\Big class.jmp");

Graph Builder(

Size( 454, 472 ),

Show Control Panel( 0 ),

Variables( X( :age ), Y( :weight ), Y( :height ), Overlay( :name ) ),

Elements( Position( 1, 1 ), Points( X, Y, Legend( 3 ), Jitter( 1 ) ) ),

Elements( Position( 1, 2 ), Points( X, Y, Legend( 4 ), Jitter( 1 ) ) )

);


//create a list of the unique names

summarize(nameslist=by(:name));


//create a matrix to hold the locations of the strings that match your pattern

x=[];

//loop over list of names storing the matches in x

For( i = 1, i <= N Items( nameslist ), i++,

  If( Starts With( nameslist[i], "M" ),

// "|/" is the matrix vertical concat operator

  x = x |/ i;

  )

);

dt << Data Filter(

  Location( {848, 24} ),

  Add Filter(

  columns( :name ),

  Where( :name == nameslist[x] ),

  )

);



-Jeff

View solution in original post

4 REPLIES 4
mikekutz
Level I

Re: Filter a string using "like" ?

I think the filter function you are looking for is:

starts with( name, "M" )

MK

sasguy
Level I

Re: Filter a string using "like" ?

Your options to mimic a like statement are as follows:

Where( starts with (:name, "M" )) /* Name starting with M */

Where( ends with (:name, "M" ))  /* Name ending with M */

Where( contains (:name, "M" ))    /* Name contains M */

Jeff_Perkinson
Community Manager Community Manager

Re: Filter a string using "like" ?

Unfortunately, the Data Filter in JMP doesn't support partial string matches. You must match whole values.

However, you can find all the values that match your partial string and then use that list in your call to the data filter.

dt = open("$sample_data\Big class.jmp");

Graph Builder(

Size( 454, 472 ),

Show Control Panel( 0 ),

Variables( X( :age ), Y( :weight ), Y( :height ), Overlay( :name ) ),

Elements( Position( 1, 1 ), Points( X, Y, Legend( 3 ), Jitter( 1 ) ) ),

Elements( Position( 1, 2 ), Points( X, Y, Legend( 4 ), Jitter( 1 ) ) )

);


//create a list of the unique names

summarize(nameslist=by(:name));


//create a matrix to hold the locations of the strings that match your pattern

x=[];

//loop over list of names storing the matches in x

For( i = 1, i <= N Items( nameslist ), i++,

  If( Starts With( nameslist[i], "M" ),

// "|/" is the matrix vertical concat operator

  x = x |/ i;

  )

);

dt << Data Filter(

  Location( {848, 24} ),

  Add Filter(

  columns( :name ),

  Where( :name == nameslist[x] ),

  )

);



-Jeff
geof
Level III

Re: Filter a string using "like" ?

Thanks for your help

Geof

Recommended Articles