Displaying 10 results from an estimated 10 matches similar to: "Heroku, needs constant AppController updates?"
2011 Apr 08
0
eventbright gem
Hi,
I am using eventbright gem for getting the event brite events.
I am doing like as follows:-
EventBright.setup(api_key)
res= EventBright.call("event_search", {:latitude=>37.3229978,
:longitude=>-122.0321823})
puts res.inspect
I am getting the response as the HTTPARTY object.
Can anyone tell me how can I parse the response?
Also, I think I am missing something during
2018 May 01
2
how can I convert a long to wide matrix?
Hi Jim,
The data set is correct. I took two readings from the "SITE A" within a
short time interval, therefore I want to take the first value if there are
repeated within a same group of "timeGroup".
Therefore I wanted following
FinalData1
B1 B2
id_X "A" "B"
id_Y "A" "B"
thanks,
On Tue, May 1, 2018 at 4:05 PM, Jim
2018 May 01
0
how can I convert a long to wide matrix?
Hi Marna,
This is a condition that the function cannot handle. It would be
possible to reformat the result based on the time intervals, but the
stretch_df function doesn't try to interpret the values, just
stretches them out to a wide format.
Jim
On Wed, May 2, 2018 at 9:16 AM, Marna Wagley <marna.wagley at gmail.com> wrote:
> Hi Jim,
> The data set is correct. I took two
2018 May 01
2
how can I convert a long to wide matrix?
Hi Jim,
Thank you very much for your suggestions. I used it but it gave me three
sites. But actually I do have only two sites "Id_X" and "Id_y" . In fact
"A" is repeated two times for "Id_X". If it is repeated, I would like to
take the first one among many repeated values.
dat<-structure(list(ID = structure(c(1L, 1L, 1L, 2L, 2L), .Label =
2018 May 01
2
how can I convert a long to wide matrix?
Hi R user,
I was trying to convert a long matrix to wide? I have an example and would
like to get a table (FinalData1):
FinalData1
B1 B2
id_X "A" "B"
id_Y "A" "B"
but I got the following table using the following code.
FinalData1
B1 B2
id_X "A" "A"
id_Y "A" "B"
the code and the
2018 May 01
0
how can I convert a long to wide matrix?
Hi Marna,
Try this:
library(prettyR)
stretch_df(dat,idvar="ID",to.stretch=c("EventDate","SITE"))
Jim
On Wed, May 2, 2018 at 8:24 AM, Marna Wagley <marna.wagley at gmail.com> wrote:
> Hi R user,
> I was trying to convert a long matrix to wide? I have an example and would
> like to get a table (FinalData1):
>
>
> FinalData1
> B1
2018 May 01
0
how can I convert a long to wide matrix?
Hi Marna,
I think this is due to having three rows for id_X and only two for
id_Y. The function creates a data frame with enough columns to hold
the greatest number of values for each ID variable. Notice that the
SITE_n columns contain three values for id_X (A, A, B) and two for
id_Y (A, B, NA) as there was no third occasion of measurement for the
latter. Even though there are only two _values_
2008 May 12
1
help with calculating the differences between dates
Dear list,
How can I calculate the difference in days between the eventdate and basedate in the below dataset?
id basedate outcome.3 eventdate daydiff
1 1001 1999-09-28 2 1999-10-01 3
2 1002 1999-09-22 1
3 1003 2000-01-19 1
4 1004 2004-01-25 2 2004-02-03 9
5 1005 2005-08-11 1
6 1006 2000-07-04
2008 Dec 06
1
find with add of an atttributes
I have wrote this:
EventDate.find(:all,
:include => [:container,{:event =>
[:photo,:event_type_names]},{:place=>:location}],
:joins =>" RIGHT JOIN (SELECT
event_dates.id,date_add(event_dates.date, INTERVAL i DAY ) AS date
FROM (select 0 as i union all select 0 union all select 1
union all select 2) as integers CROSS JOIN event_dates
2006 Mar 18
1
Date formatting and adding question
Hey all,
I''m working on a site for a client that has a scedule im trying to
display that pulls the next events for the upcoming Sunday from a MySQL
table....The table stores the event date as mm/dd/yyyy. I''ve tried to
think of everyway possible to get this thing to change after every
sunday to show the next sunday''s events, but I end up doing it
manually...
Is it