HERE MAPS Map matching API documentation - here-api

im using m.fleet.ls.hereapi.com/2/matchroute.json endpoint to mapmatch GPS traces.
The result provides values like:
[1] "lat" "lon"
[3] "document.2..TracePoints.confidenceValue" "document.2..TracePoints.matchDistance"
[5] "document.2..TracePoints.minError" "document.2..TracePoints.linkIdMatched"
[7] "document.2..TracePoints.routeLinkSeqNrMatched" "document.2..TracePoints.matchOffsetOnLink"
[9] "document.2..TracePoints.linkIdMatched.1"
Its kind of silly question but i seem not to be able to find a description of those parameters anywhere anymore.
I know the documentation was available not long before.
Are those parameters deprecated and there will no longer be a service or where could i find a documentation of those?
thank you.
Andreas

Related

How can I use the mas5calls function without getting an error message? in R

My code:
setwd("C:/A549_ALI/4_tert-Butanol (22)/")
list.celfiles()
my.affy=ReadAffy()
dim(exprs(my.affy))
Output:
Show in New Window
[1] "(46) 22-B1-1_(miRNA-4_0).CEL"
[2] "(47) 22-B1-2_(miRNA-4_0).CEL"
[3] "(48) 22-B1-3_(miRNA-4_0).CEL"
[4] "(49) 22-R1-1_(miRNA-4_0).CEL"
[5] "(50) 22-NEC 1-1_(miRNA-4_0).CEL"
[6] "(51) 22-B2-1_(miRNA-4_0).CEL"
[7] "(52) 22-B2-2_(miRNA-4_0).CEL"
[8] "(53) 22-B2-3_(miRNA-4_0).CEL"
[9] "(54) 22-R2-1_(miRNA-4_0).CEL"
[10] "(55) 22-NEC 2-1_(miRNA-4_0).CEL"
[11] "(56) 22-B3-1_(miRNA-4_0).CEL"
[12] "(57) 22-B3-2_(miRNA-4_0).CEL"
[13] "(58) 22-B3-3_(miRNA-4_0).CEL"
[14] "(59) 22-R3-1_(miRNA-4_0).CEL"
[15] "(60) 22-NEC 3-1_(miRNA-4_0).CEL"
[1] 292681 15
Up to here everything works but than I get this error message:
background correction: mas
PM/MM correction : mas
expression values: mas
background correcting...'getOption("repos")' replaces Bioconductor standard repositories, see '?repositories' for details
replacement repositories:
CRAN: https://cran.rstudio.com/
Error in getCdfInfo(object) :
Could not obtain CDF environment, problems encountered:
Specified environment does not contain miRNA-4_0
Library - package mirna40cdf not installed
Bioconductor - mirna40cdf not available
I have already tried to install this package, but I can't find it on the Bioconductor website.
Now I do not know how to proceed. Is there any other way to use the mas5calls function?
I use R 4.2.2.
Thanks for all answers.
This simply means that the package with the cdf-env built upon the chip description (CDF) - file for this type of MicroArray data is not distributed through Bio-conductor. It seems that Affymetrix is not providing those anymore, but you can find them on GEO. (click on the platform and than under "Supplementary file" . Alternatively ask the person you got the data from if they can provide you with the relevant CDFs. Use cfdName() to check which ones you need.
Once you obtained the CDF you can build the R package ( mirna40cdf in your case) that affy needs using the makecdfenv package you can install from Bioconductor. You could also try to use another package called oligo and see if it supports your data.

Is there a way to personalize/define the bbox or latlong of lookup_coords from the rtweet package?

I want to make a Twitter search, specifying the location. I am using the rtweet package. However, when I print the 'lookup_coords' function for the country of Venezuela or the city of Caracas, there are no results. I have followed all advices from previous posts and nothing have helped.
I have my own Google Api Key
I am working on R, Windows 7.
Is there any possibility to self define the coordinates and assign it to the 'search_tweets' function? How do I know which is the proper syntax for naming every city or country in the world? Is there a list somewhere?
lookup_coords(address = "Venezuela", components = "country:Venezuela", apikey = "XXXXXXX")
the result is:
$place
[1] "Venezuela"
$box
NULL
$point
NULL
attr(,"class")
[1] "coords" "list"
when I check the API, all works fine:
identical(Sys.getenv("GOOGLE_MAPS_KEY"),rtweet:::find_google_geocode_key())
[1] TRUE

Using Bing option with taRifx.geo in R

I'm attempting to find the coordinates for several cities in Ghana. I've used the geocode function in taRifx.geo with the "google" option and had success, but Google doesn't know where all my cities are.
I'd like to use the Bing service to fill in the coordinates that were missing from my Google list and I'm starting with just one city ("Awutu Breku") to make sure the code works. I run this code, though, and get an error:
> Bkey <- "______________(my key would be here)____"
> Loc5 <- geocode("Awutu Breku", service="bing", BingMapsKey = Bkey,
+ returntype="coordinates")
Error in geocode.default("Awutu Breku", service = "bing", BingMapsKey = Bkey, :
To use Bing, you must save your Bing Maps API key (obtain at http://msdn.microsoft.com/en-us/library/ff428642.aspx) using options(BingMapsKey='mykey').
This error is very confusing since I do include the BingMapsKey argument but the function doesn't seem to be recognizing it.
I've searched quite a bit for an answer to this one and haven't come across anything. I even looked on the github page but couldn't figure out what might be wrong with my code. I feel like I'm missing something simple. Any help would be appreciated!
I needed to do a devtools::install_github("gsk3/taRifx.geo") to be able to use the geocode function and the instructions clearly state that you need to do a:
options(BingMapsKey='ridiculously_long_string')
before calling using the bing option:
geocode("1600 Pennsylvania Ave NW, Washington, DC 20500", service="bing")
## [1] 38.89719 -77.03655

Using the 'available.packages' Function to Retrieve Emails

I am attempting to retrieve email addresses of contributing package authors and maintainers to the R-Project. The function reads as follows:
availpkgs <- available.packages(contriburl = contrib.url(getOption("repos"), type),
method, fields = NULL, type = getOption("pkgType"),
filters = NULL)
I've attempted different character values in the fields parameter to retrieve Maintainer and Author info from the 'PACKAGES' files, but have not been had luck. Does anyone know how I might approach this? Thank you in advance for your time.
I do not think the Author information is in what available.packages() retrieves:
R> AP <- available.packages()
R> colnames(AP)
[1] "Package" "Version" "Priority"
[4] "Bundle" "Contains" "Depends"
[7] "Imports" "LinkingTo" "Suggests"
[10] "Enhances" "OS_type" "License"
[13] "File" "Repository"
R>
So maybe you need to combine this with a per-package lookup of the DESCRIPTION info at CRAN (or a mirror). I do that, and a few more things, in the 200-line script driving the CRANberries RSS feed / html summary of package updates at CRAN which stores stateful info in SQLite. For this, I retrieve Author, Maintainer etc directly from the package I am currently looking at rather than in one big global scoop. That said, there may of course be other meta-data at CRAN for this...

Getting the contents of a library interactively in R

Is there an equivalent of dir function (python) in R?
When I load a library in R like -
library(vrtest)
I want to know all the functions that are in that library.
In Python, dir(vrtest) would be a list of all attributes of vrtest.
I guess in general, I am looking for the best way to get help on R while running it in ESS on linux. I see all these man pages for the packages I have installed, but I am not sure how I can access them.
Thanks
help(package = packagename) will list all non-internal functions in a package.
Yes, use ls().
You can use search() to see what's in the search path:
> search()
[1] ".GlobalEnv" "package:stats" "package:graphics"
[4] "package:grDevices" "package:utils" "package:datasets"
[7] "package:methods" "Autoloads" "package:base"
You can search a particular package with the full name:
> ls("package:graphics")
[1] "abline" "arrows" "assocplot" "axis"
....
I also suggest that you look at this related question on stackoverflow which includes some more creative approaching to browsing the environment. If you're using ESS, then you can use Ess-rdired.
To get the help pages on a particular topic, you can either use help(function.name) or ?function.name. You will also find the help.search() function useful if you don't know the exact function name or package. And lastly, have a look at the sos package.
help(topic) #for documentation on a topic
?topic
summary(mydata) #an overview of data objects try
ls() # lists all objects in the local namespace
str(object) # structure of an object
ls.str() # structure of each object returned by ls()
apropos("mytopic") # string search of the documentation
All from the R reference card

Resources