how to restrict output from str() command in r

Output from a structure command is as follows

str(out2)

 $ Parameter1: chr  "id" "free.sulfur.dioxide" "color2" "residual.sugar" ...
 $ Parameter2: chr  "color2" "total.sulfur.dioxide" "total.sulfur.dioxide" "density" ...
 $ r         : chr  "0.748240463" "0.721754668" "0.701791136" "0.533054940" ...
 $ CI        : chr  "0.95" "0.95" "0.95" "0.95" ...
 $ CI_low    : chr  "0.734093990" "0.706369909" "0.685504177" "0.510204676" ...
 $ CI_high   : chr  "0.76173774" "0.73645784" "0.71737606" "0.55515319" ...
 $ t         : chr  "70.4155471" "65.1044899" "61.5057038" "39.3351796" ...
 $ df_error  : chr  "3898" "3898" "3898" "3898" ...
 $ p         : chr 

I want to execute

head(out2) 

but exclude $p

Is it possible to restrict output from a str command?
How to do?

How about this?

str(subset(out2, select=-c(p)))

It works! I think this technique will come in handy. Thanks. MM

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.