Displaying 3 results from an estimated 3 matches for "mysamplexy".
Did you mean:
mysample
2017 Aug 19
4
My very first loop!! I failed. May I have some start-up aid?
...nctions 3 times. (In real life more often.) How
do I do that?
library(adehabitatHR)
library(rgdal)
mysample <- myframe[sample(1:nrow(myframe), 3,replace=FALSE),]
mysample
mysampletime <- as.POSIXct (strptime(as.character(mysample$Timestamp),
"%d.%m.%Y %H:%M"), tz="GMT")
mysamplexy <- project (cbind (mysample$Longitude, mysample$Latitude),
"+proj=utm +zone=32 +ellps=WGS84")
colnames(mysamplexy) <- c ("xCord", "yCord")
ID <- mysample$ID
datltraj <- as.ltraj(mysamplexy, mysampletime, id=ID)
Ddat <- BRB.D(datltraj, Tmax=21600, Lmin=3...
2017 Aug 19
0
My very first loop!! I failed. May I have some start-up aid?
...result <- matrix( NA, nrow = 16, ncol = N )
for ( i in seq.int( N ) ) {
mysample <- myframe[ sample( seq_along( myframe[[ 1 ]] )
, 3
, replace=FALSE
)
,
]
mysamplexy <- project( as.matrix( mysample[ , c( "Longitude"
, "Latitude"
)
]
)
, &...
2017 Aug 19
0
My very first loop!! I failed. May I have some start-up aid?
...this is a script, require
returns boolean, whereas library raises an exception.
mysample <- myframe[sample(1:nrow(myframe), 3,replace=FALSE),]
> mysample
> mysampletime <- as.POSIXct (strptime(as.character(mysample$Timestamp),
> "%d.%m.%Y %H:%M"), tz="GMT")
> mysamplexy <- project (cbind (mysample$Longitude, mysample$Latitude),
> "+proj=utm +zone=32 +ellps=WGS84")
> colnames(mysamplexy) <- c ("xCord", "yCord")
> ID <- mysample$ID
> datltraj <- as.ltraj(mysamplexy, mysampletime, id=ID)
> Ddat <- BRB.D(datl...