R中的列表出现问题 [英] Trouble with list in R

查看:82
本文介绍了R中的列表出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hy,

我不知道我是否在正确的部分询问,但这是一个问题:

我正在读一个* .txt文件带有read.table(fileName)的 R 并且变量的类型隐含了一个列表,据我所知,列表中的每个元素都是一个表示文件列的向量。

我不知道如何利用矩阵形式的元素来获取列表[i,j]以及如何将这个列向量列表转换为数据帧?

Tnks!

Hy ,
I don't know if I am in the correct section to ask but this is the question:
I am reading a *.txt file in R with read.table("fileName") and the typeof the variable is implicit a list , as far as I see each element of the list is a vector representing a column from the file.
I don't know how to make use of the elements like in a matrix form to get list[i,j] and how can I convert this list of column vectors to a dataframe ?
Tnks!

推荐答案

这篇关于R中的列表出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆