[R] Creating/Reading a complex string in R
Christofer Bogaso
bogaso.christofer at gmail.com
Tue Jul 18 18:48:15 CEST 2017
Hi again,
Let say I have below string (arbitrary)
<html>
<head>
<script type="text/javascript" <script type="text/javascript">
mystatement('current', {'pac':['']});
mystatement;
I want to pass above string to some R variable for further analysis.
So I have tried below :
String = '<html>
<head>
<script type="text/javascript" <script type="text/javascript">
mystatement('current', {'pac':['']});
mystatement;'
It is not clearly working as I am getting below error :
> String = '<html>
+ <head>
+ <script type="text/javascript" <script type="text/javascript">
+ mystatement('current', {'pac':['']});
Error: unexpected symbol in:
" <script type="text/javascript" <script type="text/javascript">
mystatement('current"
> mystatement;'
Error: object 'mystatement' not found
>
Any pointer how to create my string 'String' based on above would be
highly appreciated.
Thanks for your time.
More information about the R-help
mailing list