문서
이 페이지의 최신 내용은 아직 번역되지 않았습니다. 최신 내용은 영문으로 볼 수 있습니다.
tall형 배열의 기본 데이터 클래스
C = classUnderlying(X)
예제
C = classUnderlying(X)는 tall형 배열 X 내에 저장된 데이터의 클래스를 반환합니다.
C
X
모두 축소
tall형 테이블과 tall형 배열은 모두 tall 클래스에 속합니다. 그러나 tall형 배열의 기본 데이터형은 다를 수 있습니다.
tall
airlinesmall.csv 데이터 세트에 대한 데이터저장소를 만듭니다. 사용할 변수의 일부를 선택하고 'NA' 값을 누락된 데이터로 처리합니다. 그러면 datastore가 이 값을 NaN 값으로 대체합니다. 이 데이터저장소를 tall형 테이블로 변환합니다.
airlinesmall.csv
'NA'
datastore
NaN
varnames = {'Year', 'UniqueCarrier'}; ds = datastore('airlinesmall.csv','TreatAsMissing','NA',... 'SelectedVariableNames',varnames); tt = tall(ds)
tt = Mx2 tall table Year UniqueCarrier ____ _____________ 1987 'PS' 1987 'PS' 1987 'PS' 1987 'PS' 1987 'PS' 1987 'PS' 1987 'PS' 1987 'PS' : : : :
tall형 테이블 tt의 클래스와 첫 번째 테이블 변수 Year의 클래스를 확인합니다.
tt
Year
class(tt)
ans = 'tall'
class(tt.Year)
tt의 기본 데이터형과 Year 및 UniqueCarrier 테이블 변수의 기본 데이터형을 확인합니다.
UniqueCarrier
classUnderlying(tt)
ans = 1x5 tall char array 'table'
classUnderlying(tt.Year)
ans = 1x6 tall char array 'double'
classUnderlying(tt.UniqueCarrier)
ans = 1x4 tall char array 'cell'
경우에 따라 classUnderlying에서 미평가 tall형 배열이라는 결과가 반환됩니다. gather 함수를 사용하여 미평가 tall형 배열을 평가하고 그 결과를 메모리로 가져올 수 있습니다.
classUnderlying
gather
입력 배열로, tall형 배열로 지정됩니다.
데이터형: single | double | int8 | int16 | int32 | int64 | uint8 | uint16 | uint32 | uint64 | logical | table | cell | categorical | datetime | duration | calendarDuration
single
double
int8
int16
int32
int64
uint8
uint16
uint32
uint64
logical
table
cell
categorical
datetime
duration
calendarDuration
기본 클래스로, tall형 배열로 반환됩니다.
isaUnderlying을 사용하여 tall형 배열에 특정 기본 데이터형이 있는지 여부를 테스트하십시오.
isaUnderlying
isaUnderlying | istall | tall
istall
아래 MATLAB 명령에 해당하는 링크를 클릭하셨습니다.
이 명령을 MATLAB 명령 창에 입력해 실행하십시오. 웹 브라우저에서는 MATLAB 명령을 지원하지 않습니다.
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office