search for: mysampletim

Displaying 3 results from an estimated 3 matches for "mysampletim".

Did you mean: mysampletime
2017 Aug 19
4
My very first loop!! I failed. May I have some start-up aid?
...t;54.751") ) myframe # Now this is where my loop is supposed to start. In this example I want to run the following functions 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")...
2017 Aug 19
0
My very first loop!! I failed. May I have some start-up aid?
...y loaded #> Loaded GDAL runtime: GDAL 1.11.3, released 2015/09/16 #> Path to GDAL shared files: /usr/share/gdal/1.11 #> Loaded PROJ.4 runtime: Rel. 4.9.2, 08 September 2015, [PJ_VERSION: 492] #> Path to PROJ.4 shared files: (autodetected) #> Linking to sp version: 1.2-5 myframe$mysampletime <- as.POSIXct( myframe$Timestamp , format = "%d.%m.%Y %H:%M" , tz="GMT" ) set.seed( 42 ) N <- 3 result <- matrix( NA, nrow = 16, ncol = N ) for ( i in seq.int( N )...
2017 Aug 19
0
My very first loop!! I failed. May I have some start-up aid?
...often.) How do I > do that? > > library(adehabitatHR) > library(rgdal) > you should use require instead of library if 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", &...