<html><head></head><body><div style="font-family:times new roman, new york, times, serif;font-size:16px;"><div><div>Você precisa verificar:</div><div> 1. Todos os números são inteiros, caso contrário, veja se a separação das casas decimais é um ponto (use o excell para isso), se for um ponto, substitua por uma vírgula;</div><div> 2. Se houver um espaço no início ou no fim do número pode acontecer de o R entender como alfanumérico e não numérico;</div><div><br></div><div>Uma sugestão, coloque o arquivo neste site : <a href="http://www.datafilehost.com/Voc%C3%AA%20precisa%20verificar:" style="color: rgb(25, 106, 212); text-decoration-line: underline; font-family: "times new roman", "new york", times, serif; font-size: 16px;" rel="nofollow" target="_blank">http://www.datafilehost.com/</a></div><div><br></div><div>E nos envie o link para que possamos baixar o arquivo e verifica-lo.</div><div><br></div><div><br></div><div>[ ]'s.</div><div class="ydpf9642ec9signature">Prof. Edson Lira, Me <br>Estatístico<br>Manaus-Amazonas</div></div>
<div><br></div><div><br></div>
<div id="yahoo_quoted_1755012143" class="yahoo_quoted">
<div style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div>
Em terça-feira, 13 de março de 2018 10:22:25 AMT, Jasmine Moreira via R-br <r-br@listas.c3sl.ufpr.br> escreveu:
</div>
<div><br></div>
<div><br></div>
<div><div id="yiv1090529446"><div>Edmar,<div class="yiv1090529446"><br clear="none" class="yiv1090529446"></div><div class="yiv1090529446">Você precisa salvar o resultado m uma variável, tente:</div><div class="yiv1090529446"><br clear="none" class="yiv1090529446"></div><div class="yiv1090529446">risco <- <span class="yiv1090529446" style="">as.numeric(as.character(risco))</span></div><div class="yiv1090529446"><font class="yiv1090529446" face="Helvetica Neue, Helvetica, Arial, sans-serif" size="2"><br clear="none" class="yiv1090529446"></font></div><div class="yiv1090529446"><font class="yiv1090529446" face="Helvetica Neue, Helvetica, Arial, sans-serif" size="2">[]’s</font></div><div class="yiv1090529446"><font class="yiv1090529446" face="Helvetica Neue, Helvetica, Arial, sans-serif" size="2">Jasmine<br clear="none" class="yiv1090529446"></font><div><br clear="none" class="yiv1090529446"><blockquote class="yiv1090529446" type="cite"><div class="yiv1090529446">Em 13 de mar de 2018, à(s) 11:11, Edmar Caldas via R-br <<a rel="nofollow" shape="rect" class="yiv1090529446" ymailto="mailto:r-br@listas.c3sl.ufpr.br" target="_blank" href="mailto:r-br@listas.c3sl.ufpr.br">r-br@listas.c3sl.ufpr.br</a>> escreveu:</div><br clear="none" class="yiv1090529446Apple-interchange-newline"><div class="yiv1090529446"><div class="yiv1090529446yqt7997625778" id="yiv1090529446yqt57392"><div class="yiv1090529446"><div class="yiv1090529446" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div class="yiv1090529446"><div class="yiv1090529446"><div class="yiv1090529446">> is.character(risco)</div><div class="yiv1090529446">[1] TRUE</div><div class="yiv1090529446">> as.numeric(as.character(risco))</div><div class="yiv1090529446"> [1] 242 239 235 237 240 243 238 229 231 236 238 233 235 228 233 249 255 245 256 241 226 235 243 229 227</div><div class="yiv1090529446"> [26] 229 224 224 222 225 226 233 231 231 231 228 226 225 225 223 222 218 222 221 225 228 234 240 239 240</div><div class="yiv1090529446"> [51] 237 235 233 231 234 238 244 245 243 239 239 240 242 238 236 242 244 241 240 239 242 243 246 246 247</div><div class="yiv1090529446"> [76] 248 246 251 259 256 251 253 255 253 253 247 249 245 244 243 239 238 242 234 234 233 233 236 236 240</div><div class="yiv1090529446"> [101] 242 244 245 247 248 244 244 241 245 245 246 246 253 256 256 257 253 255 254 252 252 255 256 257 260</div><div class="yiv1090529446"> [126] 259 264 265 267 268 265 265 272 272 274 273 270 269 274 276 279 277 279 271 269 276 281 281 269 262</div><div class="yiv1090529446"> [151] 263 262 264 268 267 267 271 268 269 272 270 264 266 271 273 273 274 277 277 282 286 293 297 291 286</div><div class="yiv1090529446"> [176] 289 294 290 298 290 294 298 302 299 289 286 286 281 282 286 285 285 288 285 283 283 284 284 284 286</div><div class="yiv1090529446"> [201] 283 286 281 280 288 282 300 258 250 251 255 255 257 264 262 262 264 256 258 260 263 264 268 263 263</div><div class="yiv1090529446"> [226] 272 275 273 275 270 271 271 272 267 271 269 263 265 270 270 274 275 278 279 278 280 280 277 269 272</div><div class="yiv1090529446"> [251] 274 282 291 286 280 290 287 274 272 273 280 275 286 277 277 272 277 279 282 282 280 271 266 268 272</div><div class="yiv1090529446"> [276] 280 284 287 277 276 281 285 289 291 284 296 296 293 295 294 296 291 282 288 288 298 305 305 302 301</div><div class="yiv1090529446"> [301] 302 311 325 328 328 325 325 322 325 325 326 323 324 327 328 332 332 324 330 328 334 336 341 342 350</div><div class="yiv1090529446"> [326] 348 337 337 334 337 337 336 332 333 334 331 329 330 357 341 306 303 314 328 327 328 323 313 308 313</div><div class="yiv1090529446"> [351] 309 307 305 308 308 311 314 314 309 313 314 314 317 317 317 319 318 315 319 318 311 322 320 315 306</div><div class="yiv1090529446"> [376] 312 328 334 340 331 333 325 313 314 303 303 309 309 315 309 306 304 299 306 305 302 303 296 297 298</div><div class="yiv1090529446"> [401] 292 299 306 309 316 320 317 319 325 327 331 336 339 340 344 343 341 338 337 330 332 332 331 331 334</div><div class="yiv1090529446"> [426] 331 340 345 355 355 352 347 350 354 376 393 384 365 376 378 380 392 399 395 401 389 383 375 371 377</div><div class="yiv1090529446"> [451] 385 392 401 403 393 393 395 391 398 397 392 394 377 374 375 382 376 379 387 394 390 397 395 392 382</div><div class="yiv1090529446"> [476] 385 385 382 397 403 406 400 385 390 394 387 382 387 397 416 440 449 430 432 413 404 409 404 416 419</div><div class="yiv1090529446"> [501] 427 419 391 392 409 459 437 427 434 440 460 452 447 462 485 489 502 506 513 506 519 521 529 539 535</div><div class="yiv1090529446"> [526] 549 554 569 554 547 548 521 525 530 513 512 499 503 511 523 514 534 544 533 533 512 521 506 506 512</div><div class="yiv1090529446"> [551] 506 505 497 532 523 516 520 518 516 545 524 498 499 465 484 501 473 458 453 444 435 438 440 436 432</div><div class="yiv1090529446"> [576] 409 411 393 397 386 381 395 399 410 415 398 396 403 393 387 378 376 394 410 410 414 422 418 423 437</div><div class="yiv1090529446"> [601] 450 454 438 419 408 411 408 383 389 405 386 388 406 421 442 485 489 453 450 454 443 422 397 376 374</div><div class="yiv1090529446"> [626] 377 389 390 388 363 372 381 365 367 361 340 334 338 358 352 369 351 338 329 316 316 318 322 323 342</div><div class="yiv1090529446"> [651] 335 343 341 317 322 323 315 339 340 350 360 353 344 328 320 318 311 306 306 297 296 297 307 312 309</div><div class="yiv1090529446"> [676] 304 295 299 304 310 296 298 292 288 292 292 283 298 297 292 287 288 291 290 288 287 288 283 284 292</div><div class="yiv1090529446"> [701] 294 287 285 281 268 269 270 274 275 285 282 279 283 275 274 281 277 284 292 296 295 282 281 283 280</div><div class="yiv1090529446"> [726] 276 278 288 296 310 300 293 389 291 287 283 287 301 302 312 309 317 322 318 324 319 324 328 333 344</div><div class="yiv1090529446"> [751] 351 360 361 344 344 324 333 328 327 308 307 307 303 310 322 329 322 314 314 306 297 304 301 305 313</div><div class="yiv1090529446"> [776] 312 300 296 297 300 307 311 324 324 294 297 284 286 283 286 288 290 294 294 294 292 293 281 278 284</div><div class="yiv1090529446"> [801] 287 281 264 259 261 256 254 250 266 283 284 318 312 301 273 280 266 255 243 238 233 238 244 238 245</div><div class="yiv1090529446"> [826] 241 237 252 255 264 264 263 250 249 249 243 243 242 244 237 233 233 236 239 245 243 243 243 244 241</div><div class="yiv1090529446"> [851] 239 245 244 245 236 232 239 240 237 239 240 246 239 243 230 228 218 220 219 212 210 209 218 219 214</div><div class="yiv1090529446"> [876] 209 208 210 200 200 203 201 203 205 206 205 209 212 212 211 213 215 218 222 221 227 228 231 233 234</div><div class="yiv1090529446"> [901] 230 231 224 225 212 206 215 210 209 203 203 207 208 209 219 214 214 213 215 214 212 208 206 206 207</div><div class="yiv1090529446"> [926] 206 208 205 203 203 207 208 209 208 206 207 208 204 211 212 201 197 198 207 210 207 208 208 206 212</div><div class="yiv1090529446"> [951] 216 214 215 212 216 210 212 214 207 205 205 205 202 204 204 207 207 209 211 214 219 222 220 219 215</div><div class="yiv1090529446"> [976] 213 212 221 224 223 222 220 222 221 222 221 223 223 222 228 227 224 223 230 237 234 236 232 234 240</div><div class="yiv1090529446"> [ reached getOption("max.print") -- omitted 10913 entries ]</div><div class="yiv1090529446">> is.numeric(risco)</div><div class="yiv1090529446">[1] FALSE</div><br clear="none" class="yiv1090529446"></div><div class="yiv1090529446"><br clear="none" class="yiv1090529446"></div><div class="yiv1090529446ydp7358b368signature"><div class="yiv1090529446"><font class="yiv1090529446" color="#0000ff">Edmar</font></div></div></div>
<div class="yiv1090529446"><br clear="none" class="yiv1090529446"></div><div class="yiv1090529446"><br clear="none" class="yiv1090529446"></div>
<div class="yiv1090529446yahoo_quoted" id="yiv1090529446yahoo_quoted_1498684266">
<div class="yiv1090529446" style="font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;color:#26282a;">
<div class="yiv1090529446">
Em terça-feira, 13 de março de 2018 11:10:30 BRT, Jasmine Moreira <<a rel="nofollow" shape="rect" class="yiv1090529446" ymailto="mailto:jasmine.moreira.2013@gmail.com" target="_blank" href="mailto:jasmine.moreira.2013@gmail.com">jasmine.moreira.2013@gmail.com</a>> escreveu:
</div>
<div class="yiv1090529446"><br clear="none" class="yiv1090529446"></div>
<div class="yiv1090529446"><br clear="none" class="yiv1090529446"></div>
<div class="yiv1090529446"><div class="yiv1090529446" id="yiv1090529446"><div class="yiv1090529446">Oi Edmar,<div class="yiv1090529446"><br clear="none" class="yiv1090529446"></div><div class="yiv1090529446">Copie e cole um exemplo aqui, pode ser muitas coisas.</div><div class="yiv1090529446"><br clear="none" class="yiv1090529446"></div><div class="yiv1090529446">[]’s</div><div class="yiv1090529446">Jasmine<br clear="none" class="yiv1090529446"><div class="yiv1090529446"><br clear="none" class="yiv1090529446"><blockquote class="yiv1090529446" type="cite"><div class="yiv1090529446">Em 13 de mar de 2018, à(s) 11:03, Edmar Caldas via R-br <<a rel="nofollow" shape="rect" class="yiv1090529446" ymailto="mailto:r-br@listas.c3sl.ufpr.br" target="_blank" href="mailto:r-br@listas.c3sl.ufpr.br">r-br@listas.c3sl.ufpr.br</a>> escreveu:</div><br clear="none" class="yiv1090529446Apple-interchange-newline"><div class="yiv1090529446"><div class="yiv1090529446yqt1627309481" id="yiv1090529446yqt78080"><div class="yiv1090529446"><div class="yiv1090529446" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div class="yiv1090529446"><div class="yiv1090529446">Bom dia!</div><div class="yiv1090529446"><br clear="none" class="yiv1090529446"></div><div class="yiv1090529446">estou com uma duvida, não estou conseguindo converter uma variável character em numérica. Os dados foram pegos web. usando pacote rvest.</div><div class="yiv1090529446"><br clear="none" class="yiv1090529446"></div><div class="yiv1090529446">e a variável risco veio como character.</div><div class="yiv1090529446"><br clear="none" class="yiv1090529446"></div><div class="yiv1090529446"><div class="yiv1090529446">is.character(risco)</div><div class="yiv1090529446">as.numeric(as.character(risco))</div><div class="yiv1090529446">is.numeric(risco)</div><br clear="none" class="yiv1090529446"></div><div class="yiv1090529446"><br clear="none" class="yiv1090529446"></div><div class="yiv1090529446ydp75b1a211signature"><div class="yiv1090529446"><font class="yiv1090529446" color="#0000ff">Edmar</font></div></div></div></div></div></div>_______________________________________________<br clear="none" class="yiv1090529446">R-br mailing list<br clear="none" class="yiv1090529446"><a rel="nofollow" shape="rect" class="yiv1090529446" ymailto="mailto:R-br@listas.c3sl.ufpr.br" target="_blank" href="mailto:R-br@listas.c3sl.ufpr.br">R-br@listas.c3sl.ufpr.br</a><br clear="none" class="yiv1090529446"><a rel="nofollow" shape="rect" class="yiv1090529446" target="_blank" href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br clear="none" class="yiv1090529446">Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça código mínimo reproduzível.</div></blockquote></div><br clear="none" class="yiv1090529446"></div></div></div></div>
</div>
</div></div></div></div>_______________________________________________<br clear="none" class="yiv1090529446">R-br mailing list<br clear="none" class="yiv1090529446"><a rel="nofollow" shape="rect" class="yiv1090529446" ymailto="mailto:R-br@listas.c3sl.ufpr.br" target="_blank" href="mailto:R-br@listas.c3sl.ufpr.br">R-br@listas.c3sl.ufpr.br</a><br clear="none" class="yiv1090529446">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br<br clear="none" class="yiv1090529446">Leia o guia de postagem (http://www.leg.ufpr.br/r-br-guia) e forneça código mínimo reproduzível.</div></blockquote></div><br clear="none" class="yiv1090529446"></div></div></div><div class="yqt7997625778" id="yqt66396">_______________________________________________<br clear="none">R-br mailing list<br clear="none"><a shape="rect" ymailto="mailto:R-br@listas.c3sl.ufpr.br" href="mailto:R-br@listas.c3sl.ufpr.br">R-br@listas.c3sl.ufpr.br</a><br clear="none"><a shape="rect" href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br clear="none">Leia o guia de postagem (<a shape="rect" href="http://www.leg.ufpr.br/r-br-guia" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>) e forne�a c�digo m�nimo reproduz�vel.</div></div>
</div>
</div></div></body></html>