Dear List,
I hope this posting is not redundant. I have several list outputs with the
same components. I ran a function with three different scenarios below
(e.g., scen1, scen2, and scen3,...,scenN). I would like to extract the
same components and group them as a data frame. For example,
pop.i
list))
> gc()
>
> # check results
> identical(df1, df2)
> identical(df1, df3)
>
>
>
> Of course for small datasets, one should use the built-in and safe
> functions (either do.call or as.data.frame). BTW, for the original
> three-element list, these are eve
Hi R-users,
I hope this is not redundant questions. I tried to search similar threads
relevant to my questions but could not find. Any input would be greatly
appreciated.
I want to generate grid with binary values (1 or 0) in n1 by n2 (e.g., 100
by 100 or 200 by 500, etc.) given proportions of
t, as in:
>
> https://www.researchgate.net/publication/43279659_Behavior_of_Vegetation_Sampling_Methods_in_the_Presence_of_Spatial_Autocorrelation
>
> If you need more detail, I can dig up the code.
>
> Sarah
>
> On Wed, Sep 9, 2015 at 8:49 AM, SH wrote:
> > Hi R-users
))
> image(random.landscape.250, main="250", sub=paste("abun =", abun),
> xaxt="n", yaxt="n", bty="n", xlim=c(0,dim1), ylim=c(0, dim2),
> col=c("lightgray", "darkblue"))
>
> ###
Dear R users,
I am trying to simulate surveys and the survey result will be used to
determine the population to be "accepted" or "rejected". With the results,
I would like to calculate cumulative means and plot them to see if a
converged value is as expected. Below is R-code I generated. I need
[i]] <- sim.f(p.s=.05, N=1000, sample.size=69, n.sim=500)
> }
>
> Jean
>
> On Fri, Sep 18, 2015 at 2:27 PM, SH wrote:
>
>> Dear R users,
>>
>> I am trying to simulate surveys and the survey result will be used to
>> determine the population to be "
Hi
Although I posted this in stackoverflow yesterday, I am asking here to get
helps as soon as quickly.
I need help make code for mocking sampling environment. Here is my code
below:
First, I generated mock units with 1000 groups of 100 units. Each row is
considered as independent sample space.
> 0 pass
> 3 reject
> 3 reject
> 2 reject
> 2 reject
> 1 reject
> 1 reject
> 2 reject
> 2 reject",
> header=TRUE,stringsAsFactors=FALSE)
> passes<-which(result$intercept == 0)
> skips<
s skip skip
#15 2 reject skip skip
#16 1 rejectreject reject
#17 0 pass pass pass
#18 3 reject skip skip
#19 0 pass skip skip
#20 2 reject
orted it into R.
Since there was no errors in importing the file into R, I do not have an
idea where to start to fix it. Do you have any suggestion?
Thank you very much in advance,
SH
[[alternative HTML version deleted]]
__
R-help@r-project.o
problem into a
> reproducible example, with fake data if necessary. Otherwise you're
> limited by the ability of the list to guess what you're looking at,
> and our track record with that is spotty.
>
>
> Sarah
>
> On Wed, Aug 21, 2013 at 10:35 AM, SH wrote:
> >
', space, some wired characters in the middle of names,
etc.). I can send you sample data if you are willing to take a look. Even
though using 'read.delim' works, I am still curious what caused the problem
and potential problem that I may miss.
Thanks again,
SH
On Wed, Aug
Dear list:
I would like to extract three letters from first and second elements
in one column and make a new column.
For example below,
> tempdf = read.table("clipboard", header=T, sep='\t')
> tempdf
name var1 var2abb
1 Tom Cruiser16 TomCru
2 Bread Pett2
Thanks for replying,
Steve
On Wed, Mar 13, 2013 at 10:10 AM, Jorge I Velez
wrote:
> Dear SH,
>
> Hmmm... what about
>
> substr(tempdf$name, 4, 6))
>
> ?
>
> HTH,
> Jorge.-
>
>
> On Thu, Mar 14, 2013 at 1:06 AM, SH wrote:
>>
>> Dear list:
>>
'name'.
Thanks,
Steve
On Wed, Mar 13, 2013 at 10:17 AM, Jorge I Velez
wrote:
> Try
>
> substr(tempdf$abb 4, 6)
>
> --JIV
>
>
>
> On Thu, Mar 14, 2013 at 1:15 AM, SH wrote:
>>
>> Dear Jorge,
>>
>> I gave me this result (b
], 1, 3), substr(r[2],
> 1, 3)))
> [1] "TomCru" "BrePet" "ArnSch"
>
> HTH,
> Jorge.-
>
>
> On Thu, Mar 14, 2013 at 1:21 AM, SH wrote:
>>
>> What I want to do is to extrac three letters from first and last name
>> and to com
e")
> [1] "TomCru"
>
> Regards,
>
> Marc Schwartz
>
>
> On Mar 13, 2013, at 9:21 AM, SH wrote:
>
>> What I want to do is to extrac three letters from first and last name
>> and to combine them to make another column 'abb'. The column
Dear list:
Can I use simple linear regression when I have proportion data for
both dependent and independent variables? Or, should I use beta
regression analysis? Or any suggestion?
Thanks!
SH
__
R-help@r-project.org mailing list
https
Very useful comment and helpful website! Many thanks to you!!!
SH
On Fri, Nov 16, 2012 at 5:16 PM, Ben Bolker wrote:
> SH gmail.com> writes:
>
>>
>> Dear list:
>>
>> Can I use simple linear regression when I have proportion data for
>> both dependent a
20 matches
Mail list logo