Re: [R] Downloading a directory of text files into R

2023-07-25 Thread Rui Barradas
Às 23:06 de 25/07/2023, Bob Green escreveu: Hello, I am seeking advice as to how I can download the 833 files from this site:"http://home.brisnet.org.au/~bgreen/Data/; I want to be able to download them to perform a textual analysis. If the 833 files, which are in a Directory with two

Re: [R] plotly

2023-07-25 Thread Thomas Subia via R-help
Colleagues, Here is my reproducible code. library(plotly) t <- list(   family = "Arial",   size = 12,   color = "black",   face="bold") t3 <- list(   family = "Arial",   size = 12,   color = "black",   face="bold") t5 <- list(   family = "Arial",   size = 12,   color = "black",   face="bold")

Re: [R] Downloading a directory of text files into R

2023-07-25 Thread Jeff Newmiller
You cannot read files using name patterns. You can use list.files with patterns on your local filesystems, and you can use RCurl or httr contributed packages to parse out the web listing of files returned by the web server. See the example in ?RCurl. Then you can download the individual files

Re: [R] Seeking Assistance: Plotting Sea Current Vectors in R

2023-07-25 Thread Jim Lemon
Hi Kostas, The function vectorField in the plotrix package may do what you want. See the example. Jim On Tue, Jul 25, 2023 at 9:30 PM konstantinos christodoulou wrote: > > Dear Rcommunity, > > I hope this email finds you well. I am writing to seek your assistance with > a data visualization

Re: [R] Downloading a directory of text files into R

2023-07-25 Thread Ben Bolker
Where is readtext() from? Some combination of scraping http://home.brisnet.org.au/~bgreen/Data/Hanson1/ and http://home.brisnet.org.au/~bgreen/Data/Hanson2/ to recover the required file names: library(rvest) read_html("http://home.brisnet.org.au/~bgreen/Data/Hanson1/;) |>

Re: [R] [EXT] Downloading a directory of text files into R

2023-07-25 Thread Andrew Robinson via R-help
Hi Bob, there may be more efficient ways to go about it but I would use R to scrape the contents of http://home.brisnet.org.au/~bgreen/Data/Hanson1/ http://home.brisnet.org.au/~bgreen/Data/Hanson2/ in order to form the URLs of the files, and then loop over the URLs. Cheers, Andrew -- Andrew

[R] Downloading a directory of text files into R

2023-07-25 Thread Bob Green
Hello, I am seeking advice as to how I can download the 833 files from this site:"http://home.brisnet.org.au/~bgreen/Data/; I want to be able to download them to perform a textual analysis. If the 833 files, which are in a Directory with two subfolders were on my computer I could read them

Re: [R] Seeking Assistance: Plotting Sea Current Vectors in R

2023-07-25 Thread PIKAL Petr
Not sure if correct but Chatgpt answer is: Here are some popular R packages for sea current vectors: oce: The "oce" package provides a wide range of functions for oceanographic data analysis, including handling sea current data. It allows you to work with current data in various formats and

[R] Seeking Assistance: Plotting Sea Current Vectors in R

2023-07-25 Thread konstantinos christodoulou
Dear Rcommunity, I hope this email finds you well. I am writing to seek your assistance with a data visualization problem I am facing while working with R. Problem Description: I have a dataframe named "df" containing the following columns: "longitude", "latitude", "sea_currents_mag", and