[R] Likelihood of deviation

2011-03-25 Thread Michael Hecker
Hi, I have a dataset of 78.903 news articles pertaining to 340 corporate takeovers. Mean 231.3871 [articles per takeover] Std. Dev. 673.6395 I would like to calculate the probability of a certain number of news articles if I had more takeovers available. How likely is it to have X articles if

Re: [R] invalid type (list) for variable

2011-02-27 Thread Michael Hecker
is a list (as you suggest as well). With unlist() as.character() as.factor() you can convert the variable to anything you may need as an input. HTH Jannis On 02/26/2011 12:40 PM, Michael Hecker wrote: Hi, I have a problem with an invalid variable type. My sample dataset is looking like this

[R] invalid type (list) for variable

2011-02-26 Thread Michael Hecker
Hi, I have a problem with an invalid variable type. My sample dataset is looking like this: > str(factivaTDM.train) 'data.frame': 4 obs. of 14 variables: $ access: num 2 3 2 1 $ billion : num 2 1 2 2 $ compani : num 7 6 1 2 $ data : num