带有dataframes的R列表在整个输出中都有名称,但是没有单独的名称

发布于 2025-02-12 10:29:06 字数 1283 浏览 2 评论 0原文

认为我不必为重现的例子做出示例,因为我认为这只是一种现象..或命名法?算法?我不知道。抱歉,我是R的新手。

我有数据范围的列表。也许是二维? [[67]] [3]。

列表本身在结构上有67行,所以

length(example_DF)

给了我67个。当然。

这67个大房间(?人们总是将[[n]]的概念解释为一个大房间,所以...)

有三个小房间。 1

length(example_DF[[1]])

3。

这三个小房间名称是

names(wholeData_Merged_Splitted[[1]])
'0''1''2'

[[n]] [m])是一个单个dataframe 94 x 11,也是

length(example_DF[[1]][1])

一个小房间( 大房间确实在控制台输出中有名字

example_DF
1.$'0'
(dataframe output which is the same as [[1]][1])
$'1'
(dataframe [[1]][2])
$'2'
(dataframe [[1]][3])
2.$'0'
(dataframe [[2]][1])
$'1'
(dataframe [[2]][2])
$'2'
(dataframe [[2]][3])

... 

67.$'0'
(dataframe [[67]][1])
$'1'
(dataframe [[67]][2])
$'2'
(dataframe [[67]][3])

我认为这是完全正常的。

但是,当我尝试查看整个示例_DF数据框架时,名称值为null。

names(example_DF)
NULL

我期望'1''2''3'...'67'。那个完整的输出说明了这一点。但是为什么..?

我也尝试了Rownames(),但结果是相同的空值。

在文档中,返回函数name()的值是的字符向量,其长度与x或null 相同。然后是[[n]]名称确实是null值,但是输出必须有一些数字,所以我得到了1。 2。... 67。即时?

Think I don't have to make reproducible examples because I think it's just a phenomenon..?or nomenclature? algorithm? that I don't know. sorry i'm new to R.

I have a list of dataframes. maybe 2-dimension? [[67]] [3].

the list itself structually has 67 rows, so

length(example_DF)

gives me 67. of course.

and each of these 67 big rooms(? people always explan the concept of [[n]] as a big room, so...)

have three small rooms. so

length(example_DF[[1]])

is 3.

those three small room names are

names(wholeData_Merged_Splitted[[1]])
'0''1''2'

one small room([[n]][m]) is a single dataframe 94 x 11, so

length(example_DF[[1]][1])

is 1.

I printed the whole example_DF and those 67 big rooms did have names in the console output.

example_DF
1.

This is totally normal I think.

But when I tried to have a look at the whole example_DF dataframe, the name values are NULL.

names(example_DF)
NULL

I expected '1' '2' '3' ... '67'. That full output says that. but why is it..?

I tried rownames() also, but the result is the same NULL value.

In the docs, return value of the function names() is a character vector of up to the same length as x, or NULL. Then is the [[n]] name is really NULL value but the output had to have some numbers so I got 1. 2. ... 67. instantlly?

0' (dataframe output which is the same as [[1]][1])

This is totally normal I think.

But when I tried to have a look at the whole example_DF dataframe, the name values are NULL.



I expected '1' '2' '3' ... '67'. That full output says that. but why is it..?

I tried rownames() also, but the result is the same NULL value.

In the docs, return value of the function names() is a character vector of up to the same length as x, or NULL. Then is the [[n]] name is really NULL value but the output had to have some numbers so I got 1. 2. ... 67. instantlly?

1' (dataframe [[1]][2])

This is totally normal I think.

But when I tried to have a look at the whole example_DF dataframe, the name values are NULL.



I expected '1' '2' '3' ... '67'. That full output says that. but why is it..?

I tried rownames() also, but the result is the same NULL value.

In the docs, return value of the function names() is a character vector of up to the same length as x, or NULL. Then is the [[n]] name is really NULL value but the output had to have some numbers so I got 1. 2. ... 67. instantlly?

2' (dataframe [[1]][3]) 2.

This is totally normal I think.

But when I tried to have a look at the whole example_DF dataframe, the name values are NULL.



I expected '1' '2' '3' ... '67'. That full output says that. but why is it..?

I tried rownames() also, but the result is the same NULL value.

In the docs, return value of the function names() is a character vector of up to the same length as x, or NULL. Then is the [[n]] name is really NULL value but the output had to have some numbers so I got 1. 2. ... 67. instantlly?

0' (dataframe [[2]][1])

This is totally normal I think.

But when I tried to have a look at the whole example_DF dataframe, the name values are NULL.



I expected '1' '2' '3' ... '67'. That full output says that. but why is it..?

I tried rownames() also, but the result is the same NULL value.

In the docs, return value of the function names() is a character vector of up to the same length as x, or NULL. Then is the [[n]] name is really NULL value but the output had to have some numbers so I got 1. 2. ... 67. instantlly?

1' (dataframe [[2]][2])

This is totally normal I think.

But when I tried to have a look at the whole example_DF dataframe, the name values are NULL.



I expected '1' '2' '3' ... '67'. That full output says that. but why is it..?

I tried rownames() also, but the result is the same NULL value.

In the docs, return value of the function names() is a character vector of up to the same length as x, or NULL. Then is the [[n]] name is really NULL value but the output had to have some numbers so I got 1. 2. ... 67. instantlly?

2' (dataframe [[2]][3]) ... 67.

This is totally normal I think.

But when I tried to have a look at the whole example_DF dataframe, the name values are NULL.



I expected '1' '2' '3' ... '67'. That full output says that. but why is it..?

I tried rownames() also, but the result is the same NULL value.

In the docs, return value of the function names() is a character vector of up to the same length as x, or NULL. Then is the [[n]] name is really NULL value but the output had to have some numbers so I got 1. 2. ... 67. instantlly?

0' (dataframe [[67]][1])

This is totally normal I think.

But when I tried to have a look at the whole example_DF dataframe, the name values are NULL.



I expected '1' '2' '3' ... '67'. That full output says that. but why is it..?

I tried rownames() also, but the result is the same NULL value.

In the docs, return value of the function names() is a character vector of up to the same length as x, or NULL. Then is the [[n]] name is really NULL value but the output had to have some numbers so I got 1. 2. ... 67. instantlly?

1' (dataframe [[67]][2])

This is totally normal I think.

But when I tried to have a look at the whole example_DF dataframe, the name values are NULL.



I expected '1' '2' '3' ... '67'. That full output says that. but why is it..?

I tried rownames() also, but the result is the same NULL value.

In the docs, return value of the function names() is a character vector of up to the same length as x, or NULL. Then is the [[n]] name is really NULL value but the output had to have some numbers so I got 1. 2. ... 67. instantlly?

2' (dataframe [[67]][3])

This is totally normal I think.

But when I tried to have a look at the whole example_DF dataframe, the name values are NULL.

I expected '1' '2' '3' ... '67'. That full output says that. but why is it..?

I tried rownames() also, but the result is the same NULL value.

In the docs, return value of the function names() is a character vector of up to the same length as x, or NULL. Then is the [[n]] name is really NULL value but the output had to have some numbers so I got 1. 2. ... 67. instantlly?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文