similar to: coercing a list to a data frame, lists in foreloops

Displaying 20 results from an estimated 110 matches similar to: "coercing a list to a data frame, lists in foreloops"

2005 Jan 26
1
summarizing daily time-series date by month
Message: 63 Date: Wed, 26 Jan 2005 04:28:51 +0000 (UTC) From: Gabor Grothendieck <ggrothendieck at myway.com> Subject: Re: [R] chron: parsing dates into a data frame using a forloop To: r-help at stat.math.ethz.ch Message-ID: <loom.20050126T052153-333 at post.gmane.org> Content-Type: text/plain; charset=us-ascii Benjamin M. Osborne <Benjamin.Osborne <at> uvm.edu>
2005 Jan 25
1
chron: parsing dates into a data frame using a forloop
I have one data frame with a column of dates and I want to fill another data frame with one column of dates, one of years, one of months, one of a unique combination of year and month, and one of days, but R seems to have some problems with this. My initial data frame looks like this (ignore the NAs in the other fields): > mans[1:10,] date loc snow.new prcp tmin snow.dep tmax 1
2009 Aug 25
2
allowing line wrap for long strip text in xyplot (lattice)
Hi. Am brand new to R and to mailing lists - have never posted anywhere before, so hope I do this right. Am using R 2.9.1 with lattice graphics (just installed, fully up to date). Am doing trellis xyplot with y (emp=employment), x (yearmo=a time measure) and conditioning variable (indf - factor describing industry) -- i.e., (emp ~ yearmo | indf), where all three variables are in a dataframe. The
2010 Oct 11
2
filled.contour: colour key decoupled from main plot?
Dear R colleagues, I am trying to plot some geophysical data as a filled contour on a continent map and so far the guidance from the R-help archives has been invaluable. The only bit that still eludes me is the colour key (legend) coming with filled.contour: I prefer to generate my own colour palette, mainly based on the quantiles of tenths of the data in order to capture the whole range (of
2005 May 22
3
comparison operator, decimals, and signif()
Hi, I recently spent quite a bit of time trouble shooting a function that I had written only to discover that the problem I was having was with the comparison operator. I assumed that the following would return TRUE: > testMean <- 82.8 + 0.1 > testMean [1] 82.9 > testMean == 82.9 [1] FALSE Apparently this has to do with deciml places. Look: > newTest <- 82.0 > newTest [1]
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:
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)
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 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"
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
2013 Dec 10
1
[LLVMdev] Please cherry pick r195411 into release-3.4
Hi Michael, Can you please cherry pick r195411 into release-3.4 to fix building on older OS X? Thanks, Jeremy commit e323506316cc3948bd801be537a723c308d8e2d4 Author: Michael Gottesman <mgottesman at apple.com> Date: Fri Nov 22 05:00:51 2013 +0000 [block-freq] Update data in test case to be unsigned long long to fix mingw build. git-svn-id:
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
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. >
2006 Apr 03
6
getting fcgi to work
can some one help me with my install? i''m having a touch time getting fcgi to play right with apache. i ran "gem install fcgi" and this is the output i get: Attempting local installation of ''fcgi'' Local gem file not found: fcgi*.gem Attempting remote installation of ''fcgi'' Updating Gem source index for: http://gems.rubyforge.org Building