How to Create a list named my.list2 containing two elements: a data frame df and a character vector chr. df abc 115 TRUE 2 2 2 FALSE 3 3 5 FALSE
时间: 2023-06-04 15:06:09 浏览: 80
VB_package_text_file_containing_sample_class.rar_VB 文本读写_class A
这是一个关于编程的问题,我可以回答。您可以使用以下代码创建名为my.list2的列表,其中包含一个数据框df和一个字符向量chr:
my.list2 <- list(df = data.frame(Name=c("abc","115","TRUE","2","2","2","FALSE","3","3","5","FALSE")),
chr = c("Hello", "World"))
阅读全文