While executing following code I am getting error as:
Warning message:
In Ops.factor(df$`Net Worth`[1], df$`Net Worth`[2]) :
‘+’ not meaningful for factors
library(XML)
library(htmltab)
library(dplyr)
library(RCurl)
library(bitops)
u = c("The Richest People in Tech List.html")
tables = readHTMLTable(u)
tables$the_list
data <- tables$the_list
df<-as.data.frame(data)
df$`Net Worth`[1]+df$`Net Worth`[2]
My data is given below
Rank Name Net Worth Age Origin of Wealth Country
1 #1 Bill Gates $84.5 B 63 Microsoft United States
2 #2 Jeff Bezos $81.7 B 55 Amazon.com United States
3 #3 Mark Zuckerberg $69.6 B 35 Facebook United States
4 #4 Larry Ellison $59.3 B 75 software United States
5 #5 Larry Page $43.9 B 46 Google United States
6 #6 Sergey Brin $42.7 B 46 Google United States
7 #7 Jack Ma $37.4 B 55 e-commerce China
8 #8 Ma Huateng $36.7 B 48 internet media China
9 #9 Steve Ballmer $32.9 B 63 Microsoft United States
10 #10 Michael Dell $22.4 B 54 Dell computers United States