[R] Visualize Sparse Matrix.

2016-06-09 Thread FRANCISCO XAVIER SUMBA TORAL
Hi, First of all, sorry for my question it could be so basic for a common user in R, but I am starting with this new environment. I have done a clustering job and I would like to visualize my vectors. I have a matrix of TF-IDF weights of 4602 x 1817. I store the values in a CSV file. How can

Re: [R] New installation

2016-06-09 Thread Clint Bowman
I "experiment" with the Fedora distribution at home but am very satisfied with the Scientific Linux distribution here at work--I'm currently using SL7.2. Clint BowmanINTERNET: cl...@ecy.wa.gov Air Quality Modeler INTERNET: cl...@math.utah.edu

Re: [R] New installation

2016-06-09 Thread Leonardo Ferreira Fontenelle
I have tried many Linux distributions before, and never looked back after switching for Arch Linux. It is one of the best distributions with regard to having an up to date but still reasonably stable system. Other options are Fedora Rawhide (there's a Fedora SIG mailing list) or Debian Sid (as

Re: [R] Non-negative matrix factorization for term documnt matrix

2016-06-09 Thread Nordlund, Dan (DSHS/RDA)
A quick Google search suggests that the package, NMF, might be of help. Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterprise Support Administration Washington State Department of Social and Health Services > -Original Message- > From: R-help

[R] Non-negative matrix factorization for term documnt matrix

2016-06-09 Thread Ragia .
   Dear group,  kindly how can I apply Non-negative matrix factorization for term document matrix in R.  Please if you any link to guide or tutorial send it.   thanks in advance     Ragia    __

Re: [R] New installation

2016-06-09 Thread Ista Zahn
Perhaps r-sig-debian is more appropriate, though it is not clear to me that a debian based linux is in fact the best for running R. Of course "best" is not clearly defined here, but I highly recommend Archlinux. Best, Ista On Jun 9, 2016 6:47 PM, "Bert Gunter" wrote: > I

Re: [R] New installation

2016-06-09 Thread Bert Gunter
I suggest that you post to the r-sig-debian list instead of here. I think you are more likely to get good answers to your query there. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in

Re: [R-es] Reemplazar NA con el último valor no NA de una columna en una data.table

2016-06-09 Thread Patricio Fuenmayor
Para que quede de constancia en el hilo, he realizado el siguiente código # REEMPLAZAR NA POR ULTINO VALOR NO NA for(col in c("V10DP","V25DP","V50D","V25DC","V10DC")){ cond <- !is.na(eod_cmvl03[,get(col)]) eod_cmvl03[,(col):=.SD[,get(col)][1L],by=cumsum(cond)]} gracias por las ideas...

[R] New installation

2016-06-09 Thread jax200
Hi I'm starting off with both R and Linux Mint. During a recent R course, I had multiple difficulties with installing updates needed for the course. As such, I'd like to hit the restart button with fresh installs of Linux and R. I would appreciate your help with which Linux platform works best

Re: [R] About identification of CRAN CHECK machines in logs

2016-06-09 Thread Hadley Wickham
On Thu, Jun 9, 2016 at 9:24 AM, Marcelo Perlin wrote: > Hi, > > I recently released two packages (RndTexExams and GetTDData) in CRAN and > I'm trying to track the number of downloads and location of users. > > I wrote a simple script to download and analyze the log files

Re: [R] problem: the id of the data set

2016-06-09 Thread Nordlund, Dan (DSHS/RDA)
We really need a reproducible example. Otherwise, we can only guess what the starting point was, how the merge was done, what the expected result was, and how the obtained result differed from the expected result. Dan Daniel Nordlund, PhD Research and Data Analysis Division Services &

Re: [R-es] analisis estadistica hidrologica y de precipitaciones con R

2016-06-09 Thread Carlos J. Gil Bellosta
Comienza por https://cran.r-project.org/web/views/Environmetrics.html El 9 de junio de 2016, 21:07, Javier Valdes Cantallopts (DGA) < javier.val...@mop.gov.cl> escribió: > Necesito saber consejos sobre algún paquete para realizar análisis > estadístico para hidrología y precipitaciones con R. >

Re: [R] problem: the id of the data set

2016-06-09 Thread Ulrik Stervbo
How do you merge the two data.frames? Could it be that you make an outer join? HTH Ulrik On Thu, 9 Jun 2016 at 19:45 Michael Dewey wrote: > Perhaps I do not understand you correctly but why not create a variable > for the id before you merge? > > On 09/06/2016 09:00, 周

[R-es] analisis estadistica hidrologica y de precipitaciones con R

2016-06-09 Thread Javier Valdes Cantallopts (DGA)
Necesito saber consejos sobre algún paquete para realizar análisis estadístico para hidrología y precipitaciones con R. Saludos. [R] CONFIDENCIALIDAD: La información contenida en este mensaje y/o en los archivos adjuntos es de carácter confidencial o

Re: [R] problem: the id of the data set

2016-06-09 Thread Michael Dewey
Perhaps I do not understand you correctly but why not create a variable for the id before you merge? On 09/06/2016 09:00, 周 可卫 wrote: I got the dataset after merge two old one .The id of the column isn’t just the number of the column.So when I identify some obs,I got the figure

Re: [R] Reading and converting time data via read.table

2016-06-09 Thread William Dunlap via R-help
>In fact, I learned most of them the hard way >by trial and error and realized that it’s difficult to separate time and >date using POSIXct and POSIXlt. It is difficult to separate time from data in real life as well. The most common problem is when your time zone switches between 'daylight

Re: [R] R install on AIX 7

2016-06-09 Thread Duncan Murdoch
On 09/06/2016 11:19 AM, Himani wrote: Hi, I am trying to install R on AIX 7, could you please refer me to any document which i can refer to. The R Installation and Administration manual (distributed with R) seems like the place to start. It doesn't mention AIX 7 but does go up to AIX 6.2.

Re: [R] VIM package

2016-06-09 Thread Tom Wright
Did you install the package before loading it? install.packages("VIM") On Thu, Jun 9, 2016 at 1:19 PM, Ayyappa Chaturvedula wrote: > Dear R users, > I am trying to use VIM (Visualization and Imputation of Missing Values) > package in R. When I try to install the VIM library

[R] About identification of CRAN CHECK machines in logs

2016-06-09 Thread Marcelo Perlin
Hi, I recently released two packages (RndTexExams and GetTDData) in CRAN and I'm trying to track the number of downloads and location of users. I wrote a simple script to download and analyze the log files in http://cran -logs.rstudio.com. I realized, however, that during the release of a new

[R] VIM package

2016-06-09 Thread Ayyappa Chaturvedula
Dear R users, I am trying to use VIM (Visualization and Imputation of Missing Values) package in R. When I try to install the VIM library (library(VIM)), I am getting this: Error in library(VIM) : there is no package called ‘VIM’. I appreciate any comments on this problem. Regards, Ayyappa

[R] R install on AIX 7

2016-06-09 Thread Himani
Hi, I am trying to install R on AIX 7, could you please refer me to any document which i can refer to. My ultimate goal is to integrate R with microstrategy and my microstrategy server is on AIX 7, so i need to have R installed over there before i can install integration pack. Any suggestions

[R] problem: the id of the data set

2016-06-09 Thread 周 可卫
I got the dataset after merge two old one .The id of the column isn’t just the number of the column.So when I identify some obs,I got the figure 28000(though my obs is only 6000).So it causes the trouble to remove these obs in the dataset.I wander how to make the id of the merged dataset in a

Re: [R] Reading and converting time data via read.table

2016-06-09 Thread Ek Esawi
Thank you Jeff and Don. As I stated on my original posting that I am relatively new to R. After a few weeks of searching and reading I have come to the same point that Don made which is base R doesn’t have a class for time only. I explored the chron and lubridate packages and even looked at Ecfun

Re: [R] apply and cousins

2016-06-09 Thread John Logsdon
Thanks Jim and others (and sorry Jim - an early version of this slipped into your inbox :)) Apologies for not giving some concrete code - I was trying to explain in words. What I need to do is to fit a simple linear model to successive sections of a long matrix. So far, the best solution I have

Re: [R] Problem loading aplpack library

2016-06-09 Thread Marc Schwartz
Hi, First, since David is reporting an issue on OS X, this should be posted to R-SIG-Mac: https://stat.ethz.ch/mailman/listinfo/r-sig-mac Second, he is installing a binary version of the package and XCode should not be required in that setting. There are a variety of warnings related to

Re: [R] Problem loading aplpack library

2016-06-09 Thread Tom Wright
Assuming you are on a mac this link may be of assistance: http://tips.tutorialhorizon.com/2015/10/01/xcrun-error-invalid-active-developer-path-library-developer-commandline-tools-missing-xcrun/ On Wed, Jun 8, 2016 at 7:14 PM, David Howell wrote: > I am having trouble

Re: [R] Error: missing value where TRUE/FALSE needed

2016-06-09 Thread Fox, John
Dear Shashi Seth, The principal problem here is that the "argument" to if() must be logical, while comparing anything to NA always produces NA. The proper way to test for NA is with is.na(). There's potentially something more subtle going on here, however, which is that even if some of the

Re: [R] Importing data from a text file with no separator

2016-06-09 Thread Duncan Murdoch
On 09/06/2016 8:56 AM, Federman, Douglas wrote: ?read.fwf There is a data import/export document on cran.r-project.org And included with R distributions. It's one of the manuals, and will be accessible via the help menu in front ends that have one. Duncan Murdoch -Original

Re: [R] Importing data from a text file with no separator

2016-06-09 Thread Federman, Douglas
?read.fwf There is a data import/export document on cran.r-project.org -Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Paolo Letizia Sent: Wednesday, June 08, 2016 8:40 PM To: r-help@r-project.org Subject: [R] Importing data from a text file with no

Re: [R] create an empty data frame and then fill in it

2016-06-09 Thread Duncan Murdoch
On 09/06/2016 6:22 AM, Stefano Sofia wrote: Dear R list users, sorry for this simple question, but I already spent many efforts to solve it. I create an empty data frame called df_year like df_year <- data.frame(day=as.Date(character()), hs_MteBove=integer(), hs_MtePrata=integer(),

Re: [R] create an empty data frame and then fill in it

2016-06-09 Thread Duncan Murdoch
On 09/06/2016 6:22 AM, Stefano Sofia wrote: Dear R list users, sorry for this simple question, but I already spent many efforts to solve it. I create an empty data frame called df_year like df_year <- data.frame(day=as.Date(character()), hs_MteBove=integer(), hs_MtePrata=integer(),

[R] create an empty data frame and then fill in it

2016-06-09 Thread Stefano Sofia
Dear R list users, sorry for this simple question, but I already spent many efforts to solve it. I create an empty data frame called df_year like df_year <- data.frame(day=as.Date(character()), hs_MteBove=integer(), hs_MtePrata=integer(), hs_Pintura=integer(), hs_Pizzo=integer(),

[R] expand.model.frame issue

2016-06-09 Thread Keith Jewell
Following on from a stackoverflow question "Why does this simple function calling `lm(..., subset)` fail?" -- myfun <- function(form., data., subs.) lm(form., data., subs.) myfun(mpg ~ cyl + hp, mtcars, TRUE) ## Error in eval(expr, envir,

[R] [R-pkgs] New versions of heplots, candisc, mvinfluence and matlib on CRAN

2016-06-09 Thread Michael Friendly
# New versions of heplots, candisc, mvinfluence and matlib on CRAN # New versions of my packages designed for visualization of multivariate linear models have recently been submitted to CRAN. The matlib package also contains some

Re: [R] Antwort: RE: Antwort: Re: Merging variables

2016-06-09 Thread PIKAL Petr
Hi Thanks for example. see in line > -Original Message- > From: g.maub...@weinwolf.de [mailto:g.maub...@weinwolf.de] > Sent: Wednesday, June 8, 2016 3:56 PM > To: PIKAL Petr > Cc: r-help@r-project.org > Subject: Antwort: RE: [R] Antwort: Re: Merging variables >

Re: [R] Error: missing value where TRUE/FALSE needed

2016-06-09 Thread Ulrik Stervbo
Dear Shashi, I don't see any code, but I will take a guess anyway: The error tells you that you try to compare a boolean with something that is not (TRUE or FALSE cannot be compared to NA). HTH Ulrik On Thu, 9 Jun 2016 at 08:55 SHASHI SETH wrote: > Hi, > > > > I am

[R] Error: missing value where TRUE/FALSE needed

2016-06-09 Thread SHASHI SETH
Hi, I am getting the following error: Error in if ((sum > 0 && sums1 > 0 && sums2 > 0) != NA) { : missing value where TRUE/FALSE needed I have including my code below for your review: fitness_1_data [[alternative HTML version deleted]]