powered by
Check if a list or dataframe has an element with a specific name.
isfield(obj, sub.obj.str)
A list or dataframe
A string giving the name of the sub-object you want to check for.
Logical. True if the element exists.
Other MATLAB: cell, diag_matlab, feval, fileparts, isempty, ones, randn, randperm, rand, size, tic, toc, zeros
cell
diag_matlab
feval
fileparts
isempty
ones
randn
randperm
rand
size
tic
toc
zeros
# NOT RUN { foo <- list("fff"=8,"ggg"=9) isfield(foo,"fff") isfield(foo,"lll") # }
Run the code above in your browser using DataLab