gpt4 book ai didi

R read.csv - 带有特定符号的标题(>)

转载 作者:行者123 更新时间:2023-12-04 00:08:11 28 4
gpt4 key购买 nike

当我通过 R 读取 csv 文件时,所有特定符号(>,<)都被点(.)替换。

例如:

.csv 文件:
用户>75

R 显示用户 75

我怎样才能避免这种情况?

最佳答案

您可以使用 check.names=FALSE在您的 read.csv称呼。

来自 ?read.csv :

check.names: logical. If ‘TRUE’ then the names of the variables in the data frame are checked to ensure that they are syntactically valid variable names. If necessary they are adjusted (by ‘make.names’) so that they are, and also to ensure that there are no duplicates.

关于R read.csv - 带有特定符号的标题(>),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26830722/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com