[英]Is there an R function for duplicating a dataframe
I want to duplicate my data frame and store it for later use.我想复制我的数据框并将其存储以备后用。 Can anyone please help me with the function?
任何人都可以帮我处理 function 吗?
I tried the rm
function and the copy
function but it is not working我尝试了
rm
function 和copy
function 但它不起作用
df1 <- copy(df)
The function copy
is not working. function
copy
不起作用。
Simply make new variable df1
and give it the value of df
:只需创建新变量
df1
并为其赋予df
的值:
df1 <- df
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.