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-45968%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3Ecomment%20utiliser%20JSL%20pour%20supprimer%20les%20donn%C3%A9es%20manquantes%26nbsp%3B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-45968%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3Echers%20tous%3C%2FP%3E%0A%3CP%3Emaintenant%2C%20si%20vous%20souhaitez%20supprimer%20les%20donn%C3%A9es%20manquantes%2C%20vous%20devez%20g%C3%A9n%C3%A9ralement%20s%C3%A9lectionner%20%22mod%C3%A8le%20de%20donn%C3%A9es%20manquantes%22%20pour%20supprimer.%3C%2FP%3E%0A%3CP%3Esi%20je%20veux%20supprimer%20automatiquement%20les%20donn%C3%A9es%20manquantes%3F%20comment%20puis-je%20%C3%A9crire%20JSL%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-45971%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20comment%20utiliser%20JSL%20pour%20supprimer%20les%20donn%C3%A9es%20manquantes%26nbsp%3B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-45971%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EIl%20vous%20suffit%20de%20s%C3%A9lectionner%20les%20lignes%20%C3%A0%20supprimer%2C%20puis%20de%20les%20supprimer...%20voir%20le%20script%20ci-dessous%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3ENames%20Default%20To%20Here(%201%20)%3B%0Adt%20%3D%20New%20Table(%20%22sample%22%2C%0A%20Add%20Rows(%2020%20)%2C%0A%20New%20Column(%20%22Height%22%2C%0A%20%20Numeric%2C%0A%20%20%22Continuous%22%2C%0A%20%20Format(%20%22Fixed%20Dec%22%2C%205%2C%200%20)%2C%0A%20%20Set%20Values(%0A%20%20%20%5B59%2C%2061%2C%20.%2C%2066%2C%2052%2C%2060%2C%2061%2C%20.%2C%2060%2C%2061%2C%2056%2C%2065%2C%20.%2C%2058%2C%2059%2C%2061%2C%20.%2C%2065%2C%2063%2C%2062%5D%0A%20%20)%0A%20)%2C%0A%20New%20Column(%20%22weight%22%2C%0A%20%20Numeric%2C%0A%20%20%22Continuous%22%2C%0A%20%20Format(%20%22Fixed%20Dec%22%2C%205%2C%200%20)%2C%0A%20%20Set%20Values(%0A%20%20%20%5B95%2C%20123%2C%2074%2C%20145%2C%2064%2C%2084%2C%20128%2C%2079%2C%20112%2C%20107%2C%2067%2C%2098%2C%20105%2C%2095%2C%2079%2C%2081%2C%2091%2C%20142%2C%2084%2C%0A%20%20%2085%5D%0A%20%20)%0A%20)%0A)%3B%0A%0Adt%20%26lt%3B%26lt%3B%20select%20where(%20Is%20Missing(%20%3AHeight%20)%20%3D%3D%201%20)%3B%0A%0Adt%20%26lt%3B%26lt%3B%20delete%20rows%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-45970%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%26nbsp%3B%3A%20comment%20utiliser%20JSL%20pour%20supprimer%20les%20donn%C3%A9es%20manquantes%26nbsp%3B%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-45970%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EUtiliser%20est%20manquant()%3C%2FP%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
TONYMA
Level III

how to use JSL to delete missing data?

dear all

now  if  you  want to  detele  missing data , generally  you must select "missing data pattern ' to detele.

if i want to detele  missing data automaticlly?  how i  can  write JSL?

you are your god.
1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: how to use JSL to delete missing data?

You just need to select the rows to be deleted, and then delete them....see script below

Names Default To Here( 1 );
dt = New Table( "sample",
	Add Rows( 20 ),
	New Column( "Height",
		Numeric,
		"Continuous",
		Format( "Fixed Dec", 5, 0 ),
		Set Values(
			[59, 61, ., 66, 52, 60, 61, ., 60, 61, 56, 65, ., 58, 59, 61, ., 65, 63, 62]
		)
	),
	New Column( "weight",
		Numeric,
		"Continuous",
		Format( "Fixed Dec", 5, 0 ),
		Set Values(
			[95, 123, 74, 145, 64, 84, 128, 79, 112, 107, 67, 98, 105, 95, 79, 81, 91, 142, 84,
			85]
		)
	)
);

dt << select where( Is Missing( :Height ) == 1 );

dt << delete rows;
Jim

View solution in original post

2 REPLIES 2
uday_guntupalli
Level VIII

Re: how to use JSL to delete missing data?

Use Is Missing()

Best
Uday
txnelson
Super User

Re: how to use JSL to delete missing data?

You just need to select the rows to be deleted, and then delete them....see script below

Names Default To Here( 1 );
dt = New Table( "sample",
	Add Rows( 20 ),
	New Column( "Height",
		Numeric,
		"Continuous",
		Format( "Fixed Dec", 5, 0 ),
		Set Values(
			[59, 61, ., 66, 52, 60, 61, ., 60, 61, 56, 65, ., 58, 59, 61, ., 65, 63, 62]
		)
	),
	New Column( "weight",
		Numeric,
		"Continuous",
		Format( "Fixed Dec", 5, 0 ),
		Set Values(
			[95, 123, 74, 145, 64, 84, 128, 79, 112, 107, 67, 98, 105, 95, 79, 81, 91, 142, 84,
			85]
		)
	)
);

dt << select where( Is Missing( :Height ) == 1 );

dt << delete rows;
Jim

Recommended Articles