Questions tagged [zipcoder]
5 questions
1
vote
4 answers
assign values inside a function based on specific columns in a data frame
I'm looking for direction on assigning a data frame column value to a specific place in a function and then looping or something to create a series of objects to be bound into a longer table.
example data
a = c("17","17","29")
b =…

gered
- 79
- 5
1
vote
1 answer
Error in zip_distance: arguments imply differing number of rows
Error in data.frame(zipcode_a, zipcode_b, distance) : arguments
imply differing number of rows: 32019, 400.
I am attempting to calculate the distance between 32019 Zip Codes and one location (Zipcode 94063). I have an excel sheet with two…

hoodwench
- 5
- 1
0
votes
2 answers
Get County and State using zip code (reverze_zipcode)
I have a list of unique client names and their zip codes.
I need to get extra information regarding the zip code such as state and county.
I discovered the package zipcodeR but wasn't able to use the reverse_zipcode function.
Below is a sample…

mar355
- 155
- 9
0
votes
2 answers
Apply zip_distance to every row
I have a dataframe with two columns, zip and CSZip. I am trying to apply a function to each row using:
dist <- apply(vf, 1, zip_distance(zip, CSZip, lonlat = TRUE, units = "meters"))
But I get this error:
Error in as.character(zipcode_a) :
…

Kushal Mohnot
- 107
- 8
0
votes
0 answers
installation of package ‘tidycensus’ had non-zero exit status
I am not able to use this package. I need it to use zipcodeR package. I have updated R to the latest version. This is the message in my terminal message:
install.packages("zipcodeR")
also installing the dependencies ‘fastmap’, ‘cachem’, ‘terra’,…

Kushal Mohnot
- 107
- 8