[R] How to get data from elastic search

2014-09-21 Thread madhvi.gupta

Hi,

I want to get daat from elastic search in R.I am using package elastic 
to get data but it is not giving data as a data frame in R.It is 
returning data as a list which is giving following error when i am 
viewing it.It is giving same problem when I am using fromjson() function 
of rjson package.




>View(sample)

Error in data.frame(wasRetweetedByMe = FALSE, entityLocation = 
"Bakhundole Lalitpur, Nepal",  :

  arguments imply differing number of rows: 1, 2, 0


Please help me how to get data from elastic search as a data frame to 
analyse it.


Thanks
Madhvi

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] How to get JRI package

2014-09-11 Thread madhvi.gupta

Hi,
My R Studio version is 3.1.0 but JRI package is not getting installed on 
it.It is giving the following error.

package ‘JRI’ is not available (for R version 3.1.0)
Is there any another way to do this?

Thanks

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] How to get source code of a package

2014-09-05 Thread madhvi.gupta
Hi,
Can anyone tell me how to get  source code of a package of R?
I want to integrate elastic search with R if there is any way please let 
me know or give me a direction to do that.

Thanks.

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] NA's introduced by coercion

2014-08-26 Thread madhvi.gupta

Hi,

I am applyin function as.numeric to a vector having many values as NA 
and it is giving :

Warning message:
NAs introduced by coercion

Can anyone help me to know how to remove this warning and sor it out?

Thanks
Madhvi

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Fwd: error in installing rpud package

2014-08-17 Thread madhvi.gupta



 Original Message 
Subject:error in installing rpud package
Date:   Mon, 18 Aug 2014 10:08:21 +0530
From:   madhvi.gupta 
To: r-help-requ...@r-project.org



Hello,
I am trying to install rpud package on R eith version 3.1.1 and i am 
getting this error

install.packages("rpud")
Installing package into '/home/shweta/R/x86_64-pc-linux-gnu-library/3.1'
(as 'lib' is unspecified)
trying URL 'http://cran.rstudio.com/src/contrib/rpud_0.0.2.tar.gz'
Content type 'application/x-gzip' length 78113 bytes (76 Kb)
opened URL
==
downloaded 76 Kb

* installing *source* package 'rpud' ...
checking "environment variable CUDA_HOME"... "CUDA_HOME not set; using 
default /usr/local/cuda"
checking for /usr/local/cuda/bin/nvcc... yes
"nvcc found"
checking "whether this is the 64 bit linux version of CUDA"... checking 
for /usr/local/cuda/lib64/libcublas.so... yes
"yes -- using /usr/local/cuda/lib64 for CUDA libs"
"using -I/usr/share/R/include for R header files"
"using -Wl,--export-dynamic -fopenmp -L/usr/lib64/R/lib -lR -lrt -ldl 
-lm for R shared libraries"
configure: creating ./config.status
config.status: creating src/Makefile
** libs
** arch -
/usr/local/cuda/bin/nvcc -c -I/usr/local/cuda/include -Xcompiler 
"-I/usr/share/R/include -fpic" rpud.cu -o rpud.o
/usr/local/cuda/bin/nvcc -c -I/usr/local/cuda/include -Xcompiler 
"-I/usr/share/R/include -fpic" rpudist.cu -o rpudist.o
rpudist.cu(159): warning: use of "=" where "==" may have been intended

rpudist.cu(159): warning: use of "=" where "==" may have been intended

ptxas /tmp/tmpxft_07b2_-5_rpudist.ptx, line 904; warning : 
Double is not supported. Demoting to float
/usr/local/cuda/bin/nvcc -shared -Xlinker "-Wl,--export-dynamic -fopenmp 
-L/usr/lib64/R/lib -lR -lrt -ldl -lm -Wl,-rpath,/usr/local/cuda/lib64" 
-L/usr/local/cuda/lib64 -lcublas -lcuda rpud.o rpudist.o -o rpud.so
/usr/bin/ld: unrecognized option '-Wl'
/usr/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
make: *** [rpud.so] Error 1
ERROR: compilation failed for package 'rpud'
* removing '/home/shweta/R/x86_64-pc-linux-gnu-library/3.1/rpud'
Warning in install.packages :
installation of package 'rpud' had non-zero exit status

The downloaded source packages are in
'/tmp/RtmpX5lR2g/downloaded_packages'

so please help me to get out of this.




[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Parameter of a function used after $ in a data frame

2014-08-13 Thread madhvi.gupta

Hi,
Can anyone please tell me how to use a argument of a function after $ 
sign of a data frame.That argument is one of the column name of the data 
frame.


Thanks,
Madhvi

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Error in installing package raccumulo for R version 3.1.0

2014-07-10 Thread madhvi.gupta
Dear sir,

I am a beginner in R and I am having problem in installing raccumulo 
package.On trying to install it on RStudio from cran repository it gives 
error:
*Warning in install.packages :**
**  package 'raccumulo' is not available (for R version 3.1.0)**

*On installing it from github following a procedure give in the link 
https://github.com/DataTacticsCorp/raccumulo it gives the following errors:
*
* installing to library '/usr/local/lib/R/site-library'
ERROR: failed to lock directory '/usr/local/lib/R/site-library' for 
modifying
Try removing '/usr/local/lib/R/site-library/00LOCK-package'

*After removing the lock package it gives error:

*raccumulo.cpp:14:39: fatal error: protocol/TCompactProtocol.h: No such 
file or directory**
**compilation terminated.**
**make: *** [raccumulo.o] Error 1**
**ERROR: compilation failed for package 'raccumulo'**
*** removing '/usr/local/lib/R/site-library/raccumulo'**
**Error in setwd(startdir) : cannot change working directory**
**Error in setwd(startdir) : cannot change working directory**
**Execution halted**
**sh: 0: getcwd() failed: No such file or directory*

I shal be very thankful for ur any help and an early rply would be 
appreciated.
Thanks and Regards,
Madhvi Gupta

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.