DataFrame or DFrame
1
0
Entering edit mode
Dario Strbenac ★ 1.5k
@dario-strbenac-5916
Last seen 2 hours ago
Australia

?DFrame leads to documentation for DataFrame and the only mention of DFrame is related to make_zero_col_DFrame. So, what is DFrame exactly?

S4Vectors • 1.2k views
ADD COMMENT
2
Entering edit mode
@marcel-ramos-7325
Last seen 1 day ago
United States

Hi Dario,

Have a look at the showClass("DFrame") call. DFrame extends DataFrame directly. You don't have to worry about the specifics here. Just know that you should be using the DataFrame constructor. It is related to changes to eventually make the DataFrame class virtual.

> showClass("DFrame")
Class "DFrame" [package "S4Vectors"]

Slots:

Name:           rownames             nrows          listData       elementType
Class: character_OR_NULL           integer              list         character

Name:    elementMetadata          metadata
Class: DataFrame_OR_NULL              list

Extends: 
Class "DataFrame", directly
Class "RectangularData", by class "DataFrame", distance 2
Class "SimpleList", by class "DataFrame", distance 2
Class "DataFrame_OR_NULL", by class "DataFrame", distance 2, with explicit coerce
Class "List", by class "DataFrame", distance 3
Class "Vector", by class "DataFrame", distance 4
Class "list_OR_List", by class "DataFrame", distance 4, with explicit coerce
Class "Annotated", by class "DataFrame", distance 5
Class "vector_OR_Vector", by class "DataFrame", distance 5, with explicit coerce

Best regards,

Marcel

ADD COMMENT

Login before adding your answer.

Traffic: 482 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6