Re: [R] arulesSequences Package

2018-10-01 Thread William Dunlap via R-help
Warning message:t In file(con, "r") : cannot open file 'C:\Users\reichmanj\Documents\R\R-3.5.1\library\arulesSequences\misc\cspade1 f8c30bb5148.out': No such file or directory It is hard to say what you did wrong when we only see R's output and not what you typed to provoke the error.

Re: [R] arulesSequences Package

2018-10-01 Thread Bert Gunter
"But if I run in R (alone) it works just fine. Any idea why I can' t seem to run in RStudio or what I might have to do in RStudio?" This is the R-Help list; RStudio is a totally separate software product, Any questions you have on RStudio software should be directed to their site,not here.

Re: [R] arulesSequences Package

2018-10-01 Thread Jeff Reichman
I Was able to figure out how to create my object using the "read_baskets" function but when I run the "cspade" function I receive the following error (running in RStudio) ... 4 -> 1 2 -> 1 -> 1 -- 1 1 3 -> 1 2 -> 1 -> 1 -- 1 1 3 4 -> 1 2 -> 1 -> 1 -- 1 1 3 4 -> 1 -> 1 -> 1 -- 1 1 NA MB [2.4s]

Re: [R] Installing packages in bulk

2018-10-01 Thread Rich Shepard
On Mon, 1 Oct 2018, Bert Gunter wrote: Your syntax is wrong. See the example at the end of ?install.packages. Bert, Thank you. Rich __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] From for loop to lappy?

2018-10-01 Thread Ek Esawi
Thank you Don. It works EK On Mon, Oct 1, 2018 at 6:39 PM MacQueen, Don wrote: > > Try > > A <- lapply(file.names, function(fn) extract_tables(fn) > > > -- > Don MacQueen > Lawrence Livermore National Laboratory > 7000 East Ave., L-627 > Livermore, CA 94550 > 925-423-1062 > Lab cell 925-724-7509

Re: [R] From for loop to lappy?

2018-10-01 Thread MacQueen, Don via R-help
Try A <- lapply(file.names, function(fn) extract_tables(fn) -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509 On 10/1/18, 3:32 PM, "R-help on behalf of Ek Esawi" wrote: Hi All— I am using

[R] From for loop to lappy?

2018-10-01 Thread Ek Esawi
Hi All— I am using Tabulizer to extract tables from PDF files. Tabulizer creates a list of matrices for each set of tables in each document. My code, below, works well. Then i thought i would use lapply instead of for loop since it is a little faster and more compact, but i kept getting an error

Re: [R] Installing packages in bulk

2018-10-01 Thread Bert Gunter
Your syntax is wrong. pkgs character ***vector*** of the names of packages See the example at the end of ?install.packages. "a","b", "c" is **not** a vector c("a", "b", "c") **is** a vector. -- Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and

[R] Installing packages in bulk

2018-10-01 Thread Rich Shepard
For a new installation of R-3.5.1 I want to install all packages on another host. I prepared a file, R-libraries.R, which contains install.packages('BH, ...') for the entire list. When I source() this file on the new host and select a CRAN mirror I see the message, "Warning message: package

[R] arulesSequences Package

2018-10-01 Thread Jeff Reichman
R-Help Forum For anyone who has used the "arulesSequences" Package how do I start with raw data (*.csv file) and convert into a sequence object to run the cSPADE function. The package example use zaki dataset which has already been converted. When I state raw data how should I structure my csv

[R] arulesSequences Package

2018-10-01 Thread Jeff Reichman
R-Help Forum For anyone who has used the "arulesSequences" Package how do I start with raw data (*.csv file) and convert into a sequence object to run the cSPADE function. The package example use zaki dataset which has already been converted. When I state raw data how should I structure my csv

Re: [R-es] Cambiar formato fecha

2018-10-01 Thread Carlos Ortega
Hola Miriam, ¿Has probado en cualquier caso?. "lubridate" es capaz de gestionar estas diferencias. Usa la función "dmy()", que entenderá esas pequeñas diferencias con respecto al día. Puede gestionar incluso diferencias mucho mayores... Saludos, Carlos Ortega www.qualityexcellence.es El lun.,

Re: [R-es] Cambiar formato fecha

2018-10-01 Thread Javier Marcuzzi
Estimada Mirian Alzate Habría que ver sus datos originales, yo pienso que son texto y fueron mal almacenados en origen. Debería evaluar si están en formato inglés o no, en otras palabras, ¿Dónde esta el mes? Como en origen no fueron almacenados en formato fecha podría descomponer el texto y

Re: [R-es] Cambiar formato fecha

2018-10-01 Thread Eric
Quiza podrias hacerlo en dos pasos, primero elimina el cero para que todos los datos queden uniformes, y luego aplicas lo que ya han señalado. saludos. On 01/10/18 14:05, Miriam Alzate wrote: Hola, No  me sirve porque tengo dos tipos de formatos de fechas. En unos tengo 0 delante del día

Re: [R-es] Cambiar formato fecha

2018-10-01 Thread Miriam Alzate
Hola, No  me sirve porque tengo dos tipos de formatos de fechas. En unos tengo 0 delante del día del mes cuando es entre el 1 y el 9 y en otros no...No sé como unificar eso para que todas tengan el formato por ejemplo: 02/12/2017 y no 2/12/2017. Un saludo El 29/09/2018 a las 13:06, jose

Re: [R] R - Reading a horizontally arranged csv file, replacing values and saving again

2018-10-01 Thread Amit Mittal
You can just transpose in xl and read the regular form. Also use na.omit(data) and is.na() to replace na with 0 or remove rows with na data items Amit Mittal PhD in Finance and Accounting (tbd) IIM Lucknow http://ssrn.com/author=2665511 *Top 10%, downloaded author since July 2017

Re: [R] R - Reading a horizontally arranged csv file, replacing values and saving again

2018-10-01 Thread William Dunlap via R-help
Read the help file for write.table ?write.table and look at the descriptions of its arguments. > df <- data.frame(Text=c("Abe","Ben",NA,"David"), Age=c(19, NA, 12, 10)) > write.table(file=stdout(), t(df), sep=",") "V1","V2","V3","V4" "Text","Abe","Ben",NA,"David"

[R] R - Reading a horizontally arranged csv file, replacing values and saving again

2018-10-01 Thread Manoranjan Muthusamy
I have a horizontally arranged CSV file ( samplefile.csv) with headers are in the first column. Also, each row has a different number of columns. I want to read this CSV file, replace one of the cell value and save again as a CSV file

[R] Why do two different calls to mgcv::gamm give different p-values?

2018-10-01 Thread Øystein Sørensen
I have longitudinal data where a response y_{ij} has been measured repeatedly for i=1,...,n individuals, j=1,...,m times for each individual. Let x_{ij} be the age of individual i at her/his jth measurement. I wish to see how the response varies with age, and have reason to believe that a

Re: [R] Boxplot with linear (not categorical) x-axis

2018-10-01 Thread Luigi Marongiu
Thank you. On Fri, Sep 28, 2018 at 5:34 PM William Dunlap wrote: > > Use the 'at' argument to boxplot. E.g., > > > x <- rep(c(2,4,8,16), c(5,10,20,30)) > > y <- seq_along(x) > > par(mfrow=c(2,1)) > > boxplot(y~x, at=unique(x)) > > boxplot(y~x) > > > Bill Dunlap > TIBCO Software > wdunlap