Displaying 20 results from an estimated 3000 matches similar to: "coerce matrix to number"
2005 Aug 11
1
tcltk programming guide
Dear List,
I'm looking for some documentation about the R tcltk package
The one I found in the help doesn't look exaustive, I need
information on the use of the single tk widget, maybe with some examples
thank you,
simone gabbriellini
2008 Nov 30
0
Fwd: simple question with table()
Dear ALL,
thank you for this sunday morning help! It works great!
all the best,
Simone
Il giorno 30/nov/08, alle ore 11:22, Jorge Ivan Velez ha scritto:
>
> Dear Simone,
>
> Try this:
>
> x=c(1,1,2,3,4,3,2,2,2,1,2,3,4,4,3)
> table(factor(x,levels=1:5))
> 1 2 3 4 5
> 3 5 4 3 0
>
> HTH,
>
> Jorge
>
>
>
> On Sun, Nov 30, 2008 at 5:05 AM, Simone
2009 Nov 10
1
phase determination
Hi,
I'm trying to determine the phase of irregularly sampled data. Is there any
particular reason why both spec.pgram and spec.ls return phase<-NULL for
vectors?
Thank you.
Lisandro
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxx
Lisandro Benedetti-Cecchi
Associate Professor in Ecology
Department of Biology - University of Pisa
Via
2008 Nov 07
5
Agent-based social simulation and R
Do anyone know anything about the use of R for agent-based social
simulation? It should be possible, and would be convenient for the
simple reason that there are several nice packages containing useful
stuff for SNA (Social Network Analysis). Information about packages,
web sites, experienced persons in the field, etc. would be very welcome.
Tom
2013 Feb 01
2
how to setdiff on lists of lists
Dear List,
I have a data structure like:
> aa
[[1]]
[1] 1 2 3
[[2]]
[1] 4 5 6
> bb
[[1]]
[1] 3
[[2]]
[1] 5
I would like to set differences between "aa" and "bb" and get as
result another list of lists like:
> res
[[1]]
[1] 1 2
[[2]]
[1] 4 6
I am trying:
lapply(aa, setdiff, bb)
but I simply get "aa" back as result. Could you please point me in the
2012 May 07
1
wireframe and par(mfrow)
Hello List,
I have some plots with the wireframe() function, and I'd like to
display them in a single jpeg file. I know that par(mfrow=c(x,y)) will
divide my display window in x rows and y columns, and although this
works with plot(), it looks like it's not working with wireframe.
here's my code:
library(lattice)
library(Cairo)
CairoJPEG("wiley-rank.jpeg", width=960,
2011 Jan 03
4
how to invert the axes in the wireframe() plot
Dear List,
I am using the wireframe function in the lattice package, and I am wondering if it is possible to invert the default axes orientation for x and y axes... what parameter should I look for?
Best regards,
Simone Gabbriellini
2009 Jul 07
3
troubles with broken clients (iPhone) - again
The PC (Outlook) is accessing the mailbox via POP3, the iPhone is using
IMAP; please consider we are talking about a user's home setup, so it's
pretty difficult to have a more detailed report on his part (Outlook
version, iPhone OS version, xDSL router type and configuration, etc.). The
mail server 'dovecot -n' output is attached.
The symptoms: when the Mail application is
2005 Aug 29
1
Rcmdr extensions
Dear List,
I am trying to extend Rcmdr with some functions usefult to my
study... I have addedd succesfully a menu and some submenu to the
GUI, and I have placed a file .R in the /etc folder... I am able to
call functions on that file, but I cannot see the results: how can I
tell Rcmdr to write the output in the output box?
Second question: how can I refer to the actually selected
2005 Jul 05
0
Code of Hansen's (2000) Econometrica paper on threshold estimation
I am searching for an R version of the code written in GAUSS by Bruce
Hansen for his paper on Econometrica, 2000, "Sample Splitting and
Threshold Estimation".
Someone can help me?
Davide
--
Davide Fiaschi
Dipartimento di Scienze Economiche
University of Pisa
Via Ridolfi 10
56100 Pisa (PI)
Italy
Phone/Fax: ++39.050.2216208/++39.050.598040
E-mail: dfiaschi at ec.unipi.it
Homepage:
2010 Oct 20
1
how to connect to a remote PostgreSQL database from R on mac osx
Hello List,
I would like to connect to a postgreSQL database on a remote server and I am wondering what is the best package to do that. I have just installed RpgSQL, RPostgreSQL, Rdbi and RODBC.
The handiest to me is RPostgreSQL but I don't see how to connect to a remote server with it. For sure I can connect to remote server with RODBC, but since I am on a Mac OSX 10.6, I have quite
2013 Feb 12
2
ix? / Intel(R) PRO/10GbE
I finally got a 10G card that is recognized by FreeBSD (9.1-stable):
...
ix0: <Intel(R) PRO/10GbE PCI-Express Network Driver, Version - 2.4.8> port
0xecc0-0xecdf mem 0xd9e80000-0xd9efffff,0xd9ff8000-0xd9ffbfff irq 40 at device
0.0 on pci4
ix0: Using MSIX interrupts with 9 vectors
ix0: RX Descriptors exceed system mbuf max, using default instead!
ix0: Ethernet address: 90:e2:ba:29:c0:54
2010 Nov 02
1
subset a data.frame
Hello List,
this should be simple, but cannot figure it out. I am trying to subset a data.frame like this:
> data4
users time
1 user5 2009-12-01 14:09:58
2 user1 2009-12-01 14:40:16
3 user8 2009-12-04 08:18:37
4 user6 2009-12-04 08:18:37
5 user83 2009-12-04 08:18:37
6 user82 2009-12-04 08:18:37
7 user31 2009-12-04 08:18:37
8
2008 Nov 30
4
simple question with table()
Dear List,
my problem should be easy to fix, but I couldn't find a solution by
myself...
In my survey, there is a question with 14 possible answers. None of
the respondents choose the 13th answer, so when I table() the results,
R says:
1 2 3 4 5 6 7 8 9 10 11 12 14
31 52 7 21 40 7 8 2 28 2 2 1 17
13 is missing... anyone knows how to tell table() that there are 14
modalities in the
2005 Apr 04
2
mysql retrive question
hello R-Users,
I have this simple but not for me question:
I do:
> res<-dbSendQuery(con, "SELECT * FROM tabellaProva")
> myDataFrame<-fetch(res)
> myDataMatrix<-as.matrix(myDataFrame[,-1])
> namerows(myDataMatrix)<-as.character(myDataFrame[,1])
and I have:
io tu
io "0" "1"
tu "1" "0"
my problem is that the
2005 May 19
2
laten class analysis
Dear List,
just a little question,
I am interested in Latent Class Analysis and
I guess if there is a package for this pourpose
thank for you help,
Simone
2007 Apr 04
3
solaris 10 dovecot-1.0.rc29 - building issue
Hi all,
I'm having terrible time, and a lot of core dumps, building dovecot on
Solaris 10.
My environment:
gcc 3.3.2
LDFLAGS=-L/usr/local/ssl/lib -lssl -lcrypto \
-L/usr/local/BerkeleyDB.4.2/lib -ldb -L/usr/local/lib -lldap
CPPFLAGS=-I/usr/local/BerkeleyDB/include \
-I/usr/local/include -I/usr/local/ssl/include
my configure:
./configure --prefix=/usr/local --with-ldap
...that is:
2005 Aug 03
3
problem with for()
Dear list,
can someone tell me why this two pieces of code give me the same
results?
> for(i in 0:5){ sum[i] = i }
> sum
[1] 1 2 3 4 5
> for(i in 1:5){ sum[i] = i }
> sum
[1] 1 2 3 4 5
shouldn't the first one be
0 1 2 3 4 5
thank you,
simone
2011 Apr 19
3
zero fill empty cell in data.frame
Hello List,
I have a data frame like:
V130 V131 V132 V133 V134 V135 V136
1 0 0 0.9 0 0.9 0 0
2 0 0 0 0 0 0.8
3 0 0 0 0 0.9 0 0
4 0.9 0 0 0 0 0 0.9
5 0 0 0
6 0 0 0 0.9 0 0 0.9
7 0 0 0.8 0 0 0 0
8 0.9 0 0 0.9 0.8 0
9 0 0 0 0.9 0.9 0 0
10 0 0 0 0 0 0 0.9
2011 Mar 02
2
how to simplify a data.frame and add the counts of duplicate rows as a new column
Hello List,
I would like to simplify a data.frame like this
columnA columnB
user10 proj12
user10 proj19
user10 proj12
into something like:
columnA columnB columnC
user10 proj12 2
user10 proj19 1
I know unique() can simplify the data.frame, but how to count and store the duplicates?
thanks in advance for any help.
best regards,
Simone