Re: [R] paste() turns list element character vector into deparsed expression. Why?

2020-11-09 Thread Ege Rubak
> general structure as the input, with non-character components coerced > to character. And if that's not possible because there is no good > character representation (e.g. if its a closure) than it should > return an error. > > > Cheers, > Boris > > >

Re: [R] paste() turns list element character vector into deparsed expression. Why?

2020-11-09 Thread Ege Rubak
I think `paste()` just calls `as.character()` on each input argument and then collapses things afterwards. Calling `as.character()` on the first input argument generates exactly the output you show (and didn't expect) and there is nothing to collapse. So changing `collapse = ""` to anything else do

Re: [R] Help with spTransform() function and final plot colors

2020-05-18 Thread Ege Rubak
st=chc.dis) > str(xy@data) > view(xy@data) > > # Plot results > plot(xy, col=factor(xy@data$Clust), pch=19) > box(col="black") > title(main="Clustering") > legend("topleft", legend=paste("Cluster", 1:3,sep=""),#Change fro

Re: [R] Help with R-Markdown please

2020-05-12 Thread Ege Rubak
1.1 > } > (InvalidDestinationHost "") > Error: pandoc document conversion failed with error 61 > Execution halted > > WHP > > > Proprietary > > NOTICE TO RECIPIENT OF INFORMATION:\ This e-mail may > con...{{dropped:16}} > >

Re: [R] Possible bug in optimize (related to naming the arguments)

2020-05-07 Thread Ege Rubak
> > Best regards > S�ren > > > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the post

Re: [R] how to create a new column from two columns with conditions

2020-04-29 Thread Ege Rubak
1 > > 5: fam1009 G1009 2 1 2 > > 6: fam1052 G1052 1 1 1 > > ... > > > > Thanks > > Ana > > ... > > > > __ > > R-help@r-project.org mailing list -- T

Re: [R] [FORGED] Re: pair correlation function of 3D points

2020-04-29 Thread Ege Rubak
ey will reply later are low. > Also, I've found a bias on this forum, with few replies to > physics-related questions. > > Personally, I like physicists, one of the most under-valued > professions on the planet. > > > I found the pcf function via Googling the subject. > &

Re: [R] [FORGED] Re: pair correlation function of 3D points

2020-04-29 Thread Ege Rubak
is not sufficient. > Descriptions of function arguments and return values should be clear. > > But here's a bigger problem. > The documentation says the pcf function is a generic, but the pcf3est > function isn't a method. > And the pcf documentation (along with the thre