楼主: woodpecker2013
887 0

[经济] R中如何将样带两个时期的物种名录整理成包含两时期所有物种名称0-1格式的矩阵? [推广有奖]

  • 0关注
  • 0粉丝

小学生

57%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
52 点
帖子
6
精华
0
在线时间
6 小时
注册时间
2013-5-10
最后登录
2013-10-17

楼主
woodpecker2013 发表于 2013-5-10 14:41:13 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
例如

一个样带包含四个样地

2010年样带物种组成信息为

plotname speciesname
plot1 sp1
plot1 sp2
plot1 sp3
plot1 sp4
plot2 sp2
plot2 sp4
plot2 sp5
plot2 sp6
plot2 sp7
plot3 sp3
plot3 sp5
plot3 sp7
plot3 sp8
plot3 sp9
plot3 sp10
plot3 sp11

2012年物种组成信息为
plotname speciesname
plot1 sp1
plot1 sp3
plot1 sp4
plot1 sp5
plot1 sp6
plot1 sp7
plot2 sp3
plot2 sp4
plot2 sp6
plot2 sp8
plot2 sp11
plot2 sp12
plot2 sp13
plot3 sp4
plot3 sp6
plot3 sp10
plot3 sp14
plot3 sp15
plot3 sp16

如何将2010年物种组成信息转化为

plotname sp1 sp2 sp3 sp4 sp5 sp6 sp7 sp8 sp9 sp10 sp11 sp12 sp13 sp14 sp15 sp16
plot1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0
plot2 0 1 0 1 1 1 1 0 0 0 0 0 0 0 0 0
plot3 0 0 0 0 0 0 1 1 1 1 1 0 0 0 0 0
将2012年物种组成信息转化为
plotname sp1 sp2 sp3 sp4 sp5 sp6 sp7 sp8 sp9 sp10 sp11 sp12 sp13 sp14 sp15 sp16
plot1 1 0 1 1 1 1 1 0 0 0 0 0 0 0 0 0
plot2 0 0 1 1 0 1 0 1 0 0 1 1 1 0 0
plot3 0 0 0 1 0 1 0 0 0 1 0 0 1 1 1
即两个时期的物种组成矩阵维度相同,包含两时期出现所有物种名称及各物种在各样地的0-1信息?
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:所有物 Species plot name TNA 信息 sp1 如何

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
扫码
拉您进交流群
GMT+8, 2026-1-13 11:48