简体   繁体   中英

Getting list of column classes for all ffdf columns

I have a ffdf with several columns. I would like to find the column classes that read.table.ffdf automatically determined from the data as a vector of strings.

A crude way of doing this seems to be looping over the columns and using class(Data[1,index]). Is there a more elegant way of accomplishing this all at once?

I tried looking at the methods of the ffdf object, but none seem appropriate.

Thanks!

This is actually quite simple to do. You are looking for the virtual storage mode of the ffdf.

Try the following:

vmode.ffdf(Data)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM