Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
174 views
in Technique[技术] by (71.8m points)

r - How to create a ''for loop'' to download 5 consecutive months of data?

For an assignment we are supposed to use a for-loop to obtain a dataframe of 5 consecutive months. The data regards crimes and their accompanying type of crime, location, month, street name etc.

How do we go about this issue?

We use the package 'ukpolice' and use this code to obtain data for a specific month and location of choice;

ukpolice syntax is as follows:

data <- as.data.frame(ukc_crime_location(lat = , lng = , date = ""))

Thank you in advance!

question from:https://stackoverflow.com/questions/65884689/how-to-create-a-for-loop-to-download-5-consecutive-months-of-data

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...