Displaying 20 results from an estimated 300 matches similar to: "matrix to list - problem solved"
2008 Sep 18
2
matrix to list
Hi, can someone please tell me how to convert a square matrix to a list in R?
i.e. I want to convert from:
a b c
a 1 1 1
b 2 2 2
c 3 3 3
to:
a a 1
a b 1
a c 1
b a 2
b b 2
b c 2
c a 3
c b 3
c c 3
Thanks,
Adrian.
2003 Apr 11
2
Samba / Windows workgroup master browser problem
I admit theres a LOT about the windows networking I dont understand -
and even though this may NOT be a SAMBA issue per se, I thought I'd post
it here.
Have a 400gb samba server thats been working well (am upgrading to
current patches today, btw).
I've got 3 Win2k workstations, on two subnets, that have drives mapped,
and connect every morning on startup just fine. All the machines
2009 Feb 11
2
problem with 'which' and strings
I have written a function that goes through a database and calculates various
metric scores and allocates them to a data set. For 400 of the 500 sites
that I calculate these metrics for works fine and allocates the scores into
the appropriate column. For some reason, some sites I run into the below
problem:
Here is what I am doing:
> names(orig.metric)
[1] "BenInsect"
2009 Jul 15
1
Error in simulation R-code
Dear List,
I have got error message when I run the R-code. Can anyone has a suggestion?
v.code <- df.bm7[,c(10:31)]; v.code[1:3,]
names(v.code)
CM = v.code # variable binomial code
sim.sp <- function(data,CM,n,N)
{
C <- matrix(rep(NA,N),ncol=1)
for(i in 1:N)
{
j <- n
xx <- which(colSums(CM[j,])==1)
V <- names(xx)
V <- paste(V,
2003 Jul 22
1
Making a group membership matrix
Hi Helpers:
I have a factor object that has 314k entries of 39 land cover types.
(This object can be coerced to characters neatly should that be easier
to work with.)
> length(foo)
[1] 314482
> foo[1:10]
[1] Montane Chaparral Barren Red Fir Red Fir
[5] Red Fir Red Fir Red Fir Red Fir
[9] Red Fir Red Fir
39 Levels:
2012 Feb 07
1
Problem with plotting a square 1 x 3 plot and placement of outer margin text
Dear R-helpers,
Please see the attached plot.
The problem is that I have too much space between the x-axis label
(which is mtext in an outer margin) and the plots.
My par settings for this plot are:
>par(mfrow=c(1,3),oma=c(2,2,2,2),mar=c(5.1,4.1,4.1,2.1),pty="s")
>#here is the code that produces the three plots, which I have deleted for simplicity
>mtext("Log Wetland
2009 Jun 30
1
How to wrap my (working) code in a loop or function? (loop/function newbie alert)
Dear R-helpers,
I have split a dataframe into a list with five elements, with the following
code:
> datalist<-split(data,data$UNIT)
I would now like to run some code (below) on each element of the list to
extract rows from the list elements; then I would like to rbind the
extracted rows into a new dataframe containing all of the extracted rows
from all of the list elements.
I don't
2012 Aug 17
1
RGDAL OGRwrite question
I have a quick question: It appears that in rgdal v0.7-12 (R version
2.15.1, OSX 10.6.8) writeOGR will not write a shapefile the the
current directory. Is this correct? An earlier version of rgdal must
have allowed this because I have a older script that used to work, but
doesn't now.
So, as an example, here is what I get today:
> shape = readOGR('.',
2007 Nov 16
1
graphics - line resolution/pixelation going from R to windows metafile
I have a recurring graphics issue that I've not been able to resolve with
R. If I make a series of regression estimates and then plot the estimated
function for the regression lines over a scatter plot of the data, e.g.,
using a sequence of plot( ) and lines ( ) similar to those below
2011 Feb 03
2
tapply output as a dataframe
On Mon, Apr 13, 2009 at 12:41 PM, Dan Dube <ddube-at-advisen.com> wrote:
> i use tapply and by often, but i always end up banging my head against
> the wall with the output.
The proposed solution of Dan's problem posted on R-help was:
> do.call(rbind,a)
When I use this 'solution' I get 'ERROR: second argument must be a list'. So head on wall continues.
My
2010 Nov 15
0
Problem with lm4 and lapack library
I have R under Linux Kubuntu Hardy Heron 8.04 LTS.
I am trying to install package 'lme4' and get the following error:
----
* installing *source* package ?lme4? ...
** libs
gcc -std=gnu99 -I/usr/share/R/include -I/usr/share/R/include -I"/usr/lib/R/library/Matrix/include" -I"/usr/lib/R/library/stats/include" -fpic -g -O2 -c
init.c -o init.o
gcc -std=gnu99
2002 Mar 12
1
RArcInfo Package, get.bnddata()
I am having trouble using get.bnddata() in the RArcInfo package. I
installed the version 0.2 binary of the package for Windows and am using R
1.4.1 on Windows NT 4.0. I have had no problems importing and plotting arc
data with get.arcdata() and plotarc(). plotpal() also works fine. I've
been able to use get.arcdata(), get.labdata(), get.paldata(),
get.tablenames(), get.tablefields(),
2008 Mar 14
3
Anyone know of a pass through ATA
Anyone know of a company that makes a pass through ATA?
By pass through I mean have an Ethernet switch built into the ATA, like most
desktop phones have.
All of the dual ethernet ATA's I have seen have WAN/LAN ports, not two LAN
ports.
I fooled around with DMZ etc...but it just doesn't work as well.
Thermal
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2008 Jan 18
2
winetricks and gecko
*When I run sh winetricks gecko, the following happens:*
superman at travis-lin:~$ sh winetricks gecko
--13:43:26-- http://source.winehq.org/winegecko.php?v=0.1.0
=> `winegecko.php?v=0.1.0'
Resolving source.winehq.org... 209.46.25.134
Connecting to source.winehq.org|209.46.25.134|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location:
2006 Oct 11
4
Multiple TE110P cards in one chassis
Does anyone know if you can have multiple TE110P cards in one chassis?
-Thermal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20061011/adbceeb5/attachment.htm
2009 Dec 01
1
DO NOT REPLY [Bug 6946] New: Enable timestamp comparison with multiple file owners
https://bugzilla.samba.org/show_bug.cgi?id=6946
Summary: Enable timestamp comparison with multiple file owners
Product: rsync
Version: 3.1.0
Platform: Other
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P3
Component: core
AssignedTo: wayned at samba.org
ReportedBy: james at
2008 May 08
3
Looking for a Snom expert
I would like to hire someone to help us tweak our asterisk system for Snom
phones.
We would like to enable things like:
One touch recording
One touch park orbits
Presence
Please contact off-list if you will be able to help.
Thermal
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2009 May 12
2
Is anyone keeping up with the versions?
We are still using 1.4 and were going to start testing with 1.6.0, but then
1.6.1 was released and now 1.6.2 is already in beta 2.
That seems like a lot of independent releases to maintain. I read about all
the regressions ans hurried dot releases, makes us nervous.
How is everyone doing their testing?
-Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 May 02
3
Queue reporting seems broken.
I am trying to figure out which one of our agents is answering the calls.
According to http://www.voip-info.org/wiki/view/Asterisk+log+queue_log the
only time the queue_log puts the channel (agent) is during logoff & logon.
There is the connect & completeagent message, but it doesn't show which
channel (agent) answered the phone.
I can't even figure it our cross referencing the
2008 Jan 11
3
Is R on Windows multi-threaded
Hi,
A previous thread suggests that R on Windows is multi-threaded
http://tolstoy.newcastle.edu.au/R/help/03b/6946.html
When I'm running R 2.5.1 on a dual core pc I get Rgui.exe uses up to 50%
of the available cpu and the rest is not used. i.e. it only uses one
cpu. I'm soon going to get a nice shiny new 8 cpu machine which it would
be very nice to fully utilize.
Is there any way to