similar to: Noob question - Identity argument within aggregate function?

Displaying 20 results from an estimated 10000 matches similar to: "Noob question - Identity argument within aggregate function?"

2012 Mar 20
3
Wrong output due to what I think might be a data type issue (zoo read in problem)
Here's the small scale version of the R script: http://pastebin.com/sEYKv2Vv Here's the file that I'm reading in: http://r.789695.n4.nabble.com/file/n4487682/weatherData.txt weatherData.txt I apologize for the length of the data. I tried to cut it down to 12 lines, however, it wasn't reproducing the bad output that I wanted to show. The problem is that my whole data set
2012 Feb 26
2
question about user written function (newb question)
Quick newb question about R relating to the line of code below: rawCool = read.zoo("cooling.txt", FUN = as.chron, format = "%m/%d/%Y %H:%M", sep = "\t", aggregate = function(x) tail(x, 1)) I'm wondering what the specifics are for the argument where it has "aggregate = function(x) tail(x, 1)". I understand that it removes the last row of
2012 Feb 28
1
aggregating specific parts in zoo index column to perform sliding average
Here's my code: http://pastebin.com/0yRxEVtm The important parts are uncommented and should be easy to find using the link above. For the following line of code, I plan on looking for a way to offset it up 7 rows so that the 15 minute timestamp would be considered the "median" of the subset being averaged to find the mean: avgCool = aggregate(intCool, trunc(time(intCool),
2012 May 02
5
uneven vector length issue with read.zoo?
I truncated and simplified my code and the read in data that I'm working with to isolate the issue. Here is the read in data and R script respectively: http://r.789695.n4.nabble.com/file/n4604287/test.csv test.csv http://pastebin.com/rCdaDqPm Here is the terminal/R shell output that I hope the above replicates on your screen: > source("elecLoad.r", echo = TRUE) > #Load
2012 Mar 22
4
read.zoo - combining two columns with date and time respectively into one index column?
I have three columns in my raw data: date, time, and dry bulb temperature: http://r.789695.n4.nabble.com/file/n4495326/weathDataSDCoron.txt weathDataSDCoron.txt The date format is %Y%m%d and the time format is %H:%M. Any ideas on how to read it in such that it looks at the first two columns and then merges it into one column combining both the date and time? -- View this message in context:
2012 Apr 14
1
simple read in with zoo using POSIXlt
Easy question a bit. So here's my code: http://pastebin.com/F4iQPVy5 I am trying to read in a series of timestamps. However with POSIXlt as FUN in read.zoo, the output is merely two numbers and is not the output that I'm hoping for. The code above should reproduce the error. Here is code that shows what I want it to do: http://pastebin.com/GEPZ5R9B The problem though, is that it's
2012 Mar 14
1
logical test not functioning correctly on zoo series...what the hell?
Here's the raw data I'm working with (will be available temporarily): http://dl.dropbox.com/u/41922443/dataout_2471_843.csv Next, here's the code I want to impose (error that I'm seeing SHOULD reproduce on your shell when script is executed...btw using Ubuntu Linux 11.10 if that makes a difference): http://pastebin.com/LDNw8UT0 The issue specifically is the last line of code in
2006 May 31
6
Linux noob
Help. I recently switched over to linux (because windows sucks). I love linux, but i need some windows apps to run, (like iTunes), so I installed Wine... however, I am used tot he old windows filesystem and not the linux one, and I can't find the .wine directory. I thought it should be under "filesystem," right? But it's not... Can anyone tell me where my .wine dir might be?
2007 Jul 09
1
why function 'sum' within 'aggregate' need an 'index'?
Hi, people. I am using R-2.5.0 now, when tried the function aggregate with sum, it showed an error as following: > a <- gl(3,10) > b <- rnorm(30) > aggregate(b,list(a),sum) # here is the error message, it complained that an error in FUN(X[[1L]], missing "INDEX", and no defaults value. but the tapply function will be okay. > tapply(b,list(a),sum) 1 2
2005 Mar 04
4
Im a noob
Im completly new to the whole PBX thing. I have a toshiba unit now and we're moving our office in the next few months. I want to use asterisk but would like to test it out first. Does it support a basic analog phone line like the one in my house? Is that FXS? Are there any FAQs I should read to learn more? Thanks for the reply! -------------- next part -------------- An HTML attachment was
2006 Apr 22
6
nOOb question: How to use find_all with form input data
Hello, I''m having a problem utilizing the find_all method with a value from a form. I keep getting the following error: Mysql::Error: #42S22Unknown column ''category_id11'' in ''where clause'': SELECT * FROM items WHERE (category_id11) The controller seems to be getting the correct data, but my key and value seem to be mashed together(it''s
2008 Sep 23
3
Silly answers to silly questions for a silly Noob.
OK, I'm a noob to Wine. I've figured some stuff out with Wine and it sees everything I want it to see just fine. OK, I understand why you don't want Wine to see your windows install, but I put all my program installs on a separate partition. Now with this in mind can I just have Wine look at my Program Files and run my apps from there, or do I have to reinstall all the apps I want
2006 Jan 24
2
Noob - port 3000 in URL''s - get rid of it?
Hi, total Noob here. I have a rails server set up and running. I''m working my way through the "agile" book. I see that all of the examples show URL''s that explicitly call for port 3000. How would one go about creating a ruby app that is engaged with a "normal" URL with no port number in it? That is apparently the default port for webrick to start up on
2008 Nov 27
8
YET ANOTHER world of warcraft help-a-noob
okay well i've been fighting to get wow to work the past few days...i am a complete linux noob running ubuntu 8.10(intrepid)...after many issues installing i finally got the game installed and booting up however when i get in game i deal with massive glitching and screen tearing i set all screen tear reduction options in wow and have read several possible fixes but i have insufficient
2007 Jul 04
2
[LLVMdev] Noob questions about setting up on Win32
Hello, Ted. > (*) build LLVM itself > (*) build programs with LLVM > > I have a MingW32 setup on a WinXP machine; You can see http://wiki.llvm.org/index.php/Notes:MingW32 to get instructions how to build LLVM on mingw32 box. For building programs with LLVM itself you'll probably need llvm-gcc4, which you can either compiled by yourself (tricky on mingw32) or use prebuilt one in
2006 May 18
6
NOOB: Second post, please help...
Folks, I am linking from page A to page B, and back again. When I go from A -> B, the B_controller.rb runs fine, and the page renders properly. But, when I go from B -> A, the A_controller.rb doesn''t run again, so the array (@A) is nil (which causes a problem). Should the controller run each time the page is accessed? Any ideas? Marcus Marcus Blankenship Technology Services -
2004 Oct 26
1
indexing within the function "aggregate"
Hi all, I'm trying to work out the following problem, but I can't imagine how. I have the following (much reduced & oversimplified) dataset My.df <- cbind.data.frame(PPM=c(15.78, 15.81, 15.87, 15.83, 15.81, 15.84, 15.91, 15.90, 15.83, 15.81, 15.93, 15.83, 15.70, 15.92, 15.76, 15.81, 15.91, 15.75, 15.84, 15.86, 15.82, 15.79,
2011 Aug 05
2
Loop: noob question
Hi, Can someone help me out to create a (for?) loop for the following procedure: x=rnorm(250,0,0.02) library(timeSeries) x=timeSeries(x) P=1000 loss=-P*x loss
2010 Dec 03
5
XCP 1.0 beta : NOOB: how do i log into a newly created VM?
Hi: Sorry for the basic NOOB question but I managed to create a VM but now I am stuck. On page 26 of the XCP Virtual Machine Installation Guide it says "VNC and perform the OS installation". I tried everything I could find (listed below) but I am stuck. Any help would be greatly appreciated. Thanks in advance. Here are two questions whose answers would really help: 1.
2008 Jan 18
1
Noob question for wxMenu.get_menu_items()
How do I iterate through the pseudo-template list class containing wxMenuItem pointers. Am still a bit of a Ruby/wxRuby noob. Currently have this: pp mymenu.get_menu_items() which prints: #<SWIG::TYPE_p_wxMenuItemList:0x4634fa8> However when I try to do: mymenu.get_menu_items().each {|key| ...} it tells me there is no each method for this class (SWIG::TYPE_p_wxMenuItemList)