Displaying 2 results from an estimated 2 matches for "keyfun".
Did you mean:
keybuf
2010 Oct 13
2
list comprehension to create an arbitrary-sized list with arbitrary names/values
In python, one can do this
mydict = dict([(keyfun(x), valfun(x)) for x in mylist])
to create a dictionary with whatever keys and values we want from an
input list of arbitrary size. In R, I want to similarly create a list
with names/values that are generated by some keyfun and valfun
(assuming that keyfun is guaranteed to return something suitabl...
2011 Dec 01
0
Error message: object 'A' not found
I ran the following code:
And I run into problems with the last line of code (when it says
hn<-......). I keep getting an error code: Error in distsamp(~hab ~ 1,
peldist, keyfun = "halfnorm", output = "density", :
object 'A' not found
I would appreciate any and all help.
rm(list=ls(all=TRUE)) #clear the computer's
memory of variables
setwd("E:\\Analysis")
# Part 1
library(unmarked)...