Displaying 20 results from an estimated 3000 matches similar to: "track on boats"
2008 May 23
1
Create a data subset
Hello,
I want to select same data of a data frame that has information of fish
catches:
catch, vessel, trip, day, month, year
where trip is the fishing operation number done in each day by each vessel,
i.e. for each day, any vesel can have several register of catch
corresponding to each operation.
>From this data frame I want to do:
1. Add the catches of all trip by vessel and day; then
2012 Nov 03
1
Violin plot of categorical/binned data
Hi,
I'm trying to create a plot showing the density distribution of some
shipping data. I like the look of violin plots, but my data is not
continuous but rather binned and I want to make sure its binned nature (not
smooth) is apparent in the final plot. So for example, I have the number of
individuals per vessel, but rather than having the actual number of
individuals I have data in the
2004 May 20
1
mixed models for analyzing survey data with unequal selec tion probability
Han-Lin
I don't think I have seen a reply so I will suggest that maybe you could try
a different approach than what you are thinking about doing. I believe the
current best practice is to use the weights as a covariate in a regression
model - and bytheway - the weights are the inverse of the probabilities of
selection - not the probabilities.
Fundamentally, there is a difficulty in making
2014 Jun 04
2
error de incompatible methods
Hola Daniel, si perdona di a responder directamente y no me di cuenta.
Ya se donde esta el error, pero queria preguntar si a puede ser que mi R
funcione mal o algo porque esta manhana ejecute mi script y funciono
perfectamente y ahora volvi a ejecutarlo y me volvio a dar el mismo
problema de ayer , despues de reiniciar y demas el tinnR y el R, no se si
me vacila o es que tengo algo mal en
2012 Dec 13
2
abline of an lm fit not correct
Hello fellow
R-users,
I’m stuck
with something i think is pretty stupid, but i can’t find out where i’m wrong,
and it’s turning me crazy!
I am doing
a very simple linear regression with Northing/Easting data, then I plot the
data as well as the regression line :
> plot(x=Dataset$EASTING,
y=Dataset$NORTHING)
> fit <- lm(formula = NORTHING ~ EASTING,
data = Dataset)
> abline(fit)
2014 Jun 03
3
error de incompatible methods
Hola!!
Estoy intentando ejecutar un script com horas, al principio ejecute estos
comandos
DBx$Date<-strptime(DBx$Date, "%d-%m-%Y") ###Monicap use ; other
use Y
DBx$Year<-as.POSIXlt(DBx$Date)$year+1900
if(filename!="monicap_50.csv") {DBx$Time<-paste(DBx$Time, ":00", sep="")}
Pero me daba el error de que mi base de datos tenia las
2010 Feb 26
1
RODBC looping sql script
Dear R users,
I am querying an Oracle database using sqlQuery() from the RODBC
package. What I would like to do is embed my R Sql query in a for loop.
For example
suppose the data.frame "vessel" contains two columns: vessel[,1]= vessel
id and vessel[,2]=permit year
I am using "vessel" as an input in a SQL based function that require
inputs of permit year and vessel id
2007 Jul 10
2
Plot SpatialLinesDataFrame with xlim & ylim
I'm running windows xp, R 2.3.1 with maptools 0.6-6, I guess.
When plotting from a large SpatialLinesDataFrame and using xlim & ylim to reduce the area, the plot axes automatically have the same scale size, even if xlim and ylim ranges differ.
E.g.:
tmp <- readShapeLines(filepath)
plot(tmp,xlim=c(-126,-119),ylim=c(50,51))
The y-axis range is actually 47-54, same range as the x-axis.
2020 Oct 20
1
sp:gIntersection warning message about projection
Hi,
I am using in my workflow gIntersection from sp package. Part of my
relevant sessionInfo is:
R version 4.0.3 (2020-10-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17763)
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] CircStats_0.2-6 boot_1.3-25 MASS_7.3-53 stringr_1.4.0
2005 Dec 19
1
How to draw partial grid in plot for spatial-binomial experiment?
DeaR comRades:
I have a 2D spatial binomial process as shown in the data and code below.
I am plotting the number of trials and the number of successes in the spatial
binomial experiments and would like to draw the spatial cells were the trials
and successes were counted, i.e. a partial grid in the plot only for those
cells where there is a number. The cells are 2x2 km cells. The count of
Trials
2012 Oct 25
5
trying ti use a function in aggregate
Hi -I am using R v 2.13.0. I am trying to use the aggregate function to
calculate the percent at length for each Trip_id and CommonName. Here is a
small subset of the data.
Trip_id Vessel CommonName Length Count
1 230 Sunlight Shad,American 19 1
2 230 Sunlight Shad,American 20 1
3 230 Sunlight Shad,American 21
2002 May 03
1
copy or save of plots (PR#1507)
On Fri, 3 May 2002 drew.tyre@csiro.au wrote:
> Full_Name: Drew Tyre
> Version: 1.4.0
> OS: Win 2000
> Submission from: (NULL) (140.253.74.225)
>
>
> When creating a rather complex plot, the resulting figures 'shrink' when either
> copied to the clipboard or saved as a metafile using the GUI menu. Also saving
> as postscript or pdf causes the same problem, as
2005 Mar 01
4
write a library under 2.0.1 version
Hi there,
I had written a library under R 1.9.0 and now I would like to import that
library under R 2.0.1
Apparently it does not work; I can install the package, but when I try to
read it the error is the following:
Error in library(compvar) : 'compvar' is not a valid package -- installed
< 2.0.0
I have checked other libraries in R 2.0.1 and I noticed that there is a
new folders
2014 May 29
5
ayuda con "unexpected symbol"
Hola,
Tengo la version R 3.1, estoy intentado usar este script pero me dice que
el simbolo " no tiene que estar ahi, ya intente borrando comillas o
diferentes formas y no lo consigo, si alguien sabe agradezco ayuda.
setwd("C:/users/marta/desktop/DB")
library(chron)
library(xlsx)
filename<-"univerest_50.csv"
filename<-"monicap_50.csv"
2012 Feb 23
1
using shapefiles in adehabitat/ converting shapefile to spatial pixel data frame
Hello
I wonder if anybody can help,
I am using the package adehabitatHR to estimate the potential distribution of a species using the command "domain"
In the example given in the AdehabitatHS manual a map containing elevation information is loaded (class= spatial pixels data frame) as well as the GPS points of the animals being tracked, these are then plotted on each other and
2012 May 25
4
Problem sourcing file
Hi all,
I created a file to define some functions. When I try to source this file,
sometimes it works but sometimes I get the following error:
>Source(‘File.R’)
Error in srcfilecopy(filename, lines, file.info(filename)[1, "mtime"]) :
unused argument(s) (file.info(filename)[1, "mtime"])
It works when I just started the R session, but after using some
2006 Jan 19
2
function kde2d
Good evening,
I am Marta Colombo, student at Milan's Politecnico.
Thank you very much for your kindness, this mailing list is really useful.
I am using the function kde2d for two-dimensional kernel density estimation and I'd like to know something more about this kind of density estimator. In particular I'd like to know: what bandwidth is used ?
Thank you in advance for your attention
2014 Jan 30
2
objecto ggplot
Para este ejemplo especifico:
Deseo saber si tmp genera un objecto ggplot
> tmp <- ggplot(mtcars, aes(x = hp, y=mpg)) + geom_point()
El objecto o variable tmp, devuelve una lista y un gráfico, la clase dice
ser ggplot,
>class(tmp)
[1] "gg" "ggplot"
> typeof(tmp)
[1] "list"
El 30 de enero de 2014, 13:00, daniel
2014 Jan 30
2
objecto ggplot
Carlos,
mi intencion es entender el codigo:
https://github.com/woobe/blenditbayes/blob/master/2013-06-street-level-crime/analysis.R
Para luego hacer mi trabajo, algo similar a esto, pero adaptado a mi región.
Si te fijas en las lineas 141-161, esta esto:
## Convert the base map into a ggplot object
## All added Cartesian coordinates to enable more geom options later on
map.ggmap <-
2006 Sep 01
1
core dump with point.in.polygon
I've been trying to get some code to run on a 64-bit FreeBSD machine running
R : Copyright 2006, The R Foundation for Statistical Computing
Version 2.3.0 (2006-04-24)
ISBN 3-900051-07-0
and keep getting a core dump with the following results:
*** caught segfault ***
address 0x0, cause 'unknown'
Traceback:
1: .Call("R_point_in_polygon_sp", as.numeric(point.x),