search for: site_1

Displaying 12 results from an estimated 12 matches for "site_1".

Did you mean: site1
2018 Feb 21
7
alternative for multiple if_else statements
...e if_else statement for 2015. Also noticed, that for the second code, which spans the years 2007-2016 (less 2015), if a participants entries start from 2010-2016, the code fails. Kindly assist in figuring this out...or better yet, an alternative. trialData <- structure(list(study = c("site_1", "site_1", "site_1", "site_1", "site_1", "site_1", "site_1", "site_1", "site_1", "site_1", "site_1", "site_1", "site_1", "site_1", "site_1", "site_1...
2018 Feb 22
0
alternative for multiple if_else statements
...t for 2015. Also noticed, that for the second code, which spans the years 2007-2016 (less 2015), if a participants entries start from 2010-2016, the code fails. > > Kindly assist in figuring this out...or better yet, an alternative. > > trialData <- structure(list(study = c("site_1", "site_1", "site_1", "site_1", > "site_1", "site_1", "site_1", "site_1", "site_1", "site_1", "site_1", > "site_1", "site_1", "site_1", "site_1", &q...
2018 Feb 26
0
alternative for multiple if_else statements
...Also noticed, that for the second code, which spans the > years 2007-2016 (less 2015), if a participants entries start from 2010-2016, the > code fails. > > Kindly assist in figuring this out...or better yet, an alternative. > > trialData <- structure(list(study = c("site_1", "site_1", "site_1", "site_1", > "site_1", "site_1", "site_1", "site_1", "site_1", "site_1", "site_1", "site_1", > "site_1", "site_1", "site_1", &q...
2018 Feb 22
0
alternative for multiple if_else statements
...ou are facing. My guess is that you have an error in your intuition and/or logic, and that this relates to the use of the subscript [1]. Specifically, on the full dataset, the condition trialData$date[trialData$survey_start == "Y" & trialData$year == 2013 & trialData$site == "site_1"] yields 412 matches, of which there are 9 unique ones, specifically April 2,3,4,5,8,10,11,16,17 In the full data set the first element that appears, i.e. subscript[1], is "2013-04-04". In the filtered data set the first element that appears is "2013-04-05". I hope tha...
2011 Mar 14
3
increase a value by each group?
Hi everybody. I'm looking for the way to increase the depth value in 0.01 for each index group. Easier to explain with this example: >my_data=read.table("clipboard", header=TRUE) Depth s_name index 3852 Site_1 144 3852 Site_1 144 3852 Site_1 144 3852 site_A 145 3852 site_A 145 3852 site_A 145 3852 site_A 145 3852 site_B 147 3852 site_B 147 3852 site_B 147 3852 site_B 147 54962 site_C 27 54962 site_C 27 54962 Site_D 217 54962 Site_D 217 54962 Site_D 217 54962 Site_D 217 I'm looking for something like...
2018 May 01
2
how can I convert a long to wide matrix?
...c("ID", "EventDate", "timeGroup", "SITE"), class = "data.frame", row.names = c(NA, -5L)) library(prettyR) stretch_df(dat,idvar="ID",to.stretch=c("EventDate","SITE")) ID timeGroup EventDate_1 EventDate_2 EventDate_3 SITE_1 SITE_2 SITE_3 1 id_X B1 9/8/16 9/9/16 9/15/17 A A B 2 id_Y B1 9/7/16 9/15/16 <NA> A B <NA> > Basically I am looking for like following table ID timeGroup EventDate_1 EventDate_2 EventDate_3 SITE_1 SITE_2 1 id_X...
2018 May 01
0
how can I convert a long to wide matrix?
..."timeGroup", "SITE"), class = "data.frame", row.names = c(NA, > > -5L)) > > library(prettyR) > > stretch_df(dat,idvar="ID",to.stretch=c("EventDate","SITE")) > > > ID timeGroup EventDate_1 EventDate_2 EventDate_3 SITE_1 SITE_2 SITE_3 > 1 id_X B1 9/8/16 9/9/16 9/15/17 A A B > 2 id_Y B1 9/7/16 9/15/16 <NA> A B <NA> >> > > Basically I am looking for like following table > > ID timeGroup EventDate_1 EventDate_2 E...
2006 Dec 07
6
Response To Form Submission Hanging
Hello, I am using Mechanize to post a form to a website. When I do this by hand in my browser the response takes about 35s to come back (it''s a long page full of tables and graphics). When I do this with Mechanize, the server starts to respond and then appears to hang. The obvious conclusion is that my code is wrong but I am reasonably sure that I haven''t altered it
2018 May 01
2
how can I convert a long to wide matrix?
..."data.frame", row.names = > c(NA, > > > > -5L)) > > > > library(prettyR) > > > > stretch_df(dat,idvar="ID",to.stretch=c("EventDate","SITE")) > > > > > > ID timeGroup EventDate_1 EventDate_2 EventDate_3 SITE_1 SITE_2 SITE_3 > > 1 id_X B1 9/8/16 9/9/16 9/15/17 A A B > > 2 id_Y B1 9/7/16 9/15/16 <NA> A B <NA> > >> > > > > Basically I am looking for like following table > > > > ID...
2018 May 01
0
how can I convert a long to wide matrix?
...> c(NA, >> > >> > -5L)) >> > >> > library(prettyR) >> > >> > stretch_df(dat,idvar="ID",to.stretch=c("EventDate","SITE")) >> > >> > >> > ID timeGroup EventDate_1 EventDate_2 EventDate_3 SITE_1 SITE_2 SITE_3 >> > 1 id_X B1 9/8/16 9/9/16 9/15/17 A A >> > B >> > 2 id_Y B1 9/7/16 9/15/16 <NA> A B >> > <NA> >> >> >> > >> > Basically I am looking for lik...
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
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