Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removing terra lat/lon? #47

Open
VeruGHub opened this issue Dec 18, 2023 · 3 comments
Open

removing terra lat/lon? #47

VeruGHub opened this issue Dec 18, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@VeruGHub
Copy link
Owner

Consider removing lat/lon here:

names(df.wide)[names(df.wide) %in% c("x", "y")] <- c("lon", "lat")

since we replace by original coordinates later:

out <- subset(out, select = -c(lon, lat))

@Pakillo
Copy link
Collaborator

Pakillo commented Dec 18, 2023

But those lon/lat columns are used a few lines below (

df.long <- stats::reshape(df.wide, direction = "long",
) so I don't think they can be removed?

@VeruGHub
Copy link
Owner Author

I think latter can be removed too and use only the id column for reshaping

@Pakillo
Copy link
Collaborator

Pakillo commented Dec 19, 2023

Ah, I see. Probably can be removed then? Please check that wouldn't break anything

@VeruGHub VeruGHub self-assigned this Dec 21, 2023
@VeruGHub VeruGHub added the enhancement New feature or request label Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants