Re: [R] Problem reading RDS files

2018-04-22 Thread mohammad moradi
I've tried to re-experiment the tutorial presented at http://www.rdatamining.com/docs/twitter-analysis-with-r and specifically aimed to use rds files (tweet records) at http://www.rdatamining.com/data/. On Sun, Apr 22, 2018 at 9:16 PM, Jeff Newmiller wrote: > Wouldn't

Re: [R] Gantt Chart Using Plotrix

2018-04-22 Thread David Winsemius
> On Apr 22, 2018, at 4:50 PM, bbb_...@verizon.net wrote: > > > Hi Sarah > > Thank you very much for your pointers. > > Is there a way to specify the date string as POSIXct when reading in? Please read the Arguments and Details sections of the help page for read.csv with particular

Re: [R] Gantt Chart Using Plotrix

2018-04-22 Thread bbb_aaa
Hi Sarah Thank you very much for your pointers. Is there a way to specify the date string as POSIXct when reading in? I have tried the following (very inelegant way) and still have no luck. --- Begin Code --- # 1st read in the spreadsheet with stringsAsFactors set to FALSE > abc <-

Re: [R] Gantt Chart Using Plotrix

2018-04-22 Thread Jim Lemon
Hi bbb_aaa, The format for the input to the function (gantt.info) is a list. As Sarah mentions, a data frame is a list, so as long as your columns have the right names and are in the correct order, it should work. As you probably know, you can import a CSV file into R as a data frame using

Re: [R] Gantt Chart Using Plotrix

2018-04-22 Thread Sarah Goslee
Hi, The help file for gantt.chart states that dates must be in POSIXct format, and the example shows how to do that. There's no reason that I can see that you can't use a data frame as input to gantt.chart, but you need to be very careful that your data frame matches the correct format. I bet

Re: [R] Gantt Chart Using Plotrix

2018-04-22 Thread bbb_aaa
>From the help file for plotrix: " ... x - a list of task labels, start/end times and task priorities as returned by get.gantt.info ..." So I try to create an object that will contain this information. abc <- read.csv("gntr1a.csv") # The above csv file was generated from MS .xlsx file

Re: [R] Gantt Chart Using Plotrix

2018-04-22 Thread David Winsemius
> On Apr 22, 2018, at 11:50 AM, bbb_...@verizon.net wrote: > > Hi > > I am trying to generate a complex Gantt chart using the gantt.chart function > in the plotrix package. > > Ideally I would like to use a spreadsheet to populate the activities (tasks) > and start and end dates that this

Re: [R-es] Spam en la lista de correos

2018-04-22 Thread miguel.angel.rodriguez.muinos
Hola Yesica. No es SPAM a la lista. La lectura de la lista es pública (no así el poder escribir en ella) y pueden acceder a las direcciones de los que escriben los mensajes (y luego envían esos correos directamente al remitente). Un Saludo. De:

[R] Gantt Chart Using Plotrix

2018-04-22 Thread bbb_aaa
Hi I am trying to generate a complex Gantt chart using the gantt.chart function in the plotrix package. Ideally I would like to use a spreadsheet to populate the activities (tasks) and start and end dates that this function expects and then export the spreadsheet file as a .CSV text file so I

Re: [R] Problem reading RDS files

2018-04-22 Thread Jeff Newmiller
Wouldn't the obvious problem be that your data file is corrupted or was never created using saveRDS in the first place? Can you show us a complete example of creating and attempting to read what was just created? On April 22, 2018 10:20:05 AM CDT, mohammad moradi wrote:

[R] Problem reading RDS files

2018-04-22 Thread mohammad moradi
Hi there, I faced a weird problem doing a seemingly simple task in R. Specifically, when trying for reading an RDS file from the working directory, the following error is appeared. Code: records <- readRDS("tweets.rds") Error: Error in readRDS("tweets.rds") : error reading from connection In

Re: [R] nMDS with R: missing values

2018-04-22 Thread Jari Oksanen
Are you missing values coded as missing values? That is, are they NA? Such NA-values should be handled by vegan::monoMDS. Naturally, it can be possible that your data set cannot be meaningfully analysed if you have too many missing values or missing values are grouped in peculiar ways.

Re: [R] How to dynamically add variables to a dataframe

2018-04-22 Thread Eric Berger
Hi Luca, How about this? # create some dummy data since I don't have your d0 or d1 > n <- 3 > d0 <- data.frame(a=runif(5),b=runif(5)) # here's the suggested code > d1 <- cbind(d0, matrix(0,nrow(d0),n)) > colnames(d1)[1:n + ncol(d0)] <- paste("V",1:n,sep="") HTH, Eric On Sun, Apr 22, 2018 at

[R] How to dynamically add variables to a dataframe

2018-04-22 Thread Luca Meyer
Hi, I am a bit rusty with R programming and do not seem to find a solution to add a number of variables to my existing dataframe. Basically I need to add n=dim(d1)[1] variables to my d0 dataframe and I would like them to be named V1, V2, V3, ... , V[dim(d1)[1]) When running the following code: