创建一个.rwl对象 [英] creating a .rwl object

查看:100
本文介绍了创建一个.rwl对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一些要使用dplr包处理的树数据. 我的问题是我只将数据保存为Excel文件,所以我将数据导出为.csv,然后我将其导入到R中,

I have some tree data i want to process with the dplr package. My problem is that I only have the data as a Excel file, so I exported the data as .csv which I then got into R with

a <- read.csv(file = "")

我需要将此数据转换为.rwl才能运行某些dplr函数.

I need to transform this data to .rwl to be able to run some dplr functions.

我的猜测是我需要运行write.rwl()命令-但是我不知道如何正确设置它,尽管我找到了帮助文件

My guess is I need to run the write.rwl() command - but I don't understand how to set it up properly, although I found the help file here

我不明白我该如何处理参数:

I don't get what I should do with the arguments:

  1. rwl.df =>这是我的.csv数据吗?为什么会说:这种类型的data.frame是由read.rwl产生的"?

  1. rwl.df => is this my .csv data? Why does it say: "This type of data.frame is produced by read.rwl"?

fname =>我的.csv的名称或位置,或者我希望输出具有的名称?

fname => the name or location of my .csv or the name I want the output to have?

我需要read.rwl命令吗?

我也无法理解该页面上进一步给出的示例. 有人可以简单地向我解释一下吗?

Also I do not understand the example given on that page further down. Could someone explain it to me a bit more simply?

推荐答案

使用write.tucson()函数,如下所示:

library("dplR") dat <- read.table ("column.txt", header = T, row.names = 1) write.tucson (dat, "tucson.txt", prec = 0.01, long.names = TRUE)

library("dplR") dat <- read.table ("column.txt", header = T, row.names = 1) write.tucson (dat, "tucson.txt", prec = 0.01, long.names = TRUE)

您具有write.tucson?dplR::write.tucson()命令一起工作的方式的所有详细信息;)

you have all details on how write.tucson works with the ?dplR::write.tucson() command ;)

这篇关于创建一个.rwl对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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