Displaying 2 results from an estimated 2 matches for "parse_result".
2017 Aug 04
1
Restructuring Star Wars data from rwars package
I'm having trouble restructuring data from the rwars package into a
dataframe. Can someone help me?
Here's what I have...
library("rwars")
library("tidyverse")
# These data are json, so they load into R as a list
people <- get_all_people(parse_result = T)
people <- get_all_people(getElement(people, "next"), parse_result = T)
# Look at Anakin Skywalker's data
people$results[[1]]
people$results[[1]][1] # print his name
# To use them in R, I need to restructure them to a dataframe like they are
in dplyr
data("starwars"...
2009 Sep 30
2
C++ parser for doc.get_data() result.
Xapians!
Did anybody wrote and would like to share a routines that parse result
from doc.get_data() into some key and pair values in C++ ?
Code:
Xapian::Document doc = i.get_document();
string data = doc.get_data();
mymap = parse_result(data);
As you know the data string contain all the data within the document
delimited by "=" sign and "\n" new line and needs to be parse into key
and values. I know that we can assign values during indexing and
retrieve it as: doc.get_value(1), but I think that this has a ove...