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 glanc
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 <- sapply(
> 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
> measure
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 f
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 : Fa
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 a
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(.) %>%
group_by(Pr
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:
# $ Submitted_Charge:
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
this
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 f
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 hav
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 wa
> 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 sou
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
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 se
> 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 wrote:
20 matches
Mail list logo