similar to: question about user written function (newb question)

Displaying 20 results from an estimated 6000 matches similar to: "question about user written function (newb question)"

2012 Mar 05
2
Filter/Ceiling for unwanted data - zoo
Here's my script: http://pastebin.com/zx3TCtXg I want to draw attention to the code block where the read in of the raw data is located. Is there a function that filters out unwanted data with respect to a ceiling limit. For example, I want to remove any value over 500 kW in the rawCool variable. Any ideas where to go with that? I figure it would be an argument within read.zoo or an external
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 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
2006 Jul 28
2
newb question...
This is what it says when i have this stupid error... app/controllers/info_controller.rb:9: syntax error this is what is inside of info_controller, class InfoController < ApplicationController def who_bought @product = Product.find(params[:id]) @orders = @product.orders respond_to do |accepts| accepts.html accepts.xml end end if someone could please help me... -/ James --
2012 Mar 02
4
Noob question - Identity argument within aggregate function?
>aggregate(z, identity, mean) 1 2 3 4 5 1.0 3.0 5.0 6.0 7.5 > aggregate(z, mean) Error: length(time(x)) == length(by[[1]]) is not TRUE Can someone help me understand the error above and why "identity" is necessary to satisfy the error -- View this message in context:
2007 Oct 30
6
Newb to puppet - Solaris svcadm question
I''m new to puppet so this might be a foolish question. I''m using Solaris 10, server is Sparc, my client is x86. I created a ''file chown'' manifest as a test ... /etc/puppet/manifests/classes/puppet.pp class puppet { file { "/etc/puppet.txt": owner => "root", group => "root",
2009 Jul 01
1
Newb question - CHM files - Best method to view
Please excuse my first couple of probably quite a few newb questions. Are there still probs with viewing chm files? If I browse to the chm file and just launch it seems fine until I try search for a subject. I search, find what I'm looking for, click it and the help file closes. If I use wine hh / winepath windows path it launches but if I click search I can't try the search, it's
2011 Feb 10
1
Newb Prediction Question using stepAIC and predict(), is R wrong?
I'm using stepAIC to fit a model. Then I'm trying to use that model to predict future happenings. My first few variables are labeled as their column. (Is this a problem?) The dataframe that I use to build the model is the same as the data I'm using to predict with. Here is a portion of what is happening.. This is the value it is predicting = > [1] 9.482975 Summary of the
2004 Aug 23
3
newb question regarding DTMF
Hello all - I'm just starting to play around w/ asterisk, and I've run into a seemingly simple problem that has really manged to frustrate me... I'm running the latest cvs version of *, and am trying to dial in to the default extention 1000 demo using x-lite. I can dial and hear the greeting no problem, but when I try and send any DTMF tones, I don't get any response. Is there
2005 Mar 22
2
Help please for newb on Asterisk to Vonage
I just installed Asterisk on my server and I have Vonage softphone. I need my Asterisk server to receive calls through the Vonage Softphone DID and make outgoing calls through the Vonage ATA using an X100p to connect to it. Can someone help me out on configuring this? I really need this for my business and would greatly appreciate the help.
2009 Jan 19
5
Really want to dump microsoft....but have to run Photoshop
I am a rank newb at this and I appologize, I would have dumped MS long ago but I am not any kind of a coder, so having to write scripts and such is out for me. I really want to dump everything microsoft.....but I have to be able to run Adobe Photoshop 7 and CS4......why do I keep PS7...because I can't get a lot of the plug-ins I use for any thing above 7 and a lot of the ones I can I have to
2006 May 30
16
Is Rails a good place to start for a newb to the database
Is Rails a good place to start for a newb to the database world ?? I need to make a database that is searchable with multiple filters that can be turned on and off at a moments notice kinda like java xhtml dynamic loading.. I have not worked with php or mysql much more than basic scripts running and website defaults. so I am new to the racket and want to pick something that is robust and
2010 Jun 22
3
Duplicate dates in zoo objects
Hello, I have a zoo time series read from an excel file which has some dates the same, such as the following example: 02/10/1995 4925.5 30/10/1995 4915.9 23/01/1996 4963.5 23/01/1996 5009.2 04/03/1996 5031.9 # here 04/03/1996 5006.5 # here 03/04/1996 5069.2 03/05/1996 5103.7 31/05/1996 5107.1 01/07/1996 5153.1 02/08/1996 5151.7 Is there a
2012 Feb 17
6
convert zoo object to "standard" R object so I can plot and output to csv file
Another newbie question I got the 1 minute spine interpolation and 15 mean aggregation working with many thanks to Gabor Grothendieck using Zoo functions. I got a tip from Hasan Diwan to look at xts but it seemed I would make better progress using code from Gabor. Now I'm having trouble plotting this zoo object. I'm thinking I want a function to "split" the zoo object back to
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 Apr 04
2
Trying to merge new data set to bottom of old data set. Both are zoo objects.
Here is the data I'm working with: http://r.789695.n4.nabble.com/file/n4530888/new.txt new.txt http://r.789695.n4.nabble.com/file/n4530888/old.txt old.txt My code is here: http://pastebin.com/9jjs6Ahr I'm looking for away to simply attach the new.txt to the bottom of old.txt through R, else I'll just throw it in Excel to do some preprocessing. I've looked into using merge,
2006 Aug 08
11
Newb question- method not working
I know this shouldn''t be in the view but to test the code it is. Anyway if I do just session[user] I get back the user id (the id from the user table) which is good. However this code does not work. <% a = session[:user] %> <% uname = User.find(:first, :conditions => id = a) %> <%= @uname %> TIA Stuart
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 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
2010 Jan 26
0
newb question: chron and hist()
Hi all, I'm just getting started in R so bear with my newbness. I am trying to create a very simple histogram of logins by time, with data coming in from a MYSQL query. the raw data looks like this: "id" "user_id" "experience_given" "created_at" "ip_aton" "1" XXXXXXX 2445626 0 "2010-01-21 00:00:01" 1123632036 "2"