|
From: | Miguel Angel Fernández Martínez |
Subject: | [igraph] Error in igraph trying to plot a co-ocurrence network |
Date: | Fri, 9 Jun 2017 13:29:42 +0200 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1 |
Hi there! I am very very new at igraph package and just a little more than a rookie in R, so maybe my questions are a bit trivial. I apologize for that. I am triying to run a script that combines the package 'Spiec-Easi' with 'igraph' to perform a netwowork analysis and its plot. I have encountered some problems with my data format, but most of them has been overcome. However, I am now facing one that I cannot solve by myself. I copy my whole script and I attach the data in .csv file format just in case you want to have a look at it: library(devtools) Everything seems to work properly until the very last command, when I get the following: Error in `$<-.data.frame`(`*tmp*`, "id", value = c(1L, 0L)) :
replacement has 2 rows, data has 0
Although it seems to be a very common issue, I have not found any viable solution on Internet. Can anyone help with this problem? Thanks a lot! --
Miguel Ángel Fernández Martínez PostDoctoral Researcher Dept. Evolución Molecular, Despacho 10 Tlf.: 91 520 64 33 - Ext. 5415 Centro de Astrobiología (CAB), INTA-CSIC Madrid, Spain |
tabla_prueba.txt
Description: Text document
[Prev in Thread] | Current Thread | [Next in Thread] |