[Rsiena-help] Error in sienaprint

Tom Snijders Tom.Snijders at nuffield.ox.ac.uk
Mon Mar 24 21:46:10 CET 2014


Dear Mikko,

Thanks a lot, will be repaired in the next release.

Best regards,
Tom

================================================================
Tom A.B. Snijders
Professor of Statistics in the Social Sciences
Department of Politics and Department of Statistics
Nuffield College
University of Oxford
tel. +44-01865-278599


-----Original Message-----
From: rsiena-help-bounces at lists.r-forge.r-project.org [mailto:rsiena-help-bounces at lists.r-forge.r-project.org] On Behalf Of Rönkkö Mikko
Sent: 12 March 2014 11:07
To: rsiena-help at lists.r-forge.r-project.org
Subject: [Rsiena-help] Error in sienaprint

Hi

I have a symmetric one mode network in an object with class siena. When I try to print this object, I get the following error:

Error in mymat[2, 2] <- c(mymat[2, 2], ", symmetric") : 
  number of items to replace is not a multiple of replacement length

Traceback shows that the error happens on line 80 in sienaprint.r. The line contains the following:

			mymat[2,2] <- c(mymat[2,2],", symmetric")

It seems that instead of the generic concatenation operator, the string concatenation operation should be used:

			mymat[2,2] <- paste(mymat[2,2],", symmetric",sep="")

When I change the code this way, it runs correctly and produces a printout that looks ok.

Mikko

_______________________________________________
Rsiena-help mailing list
Rsiena-help at lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rsiena-help


More information about the Rsiena-help mailing list