how do i extract columns with specific row names from .csv file

4 次查看(过去 30 天)
clc
clear all
file = fullfile('C:\Users\barath\Downloads\full_data.csv')
files = readtable(file)
in = files.location('India',:)
%error i get is: Error using tabular/dotParenReference (line 95)Unrecognized row name 'India'.%

采纳的回答

Mehmed Saad
Mehmed Saad 2020-4-9
ind =strcmp(files.location,'India');
files(ind,:)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

产品


版本

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by