Displaying 20 results from an estimated 600 matches similar to: "comparison operator, decimals, and signif()"
2005 Jan 31
2
coercing a list to a data frame, lists in foreloops
I have a set of time-series climate data with missing entries. I need to add
rows for these missing entries to this data set. The only way I know to do
this is unsing a foreloop, but this won't work on a list. I've tried to
convert the list to a data frame, but that won't happen, either.
I want to fill rows in this table:
> newtest[10:15,]
yrmos yearmo snow.sum snow.mean
2007 Aug 10
1
[Fwd: Re: How to apply functions over rows of multiple matrices]
[Apologies to Gabor, who I sent a personal copy of the reply
erroneously instead of posting to List directly]
[...]
> Perhaps what you really intend is to
> take the average over those elements in each row of the first matrix
which correspond to 1's in the second in the corresponding
> row of the second. In that case its just:
>
> rowSums(newtest * goldstandard) /
2014 Feb 11
2
$new cannot be accessed when running from Rscript and methods package is not loaded
Hi
Accesses the $new method for a class defined in a package fails if the
methods package is not loaded. I have created a test package with the
following single code file:
newTest <- function() {
cl <- get("someClass")
cl$new
}
someClass <- setRefClass("someClass")
(This is similar to code actually used in the testthat package.)
If methods is not loaded,
2007 Aug 09
1
How to apply functions over rows of multiple matrices
Dear ExpRts,
I would like to perform a function with two arguments
over the rows of two matrices. There are a couple of
*applys (including mApply in Hmisc) but I haven't found
out how to do it straightforward.
Applying to row indices works, but looks like a poor hack
to me:
sens <- function(test, gold) {
if (any(gold==1)) {
sum(test[which(gold==1)]/sum(which(gold==1)))
} else NA
}
2004 Apr 23
3
MP3 encoding of Monitor files
I have having problems trying to take a file recorded with Monitor and
convert it to MP3. When I use 'play' to play the .wav file, it sounds
fine. After bladenc'ing it, it plays at lightening speed, and the voices
are all high pitch. I tried using sox to resample to 32000 before
encoding, but that didnt work either. Do any of you convert your .wav
files to mp3?
Monitor call:
2006 Jul 13
1
Issue with Web Service
I have the following:
File: subscription_api.rb
class SubscriptionApi < ActionWebService::API::Base
api_method :newTest, :returns => [ [[:string]] ]
end
File: subscription_controller.rb
class SubscriptionController < ApplicationController
wsdl_service_name ''Subscription''
web_service_scaffold :invoke
def newTest()
return [
2019 Jun 25
2
Emails not visible after renaming folders
Hello,
I have strange problem with "losing" emails after rename mail
folder(s) (via imap client: thunderbird, roundcude, etc..)
How to reproduce:
1. Create some folder name, like TEST
2. Create sub-folder under TEST (like SUBTEST)
Structure:
TEST
|--SUBTEST
# doveadm mailbox list -u postmaster at testmailbox
Spam
Trash
Sent
Drafts
INBOX
TEST
TEST/SUBTEST
3. Move (or copy)
2019 Jun 26
2
Emails not visible after renaming folders
Copying or moving with email client: thunderbird, roundcube (webmail), mutt or any other email client via imap protocol.
25.06.2019 22:10, Germ?n Herrera ?????:
> Are you copying/moving the emails with {cp|mv} or with "doveadm {copy|move}"?
>
> On 2019-06-25 12:00, Aleksandr via dovecot wrote:
>> Hello,
>>
>> I have strange problem with "losing"
2004 Jun 15
1
Cant create in a subdirectory...
I've battled this one for a few days now and its costing my sanity so I am
hoping that someone here has an answer
I am running the samba server 3.0.4 on a linux 2.4.25 server.
I can connect to my share point and authenticate fine
I can create files or directories in the root of the sharepoint fine
I can go into subdirectories and look at all the files...
But I cannot create in any
2014 Aug 06
0
error configuring a public bridge --> uvt-kvm: error: libvirt domain 'newtest' has no NIC MACs available.
Hi all,
First at all, excuse if this is not the right place for sending this email.
I'm using ubuntu 14.04 server edition and i'm trying to deploy some virtual
machines in a server in such a way that they are visible in the same
network that the host machine.
The tools I'm using are the uvtool package and libvirt.
The error I'm getting is the following:
"uvt-kvm: error:
2019 Jun 25
0
Emails not visible after renaming folders
Are you copying/moving the emails with {cp|mv} or with "doveadm
{copy|move}"?
On 2019-06-25 12:00, Aleksandr via dovecot wrote:
> Hello,
>
> I have strange problem with "losing" emails after rename mail
> folder(s) (via imap client: thunderbird, roundcude, etc..)
>
> How to reproduce:
>
> 1. Create some folder name, like TEST
> 2. Create
2019 Aug 06
0
Emails not visible after renaming folders
Hi guys.
Does anyone have problems with a similar configuration (mdbox)?
Just tested with latest version (stage servers installation: dovecot 2.3.7), also affected.
Not critical, but have complaints from users, 1-2 per month.
26.06.2019 12:05, Aleksandr ?????:
> Copying or moving with email client: thunderbird, roundcube (webmail), mutt or any other email client via imap protocol.
>
2009 Apr 05
1
problem with lattice tiff or bitmap: character size and color
Hi all,
I am trying to make tiff files of lattice plots at a resolution greater
than 300 dpi required by a journal (PLoS ONE). I have tried both the tiff
and bitmap functions. tiff keeps panel colors but reduces axes and tick
labels so they are nearly invisible. bitmap maintains correct label size
but only produces greyscale. Regular plots work fine with tiff; the
problem is only with lattice
2008 Aug 12
1
Quickly calculating the mean results over a collection of data sets?
I have a collection of datasets in separate data frames which have 3
independent test parameters (w, x, y) and one dependent variable (z) ,
together with some additional static test data on each row. What I want
is a data frame which contains the test data, the parameters (w, x, y)
and the mean value of all (z)s in the Z column.
Each datasets has around 6000 rows and around 7 columns, which
2010 Oct 06
3
Assigning value to a vector from within a function
Hi all,
I am having trouble assigning a value within a vector using a variable
defined within a function. I suspect this has something to do with
namespaces but I cannot figure it out. Please reply directly to me if you
can help.
###begin code
#simple vector
test<-c(4,5,6)
#simple function to get a value from a vector
#works just like I would expect, has no problem indexing using the local
2009 Nov 03
2
reshaping pairs of columns
Given a data frame consisting of a pointID and 12 pairs of (lat, long)
variables, with names
latA, longA, latB, longB, ... latL, longL, I want to reshape it into a
data frame with the structure
point source lat long
1 A ... ...
1 B ... ...
I've looked at reshape and plyr, but can't figure out how to do this.
Details of my data frame are below
2006 May 30
0
RadRails generators throwing ''No such file to load'' errors
if anyone has a minute maybe you can help with a newbish problem im
having with radrails v0.6.3.
If i try to generate a migration through the ''generators'' panel i get
error messages like this:
myProj> ruby script/generate migration newtest
myProj> -e:3:in `load'': No such file to load -- script/generate
(LoadError)
from -e:3
Although the generators work fine
2011 Apr 13
1
Decimals in R/SQL
Hello,
When I am writing in sqldf or RSQLite I lose the decimals in my matrix.
The only way I can get decimals is by multiplying by 1.00000, etc. I
have tried manipulating the options, but it is only effective once I
multiply by 1.0000.
I appreciate any suggestions!
Thanks!
Example:
z <- sqldf ("select ST,
SUM(AGEP*PWGTP)*1.000000000/SUM(PWGTP)*1.00000000000000 as wgtage from
ss09
2003 Apr 22
1
read.table and decimals
Dear,
We are trying to read an asciifile using the read.table() function and
discovered that only 4 decimals are read. Any idea how to get more decimals?
Kris
--
------------------------------------------------------------------------
http://perswww.kuleuven.ac.be/~u0027178/VCard/mycard.php?name=krisn
------------------------------------------------------------------------
Minds are
2006 Apr 08
1
Entering numbers with decimals
Hello list,
I'm just getting started with R, and I'm trying to determine how R
treats large numbers that have decimals. Take the following two examples:
> x <- c(999999999999999.9)
> sprintf("%.5f",x)
[1] "999999999999999.87000"
> y <- c(9999999999999999.9)
> sprintf("%.5f",y)
[1] "10000000000000000.00000"
I realize that I have