This is possibly off topic now...
However, given that it involves mgcv, I think that it's relevant to R.
> to test if there is a change over the years on the amount of debris in
these locations and more specifically a change after the implementation of
a mitigation strategy
> My debris items per
> > My data has a few problems: (1) I think I will need to fix the effects
of
> > seasonal variation (Monthly) and (2) of possible spatial correlation
> > (probability of finding an item is higher after finding one since they
can
> > come from the same ship). (3) How do I handle the fact that the
On 30/04/2019 11:24 a.m., Jens Heumann wrote:
Hi,
`lm` won't take formula as a parameter when it is within a `sapply`; see
example below. Please, could anyone either point me to a syntax error or
confirm that this might be a bug?
I haven't looked carefully at your example. From a quick
If you read the data frame with read.csv() or one of the other read()
functions, use the asis=TRUE argument to prevent conversion to factors. If not
do the conversion first:
# Convert factors to characters
DataMatrix <- sapply(TF2list, as.character)
# Split the vector of hits
DataList <-
> My data has a few problems: (1) I think I will need to fix the effects of
> seasonal variation (Monthly) and (2) of possible spatial correlation
> (probability of finding an item is higher after finding one since they can
> come from the same ship). (3) How do I handle the fact that the
>
Hi Matthew,
Is this what you are trying to do?
mmdf<-read.table(text="Regulatorhits
AT1G69490AT4G31950,AT5G24110,AT1G26380,AT1G05675
AT2G55980AT2G85403,AT4G89223",header=TRUE,
stringsAsFactors=FALSE)
# split the second column at the commas
hitsplit<-strsplit(mmdf$hits,",")
# define a
Thanks for your reply. I was trying to simplify it a little, but must
have got it wrong. Here is the real dataframe, TF2list:
str(TF2list)
'data.frame': 152 obs. of 2 variables:
$ Regulator: Factor w/ 87 levels "AT1G02065","AT1G13960",..: 17 6 6 54
54 82 82 82 82 82 ...
$ hits :
Try using do.call
—
David
Sent from my iPhone
> On Apr 30, 2019, at 9:24 AM, Jens Heumann
> wrote:
>
> Hi,
>
> `lm` won't take formula as a parameter when it is within a `sapply`; see
> example below. Please, could anyone either point me to a syntax error or
> confirm that this might be
I neglected to copy this to the list:
I think we need more information. Can you give us the structure of the data
with str(YourDataFrame). Alternatively you could copy a small piece into your
email message by copying and pasting the results of the following code:
dput(head(YourDataFrame))
The
I have a data frame that is a lot bigger but for simplicity sake we can
say it looks like this:
Regulator hits
AT1G69490 AT4G31950,AT5G24110,AT1G26380,AT1G05675
AT2G55980 AT2G85403,AT4G89223
In other words:
data.frame : 2 obs. of 2 variables
$Regulator: Factor w/ 2 levels
$hits
I ran this routine but I was thinking there must be a more elegant way of doing
this.
#https://community.rstudio.com/t/how-to-average-mean-variables-in-r-based-on-the-level-of-another-variable-and-save-this-as-a-new-variable/8764/8
hcd2tmp2_summmary <- hcd2tmp2 %>%
select(.) %>%
Dear ESS users and developers,
when writing R code to manipulate an object or data frame column, I
often find myself retyping the expression on the left side of "<-" as
some argument for a function call or assignment on the right side of
"<-".
Here are two examples. Imagine your point is at
Muchas gracias, también a vos, Pedro.
Me guardo como referencia la función que me pasaste y los apuntes del
curso, porque creo que terminaré volcandome a CMYK en vez de RGB.
Por ahora, consigo unos colorines preciosos con la función rgb(x,y,z) que
me pasó Javier. Me ayudaron a descubrir una serie
Good afternoon.
#RStudio Version 1.1.456
sessionInfo()
#R version 3.5.3 (2019-03-11)
#Platform: x86_64-w64-mingw32/x64 (64-bit)
#Running under: Windows >= 8 x64 (build 9200)
#I have a DF of 8 columns and 14025 rows
str(hcd2tmp2)
# 'data.frame':14025 obs. of 8 variables:
# $
Hello guys this problem was never answered and I happened to come across
the same problem , kindly help. This is a simple R program that I have been
trying to run. I keep running into the "singular matrix" error. I end up
with no sensible results. Can anyone suggest any changes or a way around
Hi,
`lm` won't take formula as a parameter when it is within a `sapply`; see
example below. Please, could anyone either point me to a syntax error or
confirm that this might be a bug?
Best,
Jens
[Disclaimer: This is my first post here, following advice of how to
proceed with possible bugs
I have 0 expertise, but I suggest that you check out the SPatioTemporal
taskview on CRAN (or possibly others, like environmetrics). You might also
want to move this to the R-Sig-geo list,where you probably are more likely
to find relevant expertise.
Cheers,
Bert
Bert Gunter
"The trouble with
I have a dataset of marine debris items (number of items standardized per
effort: Items/(number of volunteers*Hours*Lenght)) taken from 2 main
locations (WA and Queensland) in Australia (8 Sub Sites in total: 4 in WA
and 4 in Queensland) at irregular sampling intervals over a period 15 years.
I
> Morgan Morgan
> on Mon, 29 Apr 2019 21:42:36 +0100 writes:
> Hi,
> I am using the R 3.6.0 on windows. The issue that I report below does not
> exist with previous version of R.
> In order to reproduce the error you must install a package of your choice
> from
Hello,
I have exactly the same problem when I install one of my own packages:
Error in tools:::.read_description(file) :
file 'DESCRIPTION' does not exist
Calls: suppressPackageStartupMessages ... withCallingHandlers ->
.getRequiredPackages -> ->
Exécution arrêtée
ERROR: lazy loading failed
Hola Juan, la verdad no acabo de entender bien lo que necesitas pero esto te
resultara util:
https://stackoverflow.com/questions/22352568/cmy-colour-function-in-r
cymk es un esquema de medida del color aplicado normalmente en impresion sobre
papel -hace referencia a las tintas de impresoras.
Buenas, soy nuevo en esto de R y me gustaria pedir ayuda acerca de un
ejercico y como exponerlo en R.
Se trata de crear un programa que devuelva los n primeros multiplos de m.
Agradezco cualquier tipo de ayuda, Muchas gracias!
[[alternative HTML version deleted]]
Hi,
I am using the R 3.6.0 on windows. The issue that I report below does not
exist with previous version of R.
In order to reproduce the error you must install a package of your choice
from source (tar.gz).
-Create a .Rprofile file with the following command in it : setwd("D:/")
-Close your R
> Duncan Murdoch
> on Mon, 29 Apr 2019 21:54:47 -0400 writes:
> On 29/04/2019 9:44 p.m., Rolf Turner wrote:
>>
>> On 30/04/19 1:31 PM, Duncan Murdoch wrote:
>>
>>> On 29/04/2019 9:25 p.m., Duncan Murdoch wrote:
On 29/04/2019 8:43 p.m., Rolf Turner
24 matches
Mail list logo