Hi!
If you have a Spatial Points Data Frame, you can use the following function
to create a grid:
create1 <- function(obj) {
# Function that creates a new_data object if one is missing
convex_hull = chull(coordinates(obj)[,1],coordinates(obj)[,2])
convex_hull = c(convex_hull, c
Don't start putting in extra commas and then reading this as csv. That approach
is broken. The correct approach is what Bill outlined: read everything with
readLines(), and then use a proper regular expression with strcapture().
You need to pre-process the object that readLines() gives you: rep
Very interesting. I'm sure I'll be trying to get rid of the byte order
mark eventually. But right now, I'm more worried about getting the
character vector into either a csv file or data.frame; that way, I can
be able to work with the data neatly tabulated into four columns:
date, time, person, comm
If byte order mark is the issue then you can specify the file encoding as
"UTF-8-BOM" and it won't show up in your data any more.
On May 17, 2019 12:12:17 PM PDT, William Dunlap via R-help
wrote:
>The pattern I gave worked for the lines that you originally showed from
>the
>data file ('a'), bef
On Fri, 17 May 2019 11:36:22 -0700
Michael Boulineau wrote:
> So, who knows what happened with the  at the beginning of [1]
> directly above.
perl -Mutf8 -MEncode=encode,decode -Mcharnames=:full \
-E'say charnames::viacode ord decode utf8 => encode latin1 => ""'
# ZERO WIDTH NO-BREAK SPA
The pattern I gave worked for the lines that you originally showed from the
data file ('a'), before you put commas into them. If the name is either of
the form "" or "***" then the "(<[^>]*>)" needs to be changed so
something like "(<[^>]*>|[*]{3})".
The " " at the start of the imported data m
This seemed to work:
> a <- readLines ("hangouts-conversation-6.csv.txt")
> b <- sub("^(.{10}) (.{8}) (<.+>) (.+$)", "\\1,\\2,\\3,\\4", a)
> b [1:84]
And the first 85 lines looks like this:
[83] "2016-06-28 21:02:28 *** Jane Doe started a video chat"
[84] "2016-06-28 21:12:43 *** John Doe ended
I fixed it by removing previous versions as suggested.
> sessionInfo()
R version 3.6.0 RC (2019-04-24 r76423)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 17134)
I will have to go out and get the non RC version now.
Thank you.
WHP
From: Marc Schwartz
Sent: Fr
Thank you Mark, I was unaware of the RC distinction and the multiple R version
issue.
Appreciate your help.
WHP
From: Marc Schwartz
Sent: Friday, May 17, 2019 2:14 PM
To: Bill Poling
Cc: R-help
Subject: Re: [R] Help understanding the relationship between R-3.6.0 and RStudio
> On May 17,
Thank you Jeff, I will review the Global Options.
WHP
From: Jeff Newmiller
Sent: Friday, May 17, 2019 2:12 PM
To: r-help@r-project.org; Bill Poling ; r-help
(r-help@r-project.org)
Subject: Re: [R] Help understanding the relationship between R-3.6.0 and RStudio
This is actually a question abo
> On May 17, 2019, at 2:02 PM, Bill Poling wrote:
>
> Hello.
>
> I do not think I have had this problem (assuming it is a problem) in the past.
>
> I downloaded and installed R3.6.0 which is indicted in the console when I
> open R itself.
>
> R version 3.6.0 RC (2019-04-24 r76423) -- "Plan
This is actually a question about RStudio, not R, so is technically off topic.
However, I think the answer to your question is in the Global Options (General)
configuration screen.
On May 17, 2019 11:02:05 AM PDT, Bill Poling wrote:
>Hello.
>
>I do not think I have had this problem (assuming i
Hello.
I do not think I have had this problem (assuming it is a problem) in the past.
I downloaded and installed R3.6.0 which is indicted in the console when I open
R itself.
R version 3.6.0 RC (2019-04-24 r76423) -- "Planting of a Tree"
Copyright (C) 2019 The R Foundation for Statistical Compu
Consider using readLines() and strcapture() for reading such a file. E.g.,
suppose readLines(files) produced a character vector like
x <- c("2016-10-21 10:35:36 What's your login",
"2016-10-21 10:56:29 John_Doe",
"2016-10-21 10:56:37 Admit#8242",
"October 23, 1819
how to create prediction grid like meuse grid
*Thanks & Regards*
*C Dineshkumar*
*Bsc Agriculture*
*M.Tech Remote Sensing and GIS*
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https:/
Hi all,
I'm trying to learn how to use xgboost. I'm working with the 2016 GSS dataset
(attached) and trying to determine what variables influence number of children.
I've successfully used this to teach myself GLMs, decision trees, and random
forests.
My problem is, I can't get the xgboost progr
On Thu, 16-May-2019 at 07:52PM -0400, Marc Schwartz wrote:
|>
|>
|> > On May 16, 2019, at 7:04 PM, Patrick Connolly
wrote:
|> >
[...]
|>
|>
|> Patrick,
|>
|> Are you explicitly calling postscript() in an R session to create the figure?
|>
|> If so, see the Details section of ?postscript
17 matches
Mail list logo