similar to: names<- in data.frame (PR#13916)

Displaying 20 results from an estimated 1000 matches similar to: "names<- in data.frame (PR#13916)"

2008 Dec 02
4
Bug in "transform"?
Dear useRs, Here is a weird behavior of transform function: mtcars1<-matcars transform(mtcars1,t1=3,t2=4) Error in data.frame(`_data`, e[!matched]) : arguments imply differing number of rows: 32, 1 instead, this works: mtcars1$t1<-0 transform(mtcars1,t1=3,t2=4) also works if applied in turn: transform(mtcars1,t1=3) transform(mtcars1,t2=4) I often need to use this
2009 Aug 17
2
S4: inheritance of validity methods?
Dear Developers, In current implementation of validity method, objects are first coerced to superclass (slots are striped). Thus, it is not possible to write validity method which would perform some checks on children slots. Say, I want to check if number of slots in a class is equal to "n": setClass("A", representation(a="numeric", n="integer"),
2009 Sep 11
1
Modify functions in base packages (needed for completion for proto objects)
Hello everyone, I am trying to implement completion for proto objects. Proto extends environment in a hierarchical way. Thus completion should list all the names in all it's parent environments. For "normal" classes defining names.class would do the job, but completion for "environment" is hard coded in utils:::specialCompletions by means of base::ls(). As result
2009 Oct 15
2
forwarded: bug (?) in cut.POSIXt with "breaks"=integer
From: Vitalie S. <vitosmail <at> rambler.ru> Subject: Bug in cut.POSIXt Newsgroups: gmane.comp.lang.r.general Date: 2009-10-15 15:47:48 GMT (1 hour and 29 minutes ago) Hello Everyone, Before reporting decided to post here first: tt <- structure(c(1254238817, 1254238859, 1254238969, 1254239080), class = c("POSIXt",
2012 Mar 21
2
enableJIT() prohibits usual R debugging
Hi, Browser doesn't work properly with the compiler enabled. It might be intended behavior, but it's not documented. compiler::enableJIT(1) foo <- function(){ browser() cat("here\n") } Browser doesn't stop, and I am getting: > foo() Called from: foo() Browse[1]> here > Thanks, Vitalie. > sessionInfo() R version 2.14.2 (2012-02-29) Platform:
2007 Feb 21
2
OS X UTI for FLAC files
I think it would be beneficial to designate an official UTI (see http://developer.apple.com/macosx/uniformtypeidentifiers.html) to be used on OS X for FLAC files. I have written a FLAC metadata importer (http://sbooth.org/importers/) for which I chose the UTI 'net.sourceforge.flac'. A standard UTI for application developers to use would help alleviate any confusion and could
2003 May 30
2
Rsyncing Problem with - character!
Dear Rsync Users, Please can I have a bit of rsync advice? I am trying to rsync a file called. 'Draft text - with Holley comments.doc' from machine a to machine b. Unfortunately this isn't working because I think rsync recognises the - character and thinks it's an option. I have tried escaping this out as well as putting it all in " " but neither seems to work
2003 Feb 28
1
Newbie Question
Hi, This is a very simple question I realise, but I hope maybe someone can just help me out. I am trying to do a very simple thing, just transfer a file from machine A to machine B using rsync with ssh. This is what i'm typing: bash-2.03# rsync -avvv --rsh="ssh -l tdf" tdf@machine.niss.ac.uk:/export/home/tdf/demofile.html demofile.html This is what I get: opening connection
2006 Dec 09
2
Filtering a data frame by regular expression
Hello, I am having difficulty filtering a data frame. I would like to take all the rows of a data frame where column A contains the regular expression "UTI" (or some other regex). Here's what I've got: utiRE <- function (avector) { occurs <- c() r1 <- "UTI" for (x in avector) { if (!is.na(grep(r1,x,perl=TRUE))) { occurs <- c(occurs, TRUE) } else { occurs
2008 Jun 26
1
Undefined method: camelize
Hi, I am fairly new at Rails, and attempting to deploy an application that''s running fine using InstantRails on my PC. On the deployment server (I use railsplayground.net), I get the following error: Processing ApplicationController#index (for 220.224.229.156 at 2008-06-25 18:49:34) [GET] Session ID: 5921e7d789ee3aaa214f2d59aa40986a Parameters: {"action"=>:index,
2008 Jul 10
1
Ellipsis arguments for plot.formula
Hi: I have a function as follows: my.plot <- function( x, y = NULL, ... ) { plot( x, y, cex.axis=0.5, ...) } Set up the variables: x <- 1:10; y <- x; tdf <- data.frame( x, y ); main.str <- "test" I will exercise the function in two ways: > my.plot( y ~ x, tdf, main = "test" ) This works fine > my.plot( y ~ x, tdf, main = main.str ) Error in
2004 Nov 09
1
3.0.8 and looong logout time
I've got two WinXP SP2 users. Roaming profiles. One of them takes about 25 seconds to log out unless she has made pretty drastic changes to her profile (My Documents, etc). My second user takes upwards of 3 minutes to log out, even if he has just logged in, not opened a thing or made changes, and then logged back out. Below is part of a strace as I don't know what I'm looking
2008 Nov 01
1
Splitting device for ggplots?
Dear UseRs, For various reasons I need to plot multiple ggplots on one device (preferably pdf). Is there a way to achieve that? par(mfrow), split.screen() and layout() seem not to do the job. Thanks, Vitalie.
2012 Mar 14
1
[ESS] completion in [] (R internal completion fails)
Hello, I am forwarding this from ESS mailing list, as it's a failure of internal R completion system: This fails: utils:::.assignLinebuffer('iris[iris$Spec') utils:::.assignEnd(15) utils:::.guessTokenFromLine() utils:::.completeToken() utils:::.retrieveCompletions() ## -> [1] "iris[iris$Spec" This works utils:::.assignLinebuffer('iris[ iris$Spec') # note the
2013 May 05
1
Avoid entering {} evaluation in debugger
Hi, f1 <- function(){ browser() print("aaa") } f2 <- function(){ a <- 12 eval(envir = parent.frame(), bquote({ b <- .(a) })) } Now do, f1() and enter n RET and then {1+2}: Browse[2]> {1 + 2} debug at #1: 1 + 2 Browse[3]> {} is now being debugged. This was never bothering me
2023 Apr 07
1
Does anybody know about a windows clipboard flavour name for FLAC in use?
Hi all, As some of you might know, the FLAC format is being processed by an IETF working group to become an internationally recognized standard. Part of this process is FLAC being assigned a media type (also known as MIME-type by many): audio/flac. However, during review of the application, it was requested to include a UTI and a Windows Clipboard Flavour Name. Now, apparently the latest macOS
2010 Sep 23
1
merging multiple data frames
hi guys i have multiple data frames which i want to merge. there are four of them..eg pdf SampleID UVDose_J RepairHours Day_0 Day_45 Day_90 1 SDM001 1.0 3 485.612 465.142 490.873 2 SDM001 1.0 3 503.658 457.863 487.783 3 SDM001 1.0 2 533.193 451.044 456.973 4 SDM001 1.0 2 538.334 452.887 474.915 5 SDM001 1.0
2005 Nov 21
1
Cacheing in read.table/ attached data?
Disclaimer/Apology: I am an R newbie I am seeing some behaviour that seems to me to be the result of some cacheing going on at some level, and perhaps this is expected behaviour. I would just like to understand the basic rules. What I have is a file with some data. I read it in and then do a summary on the resulting dataframe. I find the some values are completely outside the expected range,
2008 Aug 30
1
need some help on r
Hi >Tdf bin TCC_TCA TCA_CR TCC_CR Time sn.rnc 117 117 258 27 314 (08/28/08 00:09:42) 50.21 118 118 251 30 291 (08/28/08 00:09:47) 50.21 119 119 247 28 289 (08/28/08 00:09:52) 50.21 120 120 251 29 282 (08/28/08 00:09:57) 50.21 121 121 276 39 320 (08/28/08 00:10:02) 50.21 122
2012 Jun 15
2
Build fails with sysdata.rda in R dir
Hi, I am getting a strange error with 15.0 which I've not seen with previous versions of R. If sysdata.rda is included in R directory of the package I am getting: R CMD build betfairly.roxygen/ * checking for file ?betfairly.roxygen/DESCRIPTION? ... OK * preparing ?betfairly?: * checking DESCRIPTION meta-information ... OK * excluding invalid files Subdirectory 'R' contains invalid