[Rsiena-help] selecting actors - revisited
maarten van zalk
maarten.vanzalk at oru.se
Thu Sep 8 09:28:11 CEST 2011
Dear Ruth,
I ran into some new problems when trying to select actors. I someohow
cannot select the actors in my networks. Below you will find the error
I get:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SupportMom2.dat
Type: application/octet-stream
Size: 15173 bytes
Desc: not available
URL: <http://lists.r-forge.r-project.org/pipermail/rsiena-help/attachments/20110908/4ea15b5b/attachment.obj>
-------------- next part --------------
I've attached the selection in the actor dat-file it concerns.
Hope you can help me with this one, thanks once again!
Last login: Thu Sep 8 09:06:23 on ttys000
PC112-179:~ maartenselfhout$ r
R version 2.13.1 (2011-07-08)
Copyright (C) 2011 The R Foundation for Statistical Computing
ISBN 3-900051-07-0
Platform: i386-apple-darwin9.8.0/i386 (32-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> setwd("/Users/maartenselfhout/Desktop/DAT files")
> library(RSiena)
> library(snow)
> library(rlecuyer)
> library(xtable)
> mum <- as.matrix(read.table("SupportMom.dat"))
> mum <- as.matrix(read.table("SupportMom2.dat"))
> use <- mum %in% 4:5
> net.w1 <- as.matrix(read.table("nw3.dat"))
> net.w2 <- as.matrix(read.table("nw4.dat"))
> net.w3 <- as.matrix(read.table("nw5.dat"))
> net.w1[net.w1 %in% c(6,9)] <- NA
> net.w2[net.w2 %in% c(6,9)] <- NA
> net.w3[net.w3 %in% c(6,9)] <- NA
> friend <- sienaNet(array(c(net.w1[use, use], net.w2[use, use],
net.w3[use, use]), dim=c(2529, 2529, 3)))
Error in as.vector(data) : (subscript) logical subscript too long
More information about the Rsiena-help
mailing list