[R] problem with duplicated function

2015-05-24 Thread Curtis Burkhalter
897 *720896 266 Sage -111.044 41.7109* 699954 699953 282 Sage -111.043 41.7767 700636 700635 255 Sage -111.043 41.7653 700772 700771 287 Sage -111.043 41.7631 705665 705664 280 Sage -111.043 41.7495 If anyone has any suggestions as to where I might be going wrong I'd greatl

Re: [R] problem applying the same function twice

2015-03-12 Thread Curtis Burkhalter
bird 12 48 > 3 bird 13 36 > 4 bird 21 20 > 5 bird 22 34 > 6 bird 23 34 > 7 cat 1 1 46 > 8 cat 12 33 &g

Re: [R] problem applying the same function twice

2015-03-10 Thread Curtis Burkhalter
e method will work with any > number. > Reading ?merge might help you understand. > > Sarah > > On Tue, Mar 10, 2015 at 5:35 PM, Curtis Burkhalter > wrote: > > > > Thanks Sarah, one of my column names was missing a letter so it was > throwing > > things off.

Re: [R] problem applying the same function twice

2015-03-10 Thread Curtis Burkhalter
example I named the columns. > > Make sure that the names are identical! > > > On Tue, Mar 10, 2015 at 4:57 PM, Curtis Burkhalter > wrote: > > Sarah, > > > > I have 669 sites and each site has 7 years of data, so if I'm thinking > > correctly then the

Re: [R] problem applying the same function twice

2015-03-10 Thread Curtis Burkhalter
add? > > On Tue, Mar 10, 2015 at 4:35 PM, Curtis Burkhalter > wrote: > > Sarah, > > > > This strategy works great for this small dataset, but when I attempt your > > method with my data set I reach the maximum allowable memory allocation > and > > the opera

Re: [R] problem applying the same function twice

2015-03-10 Thread Curtis Burkhalter
columns > then makes x either a list or a matrix but never a data.frame. > Those features of apply may mess up the rest of your calculations. > > Don't use apply(). > > > Bill Dunlap > TIBCO Software > wdunlap tibco.com > > On Tue, Mar 10, 2015 at 12:43

[R] problem applying the same function twice

2015-03-10 Thread Curtis Burkhalter
1 25 10 dog 2 35 11 dog 2 18 12 dog 2 11 13 cat 1 46 14 cat 1 33 15 cat 1 48 16 cat 2 21 17 cat 2 18 cat

Re: [R] problem with function that adds rows to dataframe based on conditional statement

2015-03-06 Thread Curtis Burkhalter
alMass=rep(NA,nExpectedRows-nrow(comAn))) > > comAn = rbind(comAn,newDf) > > > > On Thu, 2015-03-05 at 13:41 -0700, Curtis Burkhalter wrote: > > Hello everyone, > > > > I'm having a problem with a function that I wrote that is supposed to > add a > > r

Re: [R] problem with function that adds rows to dataframe based on conditional statement

2015-03-06 Thread Curtis Burkhalter
; > > -Original Message- > > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Curtis > > Burkhalter > > Sent: Thursday, March 05, 2015 9:42 PM > > To: r-help@r-project.org > > Subject: [R] problem with function that adds rows to dataframe

[R] problem with function that adds rows to dataframe based on conditional statement

2015-03-05 Thread Curtis Burkhalter
49 6 dog 1 23 7 dog 2 13 8 dog 2 38 9 cat 1 42 10 cat 1 15 11 cat 2 33 12 NA NA NA Am I conditioning improperly within the function or am I missing s

Re: [R] sampling dataframe based upon number of record occurrences

2015-03-04 Thread Curtis Burkhalter
d))),] > } > > Now take the samples and combine them into a single data frame: > > sample <- do.call(rbind, lapply(dta.list, smp)) > sample > > --------- > David L Carlson > Department of Anthropology > Texas A&M University > Colle

[R] sampling dataframe based upon number of record occurrences

2015-03-03 Thread Curtis Burkhalter
2010 45.40 A-Bark Corral East 2010 Thanks -- Curtis Burkhalter https://sites.google.com/site/curtisburkhalter/ [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see http

Re: [R] problem with MLE estimation using Kalman filter

2013-10-16 Thread Curtis Burkhalter
Thanks Duncan and Ingmar, everything is all good now. Best On Wed, Oct 16, 2013 at 3:12 PM, Duncan Murdoch wrote: > On 16/10/2013 2:57 PM, Curtis Burkhalter wrote: > >> Thanks, that always gets me for some reason. Now when I run it though I >> get an error message at the ve

Re: [R] problem with MLE estimation using Kalman filter

2013-10-16 Thread Curtis Burkhalter
I don't define a function with that name either. Thanks On Wed, Oct 16, 2013 at 2:38 PM, Ingmar Visser wrote: > On Wed, Oct 16, 2013 at 8:30 PM, Curtis Burkhalter > wrote: > > I try to use the mle2 function written for R. The error message states > > that the argument

[R] problem with MLE estimation using Kalman filter

2013-10-16 Thread Curtis Burkhalter
Hello, I've recently run into a problem when trying to do some MLE parameter estimation in R using a non-linear Kalman filter. I've written some of the functions myself and everything seems to be working fine until the end when I try to use the mle2 function written for R. The error message stat

Re: [R] Problem with nested for-loop

2013-03-26 Thread Curtis Burkhalter
; > Jean > > P.S. You should cc rhelp on all correspondence, so other folks can see > the messages unfold. > > > > On Tue, Mar 26, 2013 at 8:41 AM, Curtis Burkhalter < > curtisburkhal...@gmail.com> wrote: > >> Hey Jean, >> >> Sorry for not includ

[R] Problem with nested for-loop

2013-03-25 Thread Curtis Burkhalter
Hello, I'm working on a problem using nested for-loops and I don't know if it's a problem with the order of the loops or something within the loop so any help with the problem would be appreciated. To briefly set up the problem. I have 259 trees (from 11 different species, of unequal count for e

[R] problem creating an array

2012-09-13 Thread Curtis Burkhalter
umns of landmat(dim:1000x603) # into 201 separate 1000x3 matrices dims=c(1000,3,201) n=1 landscape=array(dim=dims) for (i in 1:201) { landscape[i]=landmat[ ,c(n,n+1,n+2)] n=n+3 } -- Curtis Burkhalter [[alternative HTML version deleted]] _

[R] replacing values of matrix with random values of another dataframe

2012-06-11 Thread Curtis Burkhalter
])) } #replace all search strategies of value "1" within matrix "search_strat_good" #with a random value from dataframe "m_good_D1" bengood1=ifelse(search_strat_good==1,sample(m_good_D1,replace=F),search_strat_good) Any help would be greatly