Displaying 20 results from an estimated 500 matches similar to: "How to pass selection criteria in a function"
2006 Apr 15
1
Removing Rows/Records from a Table
I would like to selectively remove rows from a table.
I had hoped that I could create a table and
selectively add rows with something like
> NewTable<-table(nrow=100, ncol=4)
> NewTable[1,]<-OldTable[10,]
but that doesn't work. The former call gives
> NewTable
ncol
nrow 4
100 1
while the latter call gives a table the length of
OldTable. Making a matrix, m, with the
2009 Jan 27
2
working with tables -- was Re: Mode (statistics) in R?
Ok, so I'm slowly figuring out what a factor is, and was able to follow
the related thread about finding a mode by using constructs like
my_mode = as.numeric(names(table(x))[which.max(table(x))])
Now, suppose I want to keep looking for other modes? For example,
Rgames> sample(seq(1,10),50,replace=TRUE)->bag
Rgames> bag
[1] 2 8 8 10 7 3 2 9 8 3 8 9 6 6 10 10 7 1
2009 Jan 15
3
incorrect dovecot-uidlist?
Hi,
I have some problems with my own mail-client. To fix the problem I want to
know if my dovecot-uidlist is correct.
Here it is:
cat dovecot-uidlist
3 V1207893082 N522
519 :1231251810.M890065P5870.SERVER,W=2188,S=2124:2,DS
520 :1231750443.M221593P17335.SERVER,W=2260,S=2211:2,S
522 :1231773105.M510336P24592.SERVER,W=2278,S=2229:2,S
523 :1231773105.M510337P24592.SERVER,W=2280,S=2231:2,S
524
2006 Oct 22
1
disaggregating table
Hi all,
This should be easy, but I can't seem to figure it out.
I have a table like this named newtable
a1 a2 a3 a4 Cnts Score
1 1 0 0 4 3.28
1 0 1 1 2 2.63
I want the following:
a1 a2 a3 a4 Cnts Score
1 1 0 0 4 3.28
1 1 0 0 4 3.28
1 1 0 0 4 3.28
1 1 0 0
2006 Mar 14
2
Multi-line paste function
Here's my contribution to R.
When R interacts with external programs (MySQL, cURL, etc.), it often
requires a pasted string that is sent to these programs. For readability
reasons, it is often preferable to have complex commands (SQL for example)
spread on several lines. However, the normal paste function requires to add
additional ' ", ' at the end of each line and another '
2005 Aug 22
3
read a table ignoring specific rows ?
Dear R users,
First of all sorry for this question, surely quite naive.
(I searched on the R site but was unable to find by myself).
I have a table, called infile :
1 2 3
4 5 6
7 8 9
I would like to read it and ignore the rows with 1st element > 3
I do it now with a for loop, and it's ok,
but I was expecting something simpler, like :
intable = read.table(infile);
newtable =
2006 Mar 07
7
m:n or multiple 1:n?
I have a Newbee question:
i have three tables and want to connect them. so is it stupid to make a
triple m:n (rails style xs_ys_zs) or do i have to make a new table
(newtable) where i got multiple 1:n?
the habtm (has and belongs to many) do only work proper to join two
tables, or i am wrong?
-jens
--
Posted via http://www.ruby-forum.com/.
2010 Apr 25
1
Problem loading MLInterfaces
I have been using R 2.10.1. and Bioconductor but the package "MLIntrefaces"
is not being loaded on my platform.
the error message
Error in loadNamespace(i[[1L]], c(lib.loc, .libPaths())) :
there is no package called 'coin'
Error in as.environment(pos) :
no item called "newtable" on the search list
Error: package/namespace load failed for 'MLInterfaces'
2007 Feb 23
1
help with RMySQL
Hi R users,
I am using RMySQL to connect to a database in MySQL.
I have 3 questions.
1)When I give the following command
dbListTables(con)
I get the output
stack imbalance in .Call, 142 then 143
stack imbalance in <-, 140 then 141
stack imbalance in {, 138 then 139
stack imbalance in standardGeneric, 126 then 127
stack imbalance in class, 121 then 122
stack imbalance in
2011 Oct 17
5
Install the rugarch-package
Hi,
i am unable to install the rugarch package.
More than that i do not even find this package in my list of possible
packages.
Its possible than the name has changed, or the package is not longer
availiable?
Is there a similar package avaliable for garch modelling except the fGarch
what i am using now?
many Thanks
Roland
--
View this message in context:
2003 Oct 23
1
Can you create a MySQL database with RMySQL?
Is it possible to create a database in MySQL via RMySQL?
Also, is the format for the authorization field
'userName/password at databasename'? I saw an example like this somewhere
in the documenation, but I haven't found the actual specification.
Thanks,
Barnet Wagman
2006 Sep 14
4
Massive data insert during migration
Hello all,
I''ve got a site that will be used by people (hopefully) all over the world. One of the requirements of registration is country and province of residence. I have a list of all the countries in the world and all their subnational entities. Currently, the two lists are divided between a pair of comma-delimited text files. If this were something less dynamic and cool, I''d
2005 Dec 15
3
<no subject>
Dear all,
I am still fairly new to R and try to analyze large tables of data generated
from genomic experiment. Currently, I am trying to plot pair of experiments
coming from different file, trying to look at the behavior of individual
feature in pair of experiment.
My problem is that I have independent list from different source and I would
like to plot the pair of value using a common key. As
2006 Feb 11
2
Route all LAN traffic through eth2 and keep web/mail traffic on eth0
Hi,
I have the following config:
1 PC with 3 NICs, that shares internet connection to LAN.
eth0 uses a public IP ($public_ip_1)
eth1 uses a private IP ($private_ip)
eth2 uses a public IP ($public_ip_2)
I have a webserver and a mailserver accesible by $public_ip_1 (eth0)
I have a LAN with all terminals using private IPs, and $private_ip (eth1) as
gateway.
$public_ip_1 and $public_ip_2 are from
2001 Mar 23
4
getpeername failed
Hello,
I use SAMBA under OpenBSD 2.8.
When the clients log in some times they have a reject : Authentificate
Failure...
And in the log we can observe the same time :
getpeername failed. Error was Socket is not connected ?
Can somebody help me please ?
Thanks
-------------- next part --------------
HTML attachment scrubbed and removed
2005 Apr 21
1
Fwd: (KAME-snap 9012) racoon in the kame project
FYI, looks like support for Racoon is ending. Does anyone have any
experience with the version in ipsec-tools ?
---Mike
>Racoon users,
>
>This is the announcement that the kame project will quit providing
>a key management daemon, the racoon, and that "ipsec-tools" will become
>the formal team to release the racoon.
>The final release of the racoon in the
2003 Jan 16
3
Announce: pmg -- menu driven GUI using RGtk
Hello all,
I've put together a quick and dirty menubar + dialogs + spreadsheet
GUI for R using the RGtk package. Performance is not great (OOP is a
real memory hog?), the design may be worse, but the hope is that it
will be useful in an introductory stats course while we await the
arrival of a real gui with ObveRsive and SciViews.
The package can be found at
2003 Jan 16
3
Announce: pmg -- menu driven GUI using RGtk
Hello all,
I've put together a quick and dirty menubar + dialogs + spreadsheet
GUI for R using the RGtk package. Performance is not great (OOP is a
real memory hog?), the design may be worse, but the hope is that it
will be useful in an introductory stats course while we await the
arrival of a real gui with ObveRsive and SciViews.
The package can be found at
2004 Apr 13
1
Problem with flags
Greetings! I'm having a problem with flags not working correctly. I'm
using Mozilla Thunderbird as my mail client, and Dovecot 0.99.10.4 as
part of Debian on a Sparc box.
The thing that doesn't seem to be working right is Thunderbird's Label
feature, which uses custom IMAP flags. I noticed that once I labeled a
message, I couldn't un-label it. I recorded this exchange
2010 Apr 01
3
pvals.fnc() with language R does not work with R 2.10.1
Hi Everyone,
I am using R 2.10.1. lmer function works properly, however pvals.fnc
() does not despite the fact that I uploaded:
- library(lme4)
- library(coda)
- library(languageR)
This is the error message I get
pvals.fnc(lexdec3.lmerE2, nsim=10000)$fixed
Error in pvals.fnc(lexdec3.lmerE2, nsim = 10000) :
MCMC sampling is not yet implemented in lme4_0.999375
for models with random