search for: brigid

Displaying 20 results from an estimated 33 matches for "brigid".

Did you mean: rigid
2011 Mar 18
4
Performance Difference? Windows vs. Linux
...including a database that I access via an R package.) I don't know how much it matters what R is doing - but I've got R pulling a large amount data from a database, performing many complex computations on that data, and then writing output data to a database. Thanks so much for the input, Brigid
2009 May 06
2
Print to File Formatting
...y file, which I do not want... Question #2: This process puts quotes around all data of class = character. I can't have these quotes in my file - is it possible to get R to omit them even if my data frame contains character strings? Any help or hints on this are greatly appreciated! Thanks, Brigid
2011 Apr 06
3
Decimal Accuracy Loss?
...mbers are equal?", but just want to confirm that the differences in values are due to differences in the matrix multiplication operator and manual calculation via for loops, rather than information that is lost when casting a numeric as a matrix and back again. Thanks in advance for the help, Brigid
2009 Jan 16
2
Missing file to run Rcmd batch on Windows
...;: No such file or directory Just for reference, TestBatch.R contains only one line: print("hello world") Does anyone have any idea on what this file is that I might be missing? Or is there some other mistake I'm making in trying to run the a script from the command line. Thanks, -Brigid [[alternative HTML version deleted]]
2013 Jan 31
2
Automated Start for new Rgui within existing R code?
...command even exist or is this just wishful thinking? I'm trying to avoid writing a wrapfile in another language which would be able to source the .R file as most of this (before and after the ideal split point) is written in R already. (FWIW Windows 7, 8 core machine running 64bit R) Thanks, Brigid [[alternative HTML version deleted]]
2010 Jul 23
2
randomness using runif
...rm i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 2 minor 8.1 year 2008 month 12 day 22 svn rev 47281 language R version.string R version 2.8.1 (2008-12-22) Thanks for the help, Brigid
2012 Jun 01
3
Add rank column to data frame as in SQL...
...Toyota N 59956.583 6 16 Toyota P 18621.760 4 For reference, I'm using R 2.11.1 on a Windows 7 machine. Can anyone provide insight into how I am implementing this incorrectly, or give an alternate way to add such a partitioned rank column to a data frame? Thanks in advance, Brigid
2012 Oct 10
3
Numeric "Label" of Factor value?
Sorry, I'm sure I'm not using the appropriate vocab here, which is undoubtedly why I can't seem to find a fix to this (hopefully very easy) problem. Suppose you have a factor abc <- factor(c(2,2,3,4,7,7)) And you want to know what the number in the nth spot in that would be abc[1] [1] 2 Levels: 2 3 4 7 shows the correct label of the first element - but if I want to pull out the
2008 Dec 09
2
Applying min to numeric vectors
I was surprised this morning, that it seems as though the min() function does not work as *I* anticipated when given vector arguments. For example: a <- 1:10 b <- c(rep(1, times=5), rep(10, times=5)) Result: > min(a,b) 1 What I actually wanted was a term by term minimum, i.e.: ifelse(a<=b, a, b) 1 1 1 1 1 6 7 8 9 10 Am I losing much in terms of computation power if I use
2008 Dec 18
2
formatting print statements with multiple lines
When executing the command: print(cat(paste("Input criteria does not meet specifications. Check input against the following requirements: a >= 0 b <= 0 c >= 0 ", sep=""), "")) I get: Input criteria does not meet specifications. Check input against the following requirements: a >= 0 b <=
2009 May 20
2
Example for parsing XML file?
Hi, I am trying to parse XML files and read them into R as a data frame, but have been unable to find examples which I could apply successfully. I'm afraid I don't know much about XML, which makes this all the more difficult. If someone could point me in the right direction to a resource (preferably with an example or two), it would be greatly appreciated. Here is a snippet from one of
2009 Jun 24
2
CIFS mount not applying setuids
...le. I don't know why CIFS Unix Extensions wouldn't be available. Anybody have any ideas? ---Client mount command --- hydrian@bran ~ $ sudo mount -vv /mnt/Multimedia/ parsing options: rw,credentials=/etc/samba/cred-remotemounter,setuids,acl,noperms mount.cifs kernel mount options unc=//brigid.tygerclan.local\multimedia,ip=192.168.1.4,user=remotemounter,pass={mypassword},ver=1,rw,credentials=/etc/samba/cred-remotemounter,setuids,acl,noperms Client: Gentoo Linux net-fs/mount-cifs-3.0.30 net-fs/samba-3.0.33 -------------------------------------- --- Server Config---------------- [global]...
2009 Jan 21
3
Error as.Date on Invalid Dates
...calendar.", sep=" ")) If anyone has any suggestions on catching this type of error and feedback which directs the user, it would be much appreciated. For reference, I am using a Windows Vista machine with: > R.version.string [1] "R version 2.8.0 (2008-10-20)" Thanks, Brigid [[alternative HTML version deleted]]
2009 Feb 17
6
Percentiles/Quantiles with Weighting
Hi All, I am looking at applications of percentiles to time sequenced data. I had just been using the quantile function to get percentiles over various periods, but am more interested in if there is an accepted (and/or R-implemented) method to apply weighting to the data so as to weigh recent data more heavily. I wrote the following function, but it seems quite inefficient, and not really very
2009 Jan 13
2
Memory Size & Allocation in R
My apologies if this is a bit of a 'newbie' question. I am using R v 2.8.0 in Windows and am a bit confused about the memory size/allocation. A script I wrote faulted out with the error: "Error: cannot allocate vector of size 5.6 Mb" After this error, I still have: > memory.size() [1] 669.3517 > memory.limit() [1] 1535.875 Since the memory size is well under 5.6Mb less
2008 Nov 14
2
Embed SQL queries in R?
Hi All, Most of the work I am doing with R uses data which I am pulling from various SQL queries. To streamline the process even more, I was wondering if it was possible to embed SQL queries in R - that way avoiding the need to first get the data, then move to R to process it. I haven't found anything out there on this yet, so if you know of a good resource that includes this topic, I would
2009 Aug 24
2
Multiply List by a Numeric
I apologize for what seems like it should be a straighforward query. I am trying to multiply a list by a numeric and thought there would be a straightforward way to do this, but the best solution I found so far has a for loop. Everything else I try seems to throw an error "non-numeric argument to binary operator" Consider the example: a <- 1 b <- 1:2 c <- 1:3 abc <-
2010 Jun 09
1
Problem Matching Exact Values
...orm i386-pc-mingw32 arch i386 os mingw32 system i386, mingw32 status major 2 minor 8.1 year 2008 month 12 day 22 svn rev 47281 language R version.string R version 2.8.1 (2008-12-22) Thanks in advance, Brigid
2009 Apr 09
0
Los Angeles area R users group's first meeting
...terests related to R and to open a forum for discussions and further interaction. Agenda: - Introduction - Using R in research (Jan de Leeuw, UCLA) - Using R in applications related to credit card transactions (Szilard Pafka, Epoch) - Using R in teaching (Rob Gould, UCLA) - Using R in consulting (Brigid Brett-Esborn, UCLA) - Q&A, general discussions - Discussions/networking We plan 15 minutes for each speaker and for the general discussions. Then participants are encouraged to initiate discussions with each other (the place is reserved until 9pm). Bottled water and cookies will be available f...
2008 Nov 19
2
Exclude holidays in a subset of dates?
Hi All, I am iterating through dated materials, with variable start and end dates, and would like to skip procedures everytime I encounter a weekend or holiday. To do this, I thought the easiest way would be to create a TRUE/FALSE vector corresponding to each day where it is TRUE if a workday, and FALSE if a weekend or holiday. So far I have been able to do this for weekdays: startDate <-