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. However,

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. Cheer

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 https://stat.ethz.ch/mailman/listinfo/r-help

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 Tabu

[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 m

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 stic

[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 f

[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 f

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" "Age","19",NA,"12","10

[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 nonlinear